Game Development Community

T3D 1.1 Beta 3 -Verify that debugDraw rendering is working - NOT A BUG

by Steve Acaster · in Torque 3D Professional · 10/16/2010 (1:56 am) · 4 replies

T3D 1.1 Beta 3

win7

target:
DebugDraw Render

Issue
Not sure about this one, but can someone check whether debugDraw render is actually rendering in b3.

-----------------------------
2Nov2010

Issue was between chair and keyboard - debugdraw works fine - marked as "NOT A BUG" and moved to Resolved

Nothing to see here ... move along ... move along ...

#1
10/18/2010 (2:55 pm)
Logged as TQA-1183 for the QA team to verify whether it is rendering.
#2
11/02/2010 (9:37 am)
#include "gfx/sim/debugDraw.h"
{...}
DebugDrawer * debugDraw = DebugDrawer::get();
	  if (debugDraw)
	  {
		debugDraw->drawLine(Point3F(0.1,0.0,1.0),Point3F(1.,0.0,1.0));
	  }
works for me. But gives a somewhat disturbing flicker.
#3
11/02/2010 (1:13 pm)
Am I doing this right?

debugdraw.drawline("5 8 240", "5 32 240");

I'm not getting anything on screen (in editor obviously).
#4
11/02/2010 (1:19 pm)
Disregard ... I molest panthers ...

Forgot the colour!

debugdraw.drawline("5 8 240", "5 32 240", "0 0 1");

And of course you need it to render for more than 1 frame.
debugdraw.toggleFreeze();

draws a nice blue line across the screen.
Moving to Resolved.