开发者

How do I define and standardize units in my 3D app?

开发者 https://www.devze.com 2022-12-23 07:12 出处:网络
I\'m starting to design my object graph for an OpenGL ES 1.1 app on Andr开发者_开发知识库oid.

I'm starting to design my object graph for an OpenGL ES 1.1 app on Andr开发者_开发知识库oid.

What's advisable when it comes to actually drawing my triangles and controlling their size? Should I store all the vertices in units relative to each other and then multiply them by a value I pass during a draw(GL10 gl)?

Would this approach have any impact when it comes time to do frustum culling?


When you have full control over all your model/vertice data you shoul try to create each one in the correct size to each other and in relation to your design concept. Thereby you don't need to call any glScale functions which take up processing power. Frustum wise it doesn't make a difference whether you scaled before or not. By scaling you merely modify your modelview matrix.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号