ubiqvisuals

Login Form




Ubiq Visuals Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Green lines after rebuild (2 viewing) (2) Guests
Go to bottom Favoured: 0
TOPIC: Green lines after rebuild
#635
Green lines after rebuild 2 Years, 4 Months ago  
After installing the system into a base T3D 1.1 B3 I began to insert my own code to play around with the kit. After a rebuild I noticed that there were green lines running into the characters head as well as three white boxes. This is not present in the system prior to rebuilding. The base install works properly until it is rebuilt. I assume there is a switch enabled in the source, but I have not seen any info in the documentation or the forums regarding this. Could you point out the offending code so I can turn this off?

 
Logged Logged  
 
Last Edit: 2011/01/01 19:26 By thevisad.
  The administrator has disabled public write access.
#636
ming ()
User Offline Click here to see the profile of this user
Re:Green lines after rebuild 2 Years, 4 Months ago  
Hi I have the same problem from a build of the stock install(no custom code) the lines appear when in game mode and disappear in the editor.
 
Logged Logged  
  The administrator has disabled public write access.
#637
lornem ()
Ubiq Visuals
User Offline Click here to see the profile of this user
Gender: Male lorneswork.com Location: Vancouver
Re:Green lines after rebuild 2 Years, 4 Months ago  
Hi guys,

Yeah, there should probably be a note about this is the documentation somewhere. It's is more of a "feature" than a bug.

The 3DAAK makes use of T3D's DebugDrawer facility to draw those lines. They were useful during development to show why the player and camera were behaving the way they were. We figure that other developers may find them useful as well, so we've left them intact. See the comments in \Torque 3D 2009 Pro 1.1 Beta 3\Engine\source\gfx\sim\debugDraw.h for more information about the DebugDrawer.

A brief explaination of what it all means:
-----
The white boxes show the "detection regions" for ledge-grabbing, wall-hugging, climbing, and running. When appropriate geometry is found inside these boxes, those moves may become available.

Sometimes you'll see red or green boxes appear near the player. These show checks being performed to determine if a particular space is "clear" of obstacles. If it's clear, a green box is drawn. If not, a red box is drawn. A good example of this is when you try to pull yourself up onto a ledge, but something above is blocking you. A red box will appear above, and the player will not pull himself up.

If the player is ledge-grabbing, the ledge will be highlighted with a black line, and the ledge "normal" is shown with a pink(?) line.

When the player steps up (e.g. a staircase), the edge is highlighted with a red line.

The short red/blue line extending vertically down from between the players feet, shows the state of the player's up/down adjustment. This is used to make sure the player always looks like he's standing properly on the ground (i.e. not hovering, or stuck in the ground).

The green ones are mostly for debugging the camera system. The little green box shows the camera's "focus point" on the player (i.e. what it's looking at - usually the player's Cam node). The green lines show where raycasts are being performed. These are mostly for detecting when level geometry is blocking the view of the player.
-----

If you'd like to turn the DebugDrawer off, you have several options:

  • Build with the TORQUE_SHIPPING preprocessor define


  • Or comment out Line 33 in debugDraw.h, and build however you'd like:
    Code:


    #ifndef TORQUE_SHIPPING
    //#define ENABLE_DEBUGDRAW
    #endif



  • Or keep the DebugDrawer in the build and use this console command to toggle it on/off as you like:
    Code:


    DebugDraw.toggleDrawing();



I hope that helps,
Lorne
 
Logged Logged  
 
Last Edit: 2011/12/19 01:22 By lornem.
  The administrator has disabled public write access.
#638
ming ()
User Offline Click here to see the profile of this user
Re:Green lines after rebuild 2 Years, 4 Months ago  
yep that sorted it :)

thanks for the help
 
Logged Logged  
  The administrator has disabled public write access.
#639
Re:Green lines after rebuild 2 Years, 4 Months ago  
Lorne,
Thank you for the update sir! I will apply this to the package!

Sean
 
Logged Logged  
  The administrator has disabled public write access.
Go to top