Game Development Community

Mirrors in T3D Beta 5

by Ilidrake · in Torque 3D Professional · 09/19/2009 (5:22 pm) · 4 replies

Has anyone gotten mirrored surfaces to work in T3D? And if so could you please share with the community? I've been cracking at it for a few days and have no idea where to begin. Thanks in advance.

#1
09/19/2009 (6:16 pm)
I've tried but the dynamic cube maps aren't generated correctly it seems. I would wait till RC1 comes out, which should be soon before trying it again. But for now you can apply a standard cube map. Problem with those is I haven't been able to figure out how to get a Fresnel shader on the material. You could probably fake a Fresnel with a texture though.
#2
09/21/2009 (6:00 pm)
For a planar reflection like a mirror you do not want to use a dynamic cubemap. You should create a dif the shape of your mirror and setup a CustomMaterial for it which uses the ReflectBump shader.

Here is an example asset.
#3
09/21/2009 (6:07 pm)
I see that asset is a diff,
is there still no way to have a mirror on a dts surface?
like, for instance, a vehicles rear view or side mirrors?
#4
09/21/2009 (6:35 pm)
TSShape ( dts ) does not support planar reflections but you could probably hack one in as a CustomMaterial or just use a dynamic cubemap ( even though that would be way more expensive than necessary ).