Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Cubemap issue


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 null434   Members   -  Reputation: 133

Like
0Likes
Like

Posted 28 January 2014 - 02:15 AM

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.

Attached Thumbnails

  • CubeMapIsWrong.png
  • SphereIsWrong.png

Attached Files


Edited by null434, 28 January 2014 - 02:32 AM.


Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS