SAPIEN
SAPIEN copied to clipboard
cannot render obj+mtl+jpg mesh objects with correct textures
System:
- OS version: 22.04
- Python version: 3.11.4
- SAPIEN version: 2.2.2
- Environment: Desktop
Describe the bug When using sapien.renderer() to render urdf objects from ShapeNet, for some objects, it cannot successfully render the objects with correct textures. To Reproduce Steps to reproduce the behavior (use pastebin for code):
- prepare the shapenet_example folder as in google drive link: https://drive.google.com/drive/folders/1XY-qD_dF-z_xlOaqswo-noBz-4TIvrG2?usp=sharing
- the render python file is in https://pastebin.com/YKaqV73N, place the
render.py
and shapenet_example in the same root folder. - run the above render python file by
python render.py --urdf-file="shapenet_example/object.urdf" --output-dir="output"
Expected behavior
The rendered images should have the mapped texture properties from the texture0.jpg
in the shapenet_example/images folder, to really look like a microwave.
Screenshots
(1) Here is an example of one view of the rendered result by running the code. Generally, it merely looks like a rectangular cuboid with no image textures.
(2)Here is the preview results in Blender displayed in material preview mode:
Additional context Add any other context about the problem here.