Game Development Community

T3D 1.1 Beta 3 - 2 problems with decals rendering

by Flashback · in Torque 3D Professional · 01/24/2011 (10:28 am) · 4 replies

Build: 1.1 Beta 3 Pro

Platform: Windows Vista/7/XP, but most likely Any

Target: Engine, Decals

Issues:
1) Decal plane is rendered over Player's feet. The bigger the distance between Player model and camera, the bigger that rendering error;
2) Player's shadow is rendered below the decal.
Picture that illustrates both issues:
img11.imageshack.us/img11/3668/screenshot00100000.jpg
Steps to Repeat:

1. Launch the game.
2. Start the empty level.
2. Open the decal editor, and place a large (preferably colorful) decal under Gideon's feet. With black&white/highly transparent decal it may be harder to spot the problem.

#1
01/24/2011 (11:08 am)
Problem 1:
It is the decal bias in levelinfo,try to use small values.

Problem 2:
It is the render order in renderManager.cs
Try to swap 0.7(shadows) and 0.8(decals)
#2
01/24/2011 (11:38 am)
Problem 1 seems to be fixed, then. Spasibo, Ivan.

Problem 2 isn't, though, swapping values doesn't seem to change anything here.
#3
01/24/2011 (1:53 pm)
For problem 2, go to the decal material, and in the advanced properties set it to LerpAlpha, and check the Transparency and Transparent Z-Write checkboxes (the rest is unchecked).
#4
01/26/2011 (8:07 am)
Confirmed as working solutions.
:salute: