android - how to find range of Normalized Device Co-ordinates? -



i new opengl programming.
know ndc ranges [-1, 1] on both axis 0,0 in center. trying increase range , doing via gltranslatef(0,0,-11.0f) gives me more room.

but dont know new ndc range after gl call. can body please explain ?

you need first try understand life of vertex in opengl pipeline (an example here). otherwise find hard understand doing. can frustrating @ begining.

the simple answer question ndc coordinates always in range of [-1, 1]. cannot change , shouldn't need change that.

what do want change though, modelview , perspective matrices objects have more space in screen. example gltranslatef(0,0,-11.0f) command, moves object down on negative z axis (where "camera" looks @ default i.e. away eye). since object farther away seems smaller, have more screen space.

another set of tutorials have personaly found helpful opengl es ground up (they iphone principles same)


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -