c - OpenGL Projection, View and World matrices -



c - OpenGL Projection, View and World matrices -

i have question opengl projection, view , model matrices. in directx 9 can manipulate matrix content , apply using settransform function.

i saw in msdn opengl glloadmatrixf function, changes current matrix can alter glmatrixmode function.

this function gets 1 argument 3 options: gl_modelview, gl_projection , gl_texture. that's problem. how can modify world matrix?

in directx 9 can utilize settransform , 1 of state types: d3dts_world (macro), d3dts_view , d3dts_projection , set matrices them.

the gl_modelview matrix name is; combination of model , view matrices. usually, apply view transformations first, each model, force matrix, apply model transforms, draw model, pop matrix.

if utilize shaders, though, (and have in opengl 3.1+ without compatibility profile), can utilize uniforms pass matrices shader want, including splitting model , view matrices if desire.

c opengl matrix directx-9

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -