Game Development Community

T3D 1.1 Final - isRenderEnabled not working (plus new feature suggestion) - NOT A BUG

by Oscar Velzi · in Torque 3D Professional · 07/11/2011 (2:15 pm) · 4 replies

Build: 1.1 Final

Platform: Windows XP 32bit

Target: Rendering

Issues: Setting isRenderEnabled only removes the object from shadow rendering only, instead of stopping the rendering completely. This can be an useful feature, so I suggest fixing the isRenderEnabled and add a new toggle named isShadowRenderEnabled that hides the object only from shadow rendering. I've been longing for that feature for ages ;)

Steps to Repeat:
1. Open the deathball FPS example
2. Select any shadow casting object and toggle isRenderEnabled off.

img146.imageshack.us/img146/4231/isrenderenabled01.jpg
img593.imageshack.us/img593/9386/isrenderenabled02.jpg

#1
07/11/2011 (3:28 pm)
Heh, think the culler has you fooled there. If you deselect the object, does it disappear? It should and testing this here, it does so. The thing is that the culler doesn't kick anything that is selected in the editor while the editor is open. It won't let zones or other flags force the object out of rendering. However, as soon as the object is out of the selection or you toggle the editor off, the object will disappear as it should.

The reason it disappears from shadow rendering is because the non-diffuse passes (shadows and reflections) explicitly bypass the editor overrides to keep any forced editor stuff out of shadows.
#2
07/11/2011 (3:29 pm)
Quote:add a new toggle named isShadowRenderEnabled

Agree, that's a useful thing. Should be added.
#3
07/11/2011 (4:59 pm)
I see, I'll check it back home, but yeah, it must have fooled me since it didn't work like that in 1.1 b3.
#4
07/11/2011 (8:08 pm)
Yep, that's correct. Worked as you said, the new functionality threw me off.

Quote:Quote:add a new toggle named isShadowRenderEnabled

Agree, that's a useful thing. Should be added.

Hope someone hears, I'll see if our programmer can make it.