SAPIEN icon indicating copy to clipboard operation
SAPIEN copied to clipboard

cannot render obj+mtl+jpg mesh objects with correct textures

Open kasteric opened this issue 9 months ago • 2 comments

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):

  1. 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
  2. the render python file is in https://pastebin.com/YKaqV73N, place the render.py and shapenet_example in the same root folder.
  3. 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. 0002 (2)Here is the preview results in Blender displayed in material preview mode: image

Additional context Add any other context about the problem here.

kasteric avatar May 26 '24 10:05 kasteric