Jump to content
  • Advertisement
Sign in to follow this  
Bitterman8

Enviroment (cube) mapping problem

This topic is 4909 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

Please help me! Iam only trying to make some changes in tutor example : Direct3D/EnvMapping/CubeMap (the airplane flying around the teapot, DX9.0 SDK). I noticed one big problem: reflections work properly only if the WORLD MATRIX of teapot (object surrounded by cubemap) is an IDENTITY ATRIX. But I need to scale, rotate and transpose it, and then reflections are corrupted. What am I supposed to do? What should I change (propably some matrices, I tried almost everything, but no result). Thank you...

Share this post


Link to post
Share on other sites
Advertisement
OK, I solved it alone. The problem was not in World matrix of objects but in View matrix of SkyBox. The Skybox is propably meant to be a stationary base of cube map (like sky and ground), so the translation items (.41, .42, .43, .44) of Skybox's View matrix must be zero => all bounding walls remain in same distance form "player" no matter how we move camera. And then the reflections are reflected properly. Why is this fact not written somewhere ?! I spent many hours trying to handle this f..ing problem....

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!