Recommended Posts

Hi,
Well I finally got most of cubemapping figured out. One problem left though. The problem arises in that the reflections I'm seeing look completely wrong--i.e., they aren't in the right place on the reflecting object. When rendering to the texture, I set the view using gluLookAt(). I assume this is where the problem is. Here's the code (Python):

Share this post

Link to post

Share on other sites

Actually, it doesn't seem to work. The trouble is, when moving the camera, strange things happen. I got the impression it was working because it seems to work only when the camera doesn't move, i.e., the world is moved. However, when gluLookAt() is called, and the camera moved in a horizontal plane, it doesn't work:Strangely, moving in a vertical plane works:This is a truly bizaare error. Ideas?Thanks,G