-
Notifications
You must be signed in to change notification settings - Fork 105
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
Comments
What do you mean by "automatically" - do you mean scale to fit the view? |
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 ? |
👍 |
Hi Nick, |
@LokeshBhatija Did you ever get anywhere with this? Have the same need. |
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. |
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 ?
The text was updated successfully, but these errors were encountered: