Torque3D Beta 1 Bug - Editor Coordinate Space problem
by Dean Calver · in Torque 3D Professional · 05/04/2009 (6:48 am) · 5 replies
I'm getting some major coordinate/transform errors. I've got a terrain (house_terrain) at 0,0,0 but my SphereSpawn seems to be in a completely different coordinate system, its 0,0,0 is far below the terrain (and so I start way below the ground... not good hehe)
These 3 screen shot illustrate it best.
Picture of terrain above me (note: the inspector shows it has identity transform).

Picture of spawn sphere well below the terrain but at 0,0,135

Picture of spawn sphere still well below the terrain but at 0,0,290

Seems very wrong (and of course i'm also not spawning where I want to be...)
Thanks,
Deano
These 3 screen shot illustrate it best.
Picture of terrain above me (note: the inspector shows it has identity transform).

Picture of spawn sphere well below the terrain but at 0,0,135

Picture of spawn sphere still well below the terrain but at 0,0,290

Seems very wrong (and of course i'm also not spawning where I want to be...)
Thanks,
Deano
About the author
Been a games dev for more years than its comfortable to remember. Have shipped a fair few games, most recently have been Lead Programmer on Brink and Heavenly Sword.
#2
Start World Editor
New Level
Unlock default terrain
Delete default terrain
Create New Terrain
It will claim to be at 0,0,0 but will be in a different coordinate space from other objects (it will be way over head, yet the drop point at Z=720 is below it).
07/12/2009 (11:57 am)
Just noting, still happens in beta 3.Start World Editor
New Level
Unlock default terrain
Delete default terrain
Create New Terrain
It will claim to be at 0,0,0 but will be in a different coordinate space from other objects (it will be way over head, yet the drop point at Z=720 is below it).
#3
07/20/2009 (3:30 pm)
This still occurs in Beta 4 with the repro steps above.
#4
Do you have your "drop location" set to Origin?
I can drop a terrain right at my camera - with drop at camera selected.
07/20/2009 (3:48 pm)
@BrettDo you have your "drop location" set to Origin?
I can drop a terrain right at my camera - with drop at camera selected.
#5
The terrain object's "position" is at one of its bottom corners.
The visible terrain as represented by the heightmap only raises "up" starting from the z position of the terrain object, which is effectively its lowest possible point.
So if your spawn sphere is at position 0,0,0 it should be at the bottom corner of your terrain but only actually be flush with the visible terrain surface if the height of the terrain at that grid element was zero.
Try flattening down your entire terrain to zero height and you might see what i mean.
07/23/2009 (12:10 pm)
I could be misinterpreting your screenshots, but I think this actually might not be a bug. The terrain object's "position" is at one of its bottom corners.
The visible terrain as represented by the heightmap only raises "up" starting from the z position of the terrain object, which is effectively its lowest possible point.
So if your spawn sphere is at position 0,0,0 it should be at the bottom corner of your terrain but only actually be flush with the visible terrain surface if the height of the terrain at that grid element was zero.
Try flattening down your entire terrain to zero height and you might see what i mean.
Torque 3D Owner Kenneth Holst
Default Studio Name