Zengar
01-04-2004, 03:15 AM
I'm getting confused.
I tried to implement a sky box using cubemaps. I'm loading a cubemap, setting texgen to OBJECT_LINEAR with
1 0 0
0 1 0
0 0 1
s, t and r planes accordingly.
It works.
Then I tried to do a object with env reflection via fragment programs. Well, it works too.
But,
I can't understand how images in the cubemap are oriented!!! I looked throught several demos and couldn't find it out. My first tries where a disaster, then I took some cubemaps from nvidia's SDK. This images are flipped a funny way around. If I use normal(not flipped) images, reflections and skybox are messy.
Am I doing something wrong?
I tried to implement a sky box using cubemaps. I'm loading a cubemap, setting texgen to OBJECT_LINEAR with
1 0 0
0 1 0
0 0 1
s, t and r planes accordingly.
It works.
Then I tried to do a object with env reflection via fragment programs. Well, it works too.
But,
I can't understand how images in the cubemap are oriented!!! I looked throught several demos and couldn't find it out. My first tries where a disaster, then I took some cubemaps from nvidia's SDK. This images are flipped a funny way around. If I use normal(not flipped) images, reflections and skybox are messy.
Am I doing something wrong?