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, 28 January 2014 - 02:32 AM.