Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering Issues with GLB Files in Kubric: Incorrect Orientation #324

Open
domejiraphon opened this issue May 2, 2024 · 0 comments
Open

Comments

@domejiraphon
Copy link

domejiraphon commented May 2, 2024

Hi! I've been exploring Kubric for data generation and using my own mesh. I've followed the suggestions from this issue. Basically, I converted my glb file to obtain collision geometry and a URDF file, similar to what's done in your shapenet code.

However, I encounter a problem when setting the render filename to my GLB file: the rendering isn't correct. The orientation is off, and it varies from mesh to mesh. The left image uses render_filename as glb, while the right image uses obj. The left satellite looks detached and differs in orientation. This would make the physics simulation incorrect where the pybullet uses obj and blender uses glb.
out

I double checked these glb and obj files by loading into blender UI and it looks the same. I digged further and found that the code for loading the glb file is not necessary correct. Sometimes, it works but some other time I have to fix it to be.

blender_obj.rotation_mode = 'XYZ'
blender_obj.rotation_euler[0] += math.radians(180)

Is this related to +Y up? Any guidance how to correct this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant