-
Notifications
You must be signed in to change notification settings - Fork 438
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
Normalizing an imported object #1100
Labels
question
Question, not yet a bug ;)
Comments
Hey, the bug is in your code. The offset depends on the scaling factor. Multiplying the offset with the scale factor should solve your problem:
|
@cornerfarmer Hey thanks for pointing it out. I had one more question: How should I apply rotation to an object? I tried using the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue
I am trying to normalize a
.glb
object using the following code:But the results are weird:
Using both translation and scaling, the final object's location is not correct. Whereas commenting out each one individually gives the correct scale and correct position.
Minimal code example
No response
Files required to run the code
No response
Expected behavior
The object should be scaled and at the correct position being normalized.
BlenderProc version
2.7.0
The text was updated successfully, but these errors were encountered: