Game Development Community

Shaders not working?

by decryptoid · in Torque Game Engine Advanced · 07/20/2005 (9:29 am) · 3 replies

I have recently been having some problems with the shaders... generally they work perfectly, but some objects ( some DTS objects) just appear dark for no apparent reason.

I made these objects just as I always do, made the materials just as I always do, and made the material mapping just as I always do and yet it will not work. Light will not show on these objects, adn the material specularity will not show on these objects. It's driving me crazy! It seems that the material does nothing but make them really dark.

Do any of the material settings from 3DSMAX affecting the shaders? Is there something obvious I am missing?

#1
07/22/2005 (8:16 am)
Is your shader compiling properly?
test via command line using fxc.exe, (verify your specific target) it will tell you if anything is askew

What registers is your shader using?
Its possible your using some registers that arent wired to any code yet..


If you want you can post your shader here, we could take a looksee..
#2
07/24/2005 (10:46 am)
Looks like it wasn't the shader at all!.... Apparently I had exported my player model with 2-sided materials. As soon as I turned that off and re-exported the player model looked perfect.
#3
07/24/2005 (9:01 pm)
Glad to hear it..