Archived

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

Dynamic Cubemap problem with Right Hand system

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

Hello, i have a little problem with generating correctly a dynamic cubemap. My engine is working with the right hand convention. When i use a static cubemap loaded from a prepared DDS file (cubemap with x/y/z faces colored to check the sampling), the texturing poses no problem. But when i try to render an "outer" scene with ID3DXRenderToEnvMap to a dynamic cubemap, the U coordinate is flipped. (but the rendering is correct) I am quite sure that this is related to the fact that i''m running with a right hand system. I use a similar approach than the SDK with D3DXMatrixLookAt.. etc..., but everything with the RH variant: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/programmingguide/advancedtopics/PixelPipe/envmap/creatingcubicmapsurfaces.asp I tried to mix with some LH approach with some corrections, but it''s worse. Has anybody encountered the same problem ? --------------------------------------------------------------- link to ID3DXRenderToEnvMap: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphics/reference/d3dx/interfaces/id3dxrendertoenvmap/_id3dxrendertoenvmap.asp

Share this post


Link to post
Share on other sites