Texture from Color

images/download/attachments/122260045/CmdTextureFromColor.svg

This function will convert colored or inspected mesh into a textured mesh.

Requirements

Select a colored or inspected mesh and launch the command.


  1. Define the image resolution. The value must be between 4 and 32 pixels per triangle.

  2. If the mesh is already textured, it is possible to update current texturing , that is to use the most relevant texture between the existing one and the new one, or to preserve existing texturing .

  3. If the mesh is both colored and inspected. The user has the ability to choose which information should be used for texturing the mesh. By default, the color information is used. Check the option Use inspection instead of color otherwise.

Notes

A texture information of a mesh can be exported to OBJ format which is not the case of color or inspection information.


Technical information

The number of pixels per triangle will improve the rendering but also increase the amount of RAM memory used:

Initial inspected mesh of 81 000 triangles

With a texture of 4 pixels per triangle

With a texture of 32 pixels per triangle

No texture memory

3.75 Mb

239 Mb

images/download/attachments/122260045/InitialTri.png

images/download/attachments/122260045/4PixelsPerTri.png

images/download/attachments/122260045/32PixelsPerTri.png

images/download/attachments/122260045/Ini-Inspection-zoom.PNG

images/download/attachments/122260045/4-zoom.PNG

images/download/attachments/122260045/32-zoom.PNG

Selecting a greater image resolution will increase considerably the RAM memory used. In the worst case, we will have a factor 64 between a triangle with 4 pixels and a triangle with 32 pixels.