Jump to content
  • Advertisement
Sign in to follow this  
Windfall

CubeMap example from SDK

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

Hi, I am trying to understand the example about cube environment mapping from directx sdk and it's driving me mad :| In that example there is a teapot and plane flying around it, I don't understand where the bitmap is being loaded. In the sphere-mapping example from SDK there is: "sphereMapTexture = GraphicsUtility.CreateTexture(device, "spheremap.bmp");" in the cube-mapping example there isn't such a call or something similiar, so why I can see reflections on the teapot and textured sky-box ? Many thanks Bartek

Share this post


Link to post
Share on other sites
Advertisement
The idea about the cube map is that it's a render target that's rendered into using existing scene geometry. I assume that in your post you're referring to an old sample, which I can't comment about, but the HDRCubeMap sample has the function RenderSceneIntoCubeMap which does this.

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!