DirectX version of Open GL MODELVIEW?
Hey,
Im converting some open GL to Direct X.
Anyone know the diectX equivailent to MODELVIEW?
I am using info from this page for frustum culling (its in GL)
http://www.markmorley.com/opengl/frustumculling.html
Alternatly, is there a directX article?
[edited by - Green on September 14, 2002 11:45:06 AM]
Umm ... maybe D3DTS_WORLD?
That sets the World matrix (model-view [less the ''view part, of course''] in OpenGL I believe - someone correct me if I''m wrong) in DirectX. Which is sorta like what you''re asking about.
As for an exact match? I don''t think there''s such thing as a direct mapping between the two APIs in this respect.
Sorry if my explanation is a little fuzzy - tired
Tom L
// assume Device3D is an IDirect3DDevice8* & World is a// D3DMATRIXDevice3D->SetTransform( D3DTS_WORLD, &World );
That sets the World matrix (model-view [less the ''view part, of course''] in OpenGL I believe - someone correct me if I''m wrong) in DirectX. Which is sorta like what you''re asking about.
As for an exact match? I don''t think there''s such thing as a direct mapping between the two APIs in this respect.
Sorry if my explanation is a little fuzzy - tired
Tom L
OpenGL''s modelview matrix is just DirectX''s world and view matrices multiplied together. Just use translation, rotation, etc. matrices with D3DTS_WORLD and use lookAt matrices with D3DTS_VIEW, and you should be fine
''There''s something out there....something stupid...''
- Daria
DirectInput8 with the Keyboard , DirectInput8 with the Mouse , Using DirectX Audio 8
''There''s something out there....something stupid...''
- Daria
DirectInput8 with the Keyboard , DirectInput8 with the Mouse , Using DirectX Audio 8
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement