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

Wrong output model scale and pose #35

Closed
he-lo-art opened this issue Sep 26, 2019 · 2 comments
Closed

Wrong output model scale and pose #35

he-lo-art opened this issue Sep 26, 2019 · 2 comments

Comments

@he-lo-art
Copy link

Dear authors,
I have a complex scene and realized that an object's pose and scaling is not respected.
I could temporarily fix it for me by changing two statements in io_ogre/ogre/mesh.py in version 0.7.1:

Line 225: x,y,z = swap(ob.matrix_world * v.co)
Line 563: x,y,z = swap( ob.matrix_world * pv.co - ob.matrix_world * v.co )

Not sure whether that's the way to fix it. I hope it clarifies the issue.
Regards, Henning

@wxmerkt
Copy link
Contributor

wxmerkt commented Jan 10, 2020

I came across the same issue - the above fix (now shifted by ~20 lines) helps to resolve it.

@paroj
Copy link
Member

paroj commented Jan 10, 2020

can one of you provide a pull-request?

wxmerkt added a commit to wxmerkt/blender2ogre that referenced this issue Jan 10, 2020
paroj pushed a commit that referenced this issue Jan 10, 2020
@paroj paroj closed this as completed Jan 14, 2020
paroj pushed a commit that referenced this issue Feb 19, 2020
paroj pushed a commit that referenced this issue Feb 22, 2020
paroj added a commit that referenced this issue Jul 30, 2020
the behavior can be manually triggered using "Apply Object Transform".
Fixes #50
paroj added a commit that referenced this issue Jul 30, 2020
the behavior can be manually triggered using "Apply Object Transform".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants