Game Development Community

CustomMaterial on Dif

by Playware · in Torque Game Engine Advanced · 04/12/2006 (1:50 am) · 2 replies

Hi,

I have tried to experiment to use some of the shaders from the demo on dif instead of dts.
Shaders like BumpCubeDiff and OuterKnotShader are working perfectly fine.
However, transparent/translucent effects using shaders like reflectSphere and blobRefractVert are not working on Dif but they work on Dts.

I am not interested in knowing the advantages between DTS and DIF.
I really like to know if this is a restriction on dif.
If not, am I doing something wrong by applying the same scripts for DTS onto DIF.
If certain shaders(from the head) are not working well, do I need to write another shader that simulate refraction/transparent effects?

Thanks in advance if there's any answer out there.

#1
04/12/2006 (8:55 am)
The reason its not werking is DIF binds to different registers as the DTS. You will just need to port whatever shader to use the correct registers. Look at BumpCubeDiff and get the registers you should be using.
#2
04/12/2006 (8:19 pm)
Oh i c,

So what I need to do is write another shader using the appropriate register?