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

Can't set Camera to glTF Object position #369

Closed
fral8 opened this issue Mar 1, 2019 · 2 comments
Closed

Can't set Camera to glTF Object position #369

fral8 opened this issue Mar 1, 2019 · 2 comments

Comments

@fral8
Copy link

fral8 commented Mar 1, 2019

Hello all,

Sorry fo the apparently simple issue but I've tried multiple time and I can't figure out.
So, basically, I'm loading a GLTF model in runtime using HTTP approach. My model is a building model for which I would like to move inside.

So My camera should be inside the building when my model is loaded.

  • I've tried to see the position of an object inside my building, such as a door, but the camera can't move to it, because the position is ,for all objects composing glTFscene, (0,0,0)

immagine
Also primitives have the same position

  • I've tried to move manually my camera in the editor, in order to see inside my building, but when a build the exe file, The camera position is not inside the object.

How I can do to solve this problem?

Thank You,
Frank

@fral8
Copy link
Author

fral8 commented Mar 3, 2019

Ok,

My problem was basically related to this issue
To solve the positioning problem, I've used a function to calc the bound of building and with this, I put the camera in the center of the model.

@ericob
Copy link
Contributor

ericob commented Mar 4, 2019

It sounds like you resolved this issue - please reopen if not

@ericob ericob closed this as completed Mar 4, 2019
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

2 participants