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

ability to change up axis #63

Closed
likangning93 opened this issue Apr 17, 2017 · 2 comments
Closed

ability to change up axis #63

likangning93 opened this issue Apr 17, 2017 · 2 comments

Comments

@likangning93
Copy link
Contributor

A lot of models going through obj2gltf right now come out sideways, since gltf assumes a Y-up axis.
Does obj assume anything? Otherwise, should we add a flag for changing the up axis, along with some notes?

As observed by @mramato, it's probably also better to bake this transformation straight into the geometry by flipping components of vertices rather than slap a rotation quaternion onto the gltf scenegraph.

@emackey
Copy link
Contributor

emackey commented Apr 17, 2017

Blender's OBJ exporter offers user-selection of export axes, but the default is -Z forward, +Y up.

@mramato
Copy link
Contributor

mramato commented Apr 19, 2017

I believe Three,js loaders also assume Y up (or at least the obj loader does). So we should default to Y Up and let it be overridden by the caller.

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

No branches or pull requests

4 participants