Jump to content
  • Advertisement
Sign in to follow this  
Duan Lian

OpenGL Cubemap Problem

This topic is 4106 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 everyone! I'm trying to use environment mapping in my OpenGL program to implement a reflection effect. First I created a cubemap with 6 bitmap, and then I drew a solid sphere. I thought I would have been able to watch all the 6 reflection surface when I was moving the camera in the space. That is to say, when I look at the sphere from east to west, or from south to north, the reflected texture on the sphere should be different. However, no matter how I move my camera, I see only one same image toward me, just like the sphere is rotate to fix your camera when you move. I don't know wether I have expressed my question clearly, and is there someone else who has met the same problem? Help me please. Thank you very much!

Share this post


Link to post
Share on other sites
Advertisement
for example, the six surfaces on the cube is maybe the flags of Germany\UK\Italy\France\Spain\Portugal, no matter which position I stand to watch the ball, I see the UK flag is just towards me...

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!