Please provide all relevant details below before submitting your post. This will help the community provide more accurate and timely assistance. After submitting, you can check the appropriate boxes. Remember, you can always edit your post later to include additional information if needed.
Isaac Sim Version
4.2.0
4.1.0
4.0.0
2023.1.1
2023.1.0-hotfix.1
Other (please specify):
Isaac Lab Version (if applicable)
1.2
1.1
1.0
Other (please specify):
Operating System
Ubuntu 22.04
Ubuntu 20.04
Windows 11
Windows 10
Other (please specify):
GPU Information
Model: RTX 4090
Driver Version: 560.94
Topic Description
Detailed Description
I want to apply a texture to a cube.
From my testing, I see that textures are only correctly applied to MeshCubes.
If you create a ShapeCube (seen as 2 in image above) or use one of the python classes FixedCuboid, or VisualCuboid the resulting primitive does not have the FaceAPI or the Normals attribute set on the mesh.
In that case I think you would need to use vanilla USD code to create your desired mesh, or import an existing one from USD, then you wan wrap the prim into the desired isaac sim APIs.
Note that there is difference between primitive cube and mesh cube.
there is difference between primitive cube and mesh cube
Yes, I showed this in the picture with Mesh cube on left and Shape cube on right. This difference is why textures do not render on primitives that despite having Mesh API, do NOT have (full) Mesh. Knowing what precisely the difference is would be helpful