Archived

This topic is now archived and is closed to further replies.

A W-Friendly Projection Matrix

This topic is 6366 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

D3D needs a compliant projection matrix for fog effects to work properly. Does this mean that the projection transformation needs to be updated with a fresh matrix every frame so that fog works as you move the camera? I think it does but I''m not sure. Also, does the DirectX.ProjectionMatrix() function return a w-friendly matrix or will I have to assemble one myself each frame? I have read the MSDN article on this, but I''m dumb and still can''t figure out what they want! :-)

Share this post


Link to post
Share on other sites
You''re using VB huh?

Anyhoo, DX.ProjectionMatrix returns a W-Friendly projection matrix. You only need to set the projection matrix once unless you need to do some weird projection effects.

------------------------
Captured Reality

Share this post


Link to post
Share on other sites
Yup, I''m using VB! :-) Uh oh, here come the flames... "He''s writing a 3D Engine in VB? How dare he!!"...hehe

Well that''s good to know. I must have screwed up something else fog-related in my app...

Thanx!

Share this post


Link to post
Share on other sites