-
Notifications
You must be signed in to change notification settings - Fork 15
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
Set default yaw axis Vector3::UNIT_Y (tabletop mode) + Optional X, Z and free rotation #36
Conversation
Perhaps it would be better if this was an option... for me this is the most reasonable mode |
I had this on initially. However, this assumes the model actually has y-up. If this is not the case, there is no way to properly orient the model. An alternative would be to make this configurable:
|
Is there a way to detect if the model does not have Y-up and rotate everything? Perhaps that would be faster. In general one would open models that were exported for OGRE which is Y-up, so it makes sense that the default is this. I think it would be easier to make this selectable and If someone loads a model that is not Y-up (the rare case) then they can choose to disable this. |
like I described here OGRECave/blender2ogre#240 it is trivial for user code to change which axis is "up". So I would not assume Y-up. Also, since assimp is used, you are not even limited to ogre specific files, but maybe just want to inspect how a .obj would look when imported directly in Ogre. There any up assumptions goes out of the window.
one could look at the extents, but you need to assume whether the object is a statue or a bench. so generally: no. |
The issue is that currently you only have the options:
Otherwise a modification of OGRE Bites CameraMan would be needed. |
you should be able to get there without touching CameraMan by just changing the camera node like: |
Can you help with this? I can use |
use (0,0,1). |
883b984
to
dd5e3d6
Compare
8f3a7a4
to
816f29f
Compare
ogre_mesh_viewer.py
Outdated
@@ -200,6 +205,23 @@ def draw_loading(self): | |||
ImGui.Text("Loading.. ") | |||
ImGui.End() | |||
|
|||
def set_orientation(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this method only modifes self.app
therefore it should be moved to app
, like probably all related fields
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…and free rotation
This solves #18