Replies: 1 comment
-
Rather than using the set_local2world_mat method, you can use set_rotation_mat instead and set the frame argument just like with the camera positions. Your for loop might look something like this: for i in range(len(rot)):
obj.set_rotation_mat(np.array(rot[i]).reshape(3, 3), frame=i) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am generating a dataset that consists of a single object in the same position, only its rotation changes. It's to train a model that learns object rotation.
Currently, I have a blenderproc code that generate and save a scene with an object with a specific rotation and then I call it with multiple rotations using a script. My code is the following :
I am wondering if I am doing it the good way or there is a more efficient one ?
When sampling camera position, in the examples we generate a scene and then we sample multiple camera positions and then the rendering is done. Can I do the same with object rotation?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions