User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
modeleditor:meshes [2012-03-25 13:33]
Carsten Text detail added
modeleditor:meshes [2016-06-21 11:34] (current)
Line 22: Line 22:
  
 Pressing the **F2** key or a single-click on an already selected mesh allows you to rename the mesh in place. Pressing the **F2** key or a single-click on an already selected mesh allows you to rename the mesh in place.
 +
 +The "​**-**"​ button at the top of the list deletes the currently selected meshes.
 <​clear>​ <​clear>​
  
Line 47: Line 49:
  
 ==== Material ==== ==== Material ====
 +The material that is used for rendering the mesh is set here: Press the "​..."​ button in order to open the **Material Browser**.
 +
 +{{mapping:​cawe:​material_browser_2.png?​200 }}
 +The Material Browser is the same as the one used in the Map Editor, but it only shows the materials that are specific to the currently loaded model. It also has some basic capabilities to //edit// materials and to set their properties, but is currently not very advanced.
 +
 +At this time, we recommend that you use the Material Browser for assigning materials to meshes, but in order to create and edit material definitions,​ best use a programmers editor for editing the [[modeleditor:​modelfiles|related cmat material files]] directly:
 +Material scripting is documented in chapter [[:​start#​the_cafu_material_system|The Cafu Material System]].
 +
 +(It is our goal to turn the Material Browser into a full-featured Material Editor in the near future, but we currently work on improving other parts of the Cafu code. If you want to lend a helping hand, please let us know!)
  
 ==== Tangent-space method ==== ==== Tangent-space method ====
 +The tangent-space method determines the algorithm that is used for computing the normal, tangent and bi-tangent vectors at the vertices of the meshes.
 +
 +Ideally, the algorithm that is set here should match the algorithm that was used by the external program that was used for creating the //normal map// for this mesh. This is important so that the Cafu model code can accurately reproduce the subtle details involved in generating the axes of tangent-space,​ as only then the lighting results will exactly match those in the original program. Unfortunately,​ the involved algorithms are not standardized at this time (and often not even documented!),​ so that we can only try a best guess.
 +
 +Refer to [[http://​api.cafu.de/​c++/​structCafuModelT_1_1MeshT.html#​a02f1d4ddd0c2dce4062a1b279ccd130d|CafuModelT::​MeshT::​TangentSpaceMethodT]] for the currently available tangent-space methods. More tangent-space methods will be added in the future.
 +
 +If in doubt, there is a very simple receipt for choosing the right method:
 +simply pick the one that looks best.
  
 ==== Cast shadows ==== ==== Cast shadows ====
modeleditor/meshes.1332675200.txt.gz ยท Last modified: 2013-01-07 12:07 (external edit)