Original Post
I'm having the same problems as the guys in this topic: http://www.gamedev.net/community/forums/topic.asp?topic_id=489899 http://i2.photobucket.com/albums/y48/klepto2/water1.jpg http://i2.photobucket.com/albums/y48/klepto2/water2.jpg I fixed it by scaling the world with -1 and not the vTexCoord.y, but this introduced a new problem. My skydome isn't "infinite" anymore in the reflection. to sum it up: - reflection rotates incorrect or - "infinite" skydome not working when using scale -1 A solution for one of the problems is needed. below is the source code [Edited by - D3DXVECTOR3 on August 31, 2008 3:41:55 AM]
// Begin reflection
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glTranslatef(0.0f, 0.0f, 0.0f);
glScalef(1.0f, -1.0f, 1.0f);
double reflectPlane[4] = {0.0f, 1.0f, 0.0f, 0.0f};
glClipPlane(GL_CLIP_PLANE0, reflectPlane);
glEnable(GL_CLIP_PLANE0);
glCullFace(GL_FRONT);
// Draw skydome
glDepthMask(GL_FALSE);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glTranslatef(camera.x, camera.y, camera.z);
RenderDome():
glPopMatrix();
glDepthMask(GL_TRUE);
// End reflection
glCullFace(GL_BACK);
glDisable(GL_CLIP_PLANE0);
glPopMatrix();