Game Development Community

Shadows TX3D

by SteveRap · in Torque X 2D · 07/20/2008 (4:18 pm) · 4 replies

Does anybody know if TX3d supports dynamic shadows, or has anyone figured out how to do it.
I can see how it is done in XNA, but before I go down that path I was wondering if TX has a wrapper around XNA to do this stuff.

#1
07/24/2008 (11:01 pm)
I'll take that as a no then
#2
07/24/2008 (11:31 pm)
Just back from Gamefest, so I have some forums to catchup on ;)

There is no real shadow support in TX3D outside of the T3DBlobShadowCasterComponent (or something very similarly named). And all that does is find the position vector of the sun to get the vector from the sun to the player in order to project the shadow blob on the terrain. The shadow blob is a simple circular representation and not a real shadow projection of the 3D object.

John K.
#3
08/19/2008 (5:45 pm)
But we could add shadow support I assume? :]
I didn't purchase the source code for TorqueX (yet), but I'm curious if things like shadows could theoretically be added through components, by adding XNA code, I've already seen stuff for rendering to texture and all that being put into components, so maybe it could be done, although possibly not as high performance as properly integrating it into the TorqueX source code?
#4
08/19/2008 (8:20 pm)
Yes, it can definitely be added using straight XNA calls. Torque X can provide you with everything you need, like a list of all the lights, the scene render state, etc.

John K.