Game Development Community

T3D 1.1 Preview - debugdraw Does Not Render Line - RESOLVED (THREED-1666)

by Steve Acaster · in Torque 3D Professional · 04/11/2011 (11:31 am) · 9 replies

T3D 1.1 Preview

win7 32bit

target:
debugdraw

issue:
debugdraw.drawline doesn't draw anything

repeat:
get 2 positions in game space
debugdraw.togglefreeze();
debugdraw.drawline(%position1, %position2, "0 0 1");
Don't forget the toggle freeze or it'll draw it so fast you won't see it ... not that you will see it anyway cause it isn't rendering (or toggleFreeze is failing).

Suggest:
Fix it! DebugDraw should draw a line between 2 points.

#1
04/11/2011 (11:44 am)
Also just noticed that the spline for AIPlayer paths doesn't render either - there's no trail of green arrows.

None of these:
yorks.deta.in/SimpleFPSTutorial/Lesson3_ai/lesson3_5.jpg
#2
04/11/2011 (11:53 am)
Yeah, noticed that too. Kinda odd since I have been using the debug drawer quite a bit recently and actually put in a fix to make it render in the editor. Must be a GFX state corruption again.
#3
04/12/2011 (9:34 am)
Logged as THREED-1666.
#4
04/18/2011 (2:03 am)
Ok, turns out all the stuff renders correctly but is failing depth tests so nothing makes it to the screen. Looking at it in PIX, it seems the new FlashFX post-effect is flooding the zbuffer with zero depths causing all subsequent rendering that is taking depth into account to see nothing but rejections.
#5
04/18/2011 (2:22 am)
Ok, simple fix. Add

stateBlock = PFX_DefaultStateBlock;

to the FlashFx singleton and everything is working again.

Seems to me that PostFX should default to PFX_DefaultStateBlock if no other stateBlock is assigned rather than using the defaults from GFXStateBlockDesc which aren't good for PostFX.
#6
04/18/2011 (5:02 am)
Nice and easy one, Rene. All working as expected again.
:)
#7
04/18/2011 (5:08 am)
Actually, just noticed that this has not fixed the AiPlayer Path rendering issue ... those arrows still do not render.

So I guess that that is a seperate issue ...
#8
04/18/2011 (5:46 am)
Indeed. No spline paths, just the markers. THREED-1683.
#9
05/05/2011 (5:46 pm)
Fixed in 1.1 Final.