[T3D 1.1 Alpha bug]Custom materials - shadow broken
by Ivan Mandzhukov · in Torque 3D Professional · 12/26/2009 (2:11 pm) · 10 replies
And here is the problem:
i can not get custom materials + shadow working.
Afaik this one worked in the betas:
www.torquepowered.com/community/forums/viewthread/99829
Any ideas ?
[EDIT]
Tested in beta 3, shadow works. So it's defenitely a bug.
i can not get custom materials + shadow working.
Afaik this one worked in the betas:
www.torquepowered.com/community/forums/viewthread/99829
Any ideas ?
[EDIT]
Tested in beta 3, shadow works. So it's defenitely a bug.
#2
What is not working specifically?
Does the object not render at all or render incorrectly?
How does it render incorrectly?
Have you looked at the depth and normal buffers... toggleDepthViz and toggleNormalsViz in the console?
What does your custom material do?
Screenshot?
12/29/2009 (9:29 am)
I need more details.What is not working specifically?
Does the object not render at all or render incorrectly?
How does it render incorrectly?
Have you looked at the depth and normal buffers... toggleDepthViz and toggleNormalsViz in the console?
What does your custom material do?
Screenshot?
#3
i create my own lightning model - ambient,diffuse,specular and reflection.
depth and normal buffers seems to be right.
the problem is when i switch from a simple material to custom material,shadow dissapears.
i tried also a very simple shader,that apply transformation and samples a diffuse color from a map - shadow is missing.

This only happens in 1.1 alpha. Previous T3D versions (including betas) are working fine.
12/29/2009 (9:51 am)
hi Tom,i create my own lightning model - ambient,diffuse,specular and reflection.
depth and normal buffers seems to be right.
the problem is when i switch from a simple material to custom material,shadow dissapears.
i tried also a very simple shader,that apply transformation and samples a diffuse color from a map - shadow is missing.

This only happens in 1.1 alpha. Previous T3D versions (including betas) are working fine.
#4
AL_DefaultShadowMaterial.dump();
... into the console do you get a material dump or a syntax error?
I suspect its somehow not finding the default shadow material used for meshes with custom materials.
12/29/2009 (4:28 pm)
If you type...AL_DefaultShadowMaterial.dump();
... into the console do you get a material dump or a syntax error?
I suspect its somehow not finding the default shadow material used for meshes with custom materials.
#5
If i put a comment in shadowMatHook.cpp ,shadowMat actually finds and pulls the AL_DefaultShadowMaterial definitions.
12/29/2009 (5:18 pm)
I get a material dump.If i put a comment in shadowMatHook.cpp ,shadowMat actually finds and pulls the AL_DefaultShadowMaterial definitions.
#6
I'll appreciate if you give some advice where i should look for the problem.
01/01/2010 (10:31 am)
Tom,do you have progress with the shadow ?I'll appreciate if you give some advice where i should look for the problem.
#7
06/06/2010 (4:47 pm)
Logged as TQA-295.
#8
Is this still an issue for you in 1.1 Beta 2? If it is could you send me the material you're using?
08/27/2010 (9:44 pm)
@IvanIs this still an issue for you in 1.1 Beta 2? If it is could you send me the material you're using?
#10
09/03/2010 (3:20 pm)
No worries Ivan, thanks for the update.
Torque Owner Ivan Mandzhukov
Liman3D