GLView
GLView copied to clipboard
How to scale the obj file automatically ?
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 ?
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 ?
:+1:
Hi Nick, Any update.
@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.