Jump to content

Documentation Error: Meshes


photo

Recommended Posts

Good morning,

I found an error in the documentation in section (Creating a Primitive): https://developer.unigine.com/en/docs/future/code/usage/mesh_class/index?rlang=cs#creating_box

If the code below is used:

image.png.704bee0bb1e96c2a43d84f4f5c45be1c.png

The .dds will result in a red color, but in the documentation the texture of the cube is the ground color.

image.png.46ca7b3ee0b54cbdfccaf628fe7f2ba2.png

To fix this use .texture

dynamicMesh.SetMaterialTexture("albedo", "core/textures/common/checker_d.texture", 0);

which will result in:

image.png.2386e0f80ae9266812edb99602e25a4e.png

Edited by Sevdat
Link to comment

Hi, Sevdat.

Indeed, this is a bit outdated piece of documentaion. We'll update it when possible.

Thanks for pointing this out.

  • Like 1
Link to comment
×
×
  • Create New...