Game Development Community

Cubemap Problem

by Mike Kuklinski · in Torque Game Engine Advanced · 01/13/2006 (4:12 pm) · 7 replies

www.kuattech.net/cubeerror.jpg
The cubemap is valid...

#1
01/15/2006 (12:00 am)
Can you post that shot without the diffuse map? :)
#2
01/15/2006 (12:07 am)
Yes, your lordship.

www.kuattech.net/cubeerror2.jpg
#3
01/15/2006 (12:08 am)
I'd suggest running that bad boy under PIX so you can look at the cubemap and see if it's getting loaded properly.
#4
01/15/2006 (12:13 am)
I must ask -- what is PIX?
#5
01/15/2006 (12:29 am)
Here it is with the default shader-gen stuff and the lobby cubemap:

www.kuattech.net/cubeerror3.jpg
#6
01/15/2006 (9:30 am)
There is a D3D9 Cubemap Texture in PIX, but it wouldn't let me view it. However, if I remove the release calls in the code, each of the subtextures (as a surface) come up fine.

I rewrote it to use a single cube map DDS like from the ATi tool, and I still get the same issue.
#7
01/15/2006 (1:29 pm)
Well, I think I fixed it.

I rewrote part of the shadergen, so that instead of using cubetrans and whatnot, I simply give it the eye direction, it multiplies the vert normal by the modelview matrix, and then reflectsthe eye direction against that multiplied vector. That gives you the reflection vector.

www.kuattech.net/cubefixed.jpg