MarcusL
05-15-2002, 02:48 AM
Hi!
Despite reading all the previous posts here (which helped me a bit), I can't get it to work properly. The cube map seem misaligned and 'stretched' over the object, but does contain the right colours, here and there. (I recently got big blotches of green and purple in a few places too.)
I've gotten so far as rendering the cube's sides correctly (posx, negx, etc..) and they seem to be correct when I view them. The cube is aligned to 'world' coordinates. (I can also align it to the object, however it doesn't make things better at all)
I have enabled texture coord generation (reflection map + enable texgen for s,t,r).
I am putting the inverse of the upper 3x3 part of the modelview matrix in the texture matrix.
Here's a screenshot with the cubemap and the object:
http://www.dtek.chalmers.se/~d98macke/shot_2002-05-15_13.37.05.png
Tell me what parts of the code you need, if any. Thanks in advance!
Despite reading all the previous posts here (which helped me a bit), I can't get it to work properly. The cube map seem misaligned and 'stretched' over the object, but does contain the right colours, here and there. (I recently got big blotches of green and purple in a few places too.)
I've gotten so far as rendering the cube's sides correctly (posx, negx, etc..) and they seem to be correct when I view them. The cube is aligned to 'world' coordinates. (I can also align it to the object, however it doesn't make things better at all)
I have enabled texture coord generation (reflection map + enable texgen for s,t,r).
I am putting the inverse of the upper 3x3 part of the modelview matrix in the texture matrix.
Here's a screenshot with the cubemap and the object:
http://www.dtek.chalmers.se/~d98macke/shot_2002-05-15_13.37.05.png
Tell me what parts of the code you need, if any. Thanks in advance!