Jump to content
  • Advertisement
Sign in to follow this  

Cubemap issue

This topic is 2090 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 encountered some issues as I attempted to render the scene with cube map. Currently there are 

3 issues I think have to be solved. The scene is comprised of a grid with a grass texture rendered from vertex and index buffers,a sphere with texture loaded from a .dat file, and a cube map as sky made from Direct tool. 


The first issue is in the scene, the sphere doesn't look right. Some of its faces disappears and I can look the

inside of it. The second is the cube map(used as sky) is also doesn't look right as it looks too much like a cube that wraps the scene. The final is only when I put the render loop of the cube map ahead of the render loop for grid and sphere, can it be displayed correctly, otherwise the sphere and grid disappear.


The Shader code is in effect.txt, and the source code is in sourcecode.txt.


I think the cause of problems is likely in the source code. If you can have a look, thanks for any help.

Edited by null434

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!