# Week 6
- Sculpting & LOD.
- Lecture: LOD pipeline using Sculptris.
- Making: 3D sculpting in LOD pipeline.
- Hands on studio: team discussion & making.
- Assignment: Continuously work on your process report.
_____________________________________
# LODs: Cinematic vs game model
LOD is the acronym for level of detail. Models built for interactive 3D are primarily polygonal models that use controlled polygon counts to suit gaming engines. Some next-generation game engines already have support for Bezier geometry, and NURBS and Subdivision surfaces may soon follow.

Cinematic model and game model. Image from the book Rigging for Games by Eyal Assaf.
## Level of Detail
Level of Detail (LOD) is an effective optimization technique. It is to use a coarser-level geometric representation of an object in the far distance, that has a similar appearance to the high-level representation used in close distance, but requires less data to be processed by the CPU and GPU to save computational resources.
## LOD category
### Sprites or Billboards
2D representations of 3D objects that are used to reduce the complexity of the object. e.g., trees are drawn as a pair of rectangles with alpha-blended textures. A grandstand in an automobile race. The audience is typically drawn as rows of rectangular billboards that try to face the camera, but are constrained to rotate about the vertical axis.
### Discrete LOD
Creating multiple representations of the same object. Selection of which representation is drawn is based on the distance of the LOD centre to the eye point (camera position).
### Continous LOD
An attempt to automate the generation of different-resolution representations of an object. For triangle meshes, the generation amounts to removing a few triangles at a time while trying to preserve the shape of the object.
### Infinite LOD
Generating an arbitrary number of triangles in a mesh that represents a smooth object. Given a surface representation of the object, a subdivision method is applied to tessellate the surface at run time.
## LOD application
You can model several versions of your mesh at different resolutions, and have the application engine switch between them automatically (from high level of detail to low level of detail) based on how near the camera is to the mesh. The high-detail version is shown when the camera is nearest to the model, and progressively lower-detail versions are rendered as the camera moves further away.
Commonly, three versions are imported for each model: high-res, mid-res, and low-res.
You can use the LOD Group component to set up LOD rendering for an object. For objects that are closer to the player, high LODs objects are rendered. Objects with higher LODs have a higher number of polygons. For objects that are far away from the player, a simpler version of the object is rendered instead in order to reduce the load on the hardware and to improve general rendering performance.
Also, artists can create different LOD versions of the 3D object using automated LOD algorithms, deployed through software or manually reducing the number of vertices, normals, edges in the 3D Models, to create a lower polygon count model. When creating models of different LODs, note that it is better to create the most detailed model with the most number of polygons first and then reduce the number accordingly to create the other LOD versions. It is much harder to work the models the other way around. Do remember to keep the UV coherent when working with objects with different LODs.
## Unity manual: LOD
- [https://docs.unity3d.com/Manual/LevelOfDetail.html](https://docs.unity3d.com/Manual/LevelOfDetail.html)
_____________________
# 3D sculpt
3D sculpt tools can allow many artists the freedom of creation to manifest visually compelling sculptures, abstract shapes, and free-flowing forms. They also offer very powerful and intuitive 3D painting.
______________________
# Sculptris
Pixologic’s Sculptris is a scaled-down version of ZBrush, a professional 3D sculpting software. Sculptris is one of best free software for organic modeling.
## Download
[Pixologic.com/sulptris/](http://pixologic.com/sculptris/)
>Sculptris is no longer being actively developed by Pixologic and is considered a legacy application. While we are still making it available for free to those people that can run it, be warned that the most current version was released in 2011 and may not function on many newer computer systems. Since it is free, we encourage you to give it a try and see if it will work on your computer. By downloading, you accept that technical support will not be available for Sculptris. - from Pixologic.com
## Feature
### Freeform design
The challenge with most CAD precision-based modeling tools is that the solid-modeling design process can be time-consuming, and not particularly suited for organic forms. Organic modeling tools such as Sculptris offer immediate satisfaction by allowing designers to pull, stretch, and contort a digital “ball of clay.” While initially the process is less precise, the digital ball of clay can be refined to create highly detailed objects. A model being developed using Sculptris’ freeform techniques is similar to sculpture created by an artist using clay in the real world. With Sculptris, highly intricate and organic forms can be developed quickly, giving the designer instant satisfaction as the digital model is being developed.
### Levels of detail
Models created in freeform, organic tools such as Sculptris are no different from models found in most other 3D-modeling applications since a 3D model in Sculptris is nothing more than a polygonal object composed of tessellated faces. The main difference is that the faces on a model using a digital sculpting application such as Sculptris can number into the thousands, or even millions. The polygon faces found on a Sculptris model are extremely small, sometimes the size of pixel. Since the polygons are so small, they are imperceptible as the designer manipulates and stretches the Sculptris model to create new forms. Because of the many polygonal faces involved, models in organic sculpting packages such as Sculptris are referred to as high-resolution geometry. This high-resolution geometry can be more clearly seen by observing a Sculptris model in wireframe mode.
Note: Hitting the W key in Sculptris allows users to see the wireframe of the model, which reveals the many triangle faces with greater clarity. This is called wireframe mode.
## Explore Sculptris
The workflow for Sculptris is pretty simple. When the application is first opened, centered in the screen will be a spherical, digital ball of clay. In the upper-left corner are the sculpting tools that will let you push, pull, and distort the clay sphere.

## How to navigate:
Clicking and dragging freely allows users to rotate the model they are working on. Pressing **Alt/Option** while clicking and dragging will pan the view. Pressing **Ctrl/Cmd** while right-clicking and dragging will allow you to zoom in and out of the scene. The scroll wheel on a three-button mouse will allow zooming in and out as well.
## Practice
- Begin by manipulating the spherical ball with the **Draw tool**. The Draw tool, if not already selected (selected tools are highlighted in orange), can be accessed by pressing the D keyboard shortcut.
- Play with several of the sliders in horizontal menu as you draw.
- Increase or decrease the **Size** slider to change the area being sculpted.
- Increasing or decreasing the **Strength** slider changes the intensity of the brush.
- Increasing the **Detail** value affects the amount of surface detail affected and applies a higher level of distortion (depending on the sculpting tool selected) to the digital clay.
As you draw, you will first notice that your actions are duplicated on the other side of the sphere. This is because, by default, **Symmetry** is enabled. If you want to disable Symmetry, turn off the Symmetry button. When Symmetry is turned on, the button is highlighted in orange.
Experiment with various brushes as you get used to the sculpting process. Adjust the size, strength, and quality as you sculpt. If things get messy, try using the Smooth tool and reduce the complexity of the model. You can also activate the functionality of the Smooth tool by using the **Shift** key as you sculpt.
## A breakdown of the sculpting tools
- [Sculptris edutechwiki docu](https://edutechwiki.unige.ch/en/Sculptris)

- [Sculptris cheat sheet](http://members.casema.nl/jw.v.dronkelaar/sculptris_cheat_sheet.pdf)
There are nine basic sculpting tools in the Sculptris.

### The Crease tool
The Crease tool makes a sharp indentation into the sculpted surface. The effect is similar to using a sharp stick to draw gouges into clay. **Inverting** the brush (hit the **X key** or hold down **Option/Alt** while you sculpt) will create sharp ridges.
### The Draw tool
The Draw tool creates a rounded, hill-like extrusion on the surface on the model. Selecting Inverse creates a trough-like recess in the surface. Using the **Clay** option creates a flatter plateau on the surface. The **Soft** option helps give the stroke smoother edges.
### The Flatten tool
The Flatten tool levels the surface off to a flat plane.
### The Inflate tool
Inflate will make an area balloon outward. If the detail is set to the highest setting and Inflate is used multiple times, it’s possible to create long tentacles that extend out from the surface. Using the Alt/Option keyboard shortcut has the opposite effect, creating hollows and holes in the surface.
### The Pinch tool
Pinch draws the polygons on the surface to create creases and ridges. Using Pinch is a good way to get hard edges on the surface of the sculpted object.
### The Grab tool
The Grab tool will push and pull large sections of the model. This is a great way to develop the initial form of a model before more detailed sculpting occurs.
### The Smooth tool
The Smooth tool will diminish areas of high detail and bring back the original surfaces.
- Note: Holding the **Shift** key while sculpting will provide the equivalent functionality of using the Smooth tool.
__________________
## Video tutorial
### Painting and creating textures
- [Sculptris Painting Primer by 3dioot, 55:00](https://vimeo.com/13982936)
### Head sculpture
- [Sculptris - Female Head Part I by Philip Witte, 10:59](https://www.youtube.com/watch?v=KrViiOLTWTM&t=2s)
- [3DToons Sculptris Demo by 3dtoons, 38:29](https://www.youtube.com/watch?v=U9Dxi5fCd0Q&t=1424s)
__________________
## Maya and Sculptris workflow
- In Maya, create a low polygon object. Export it as .obj
- In Sculptris, import your Maya object. What you can do includes:
- Sculpting: use the Maya model as a base model, you can develop your organic modeling. Once it is done, you can use the model data as it is or you can create a normal map too.
- Level of detail: you can create high-resolution modeling.
- Painting: you can work to create color, normal, and bump textures. Also you can export the geometry as .obj file.
- Remember in this case, Sculptris will generate UV texture automatically.
- If you want to use your manual UV unwrapping, you need to import your Sculptris model (.obj) into Maya or Blender to do the UV unwrapping. Then you can move to the next workflow steps of creating textures, producing more LOD models, as well as texture baking.
___________________________
## Inspiration: VR in VR
- [Bringing a Van Gogh Painting to VR](https://connect.unity.com/p/articles-bringing-a-van-gogh-painting-to-vr)
- [Blocks](https://vr.google.com/blocks/) - Create 3D models in VR - Google VR
- [Building VR in VR with Unreal Engine 4 - Early Preview [1:58]](https://www.youtube.com/watch?v=JKO9fEjNiio)
# Asset creation
## 3D Viewer
- Google Poly
- Autodesk 3D viewer
- Sketchfeb
## Tutorials
___________________________
# Assignment
- Install Unity and explore it
- Tutorial
- Make one with low poly test