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

How to scale the obj file automatically ? #14

Open
LokeshBhatija opened this issue Dec 8, 2014 · 6 comments
Open

How to scale the obj file automatically ? #14

LokeshBhatija opened this issue Dec 8, 2014 · 6 comments

Comments

@LokeshBhatija
Copy link

currently I have to manually set the scale and translation properties. Is there any method to set them automatically? Could you tell me any references ?

@nicklockwood
Copy link
Owner

What do you mean by "automatically" - do you mean scale to fit the view?

@LokeshBhatija
Copy link
Author

yes. Currently I have to manually create CATransform3DScale and CATransform3DMakeTranslation. Since, I am using models from the internet and I don't know how to find out the scaling factor of the models, is there any method to automatically scale the model to fit the view ?

@elsurudo
Copy link

elsurudo commented Jun 8, 2015

👍

@LokeshBhatija
Copy link
Author

Hi Nick,
Any update.

@elsurudo
Copy link

@LokeshBhatija Did you ever get anywhere with this? Have the same need.

@nicklockwood
Copy link
Owner

Sorry, there's no way to do this in GLView currently. If you wanted to build such a thing, the best approach is probably to calculate the bounding box/sphere of the model and then scale so that it fills the view.

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