View Full Version : Skybox with cubemaps... irritated

12-04-2003, 03:29 PM
I've got a very-very funny problem. I render a skybox via cubemap. The standart procedure, a box with texgen enabled:
(1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0) planes for s, t, r respectively.

It looks just lovely, but(?) there where the top of the sky must be, I have a bottom, and other way round. All other sides are correct. First I thought I would be loading false textures. But everithing should be just fine! For GL_TEXTURE_CUBE_MAP_POSITIVE_Y I load top texture, for _NEGATIVE_ the bottom one(the textures are correct). Now: If I load a bottom texture to a top cubemap face and via versa, I get correct skybox!!?? Odd...

12-05-2003, 02:09 PM
Have you already tried to send explicit texCoord?

Perhaps you'll find the bug....

12-06-2003, 04:35 AM
When using texgen your planes are computed useng the modelview matrix currently loaded onto the stack. Maybe you're forgetting to load the correct modelview matrix prior to enabling automatic texture generation...