Terrain Display
by Frank Bignone · in Torque Game Engine · 08/25/2001 (6:11 am) · 12 replies
I would like to display a .TER file in a GUI Control. It will be use to offer to the player a cute way of selecting the mission (at starting screen).
I have already looked at terrainrender code (function TerrainRender::renderBlock) but I need some hints on how to allow rendering of my TerrainBlock outside the scenegraph...
Any hints?
I have already looked at terrainrender code (function TerrainRender::renderBlock) but I need some hints on how to allow rendering of my TerrainBlock outside the scenegraph...
Any hints?
About the author
Real programmers don't waste time recompiling; they patch the binary files... ... Real programmers don't waste time patching binary files; they patch memory.
#2
--Rick GG
08/25/2001 (7:25 am)
The simulation renders in a gui just like everything else. Check out example/client/ui/playgui.gui, specifically the GameTSCtrl.--Rick GG
#3
(ok, I have some ideas but it's too much after 2 days in the code which btw is very interesting).
and why TerrainEditor cannot be attached to a client terrain object ?
PS: sorry in advance for my english, but it's not my mother's language.
08/25/2001 (7:52 am)
What really distract me at the moment are the real meaning of the clientSceneGraph and serverSceneGraph (btw it is related of client object and server object) ?(ok, I have some ideas but it's too much after 2 days in the code which btw is very interesting).
and why TerrainEditor cannot be attached to a client terrain object ?
PS: sorry in advance for my english, but it's not my mother's language.
#4
and also when is called the onAdd method of terrainBlock ?
08/25/2001 (10:09 am)
How to add a terrainBlock oject to the clientSceneGraph ?and also when is called the onAdd method of terrainBlock ?
#5

The GUI control need still some tweaking for the camera movement, but all the basic stuff is here. I will fix it next week, and freely publish the code to whoever wants it.
Yep, I will go to bed now....
08/25/2001 (2:29 pm)
Ok I did it. Here is the result
The GUI control need still some tweaking for the camera movement, but all the basic stuff is here. I will fix it next week, and freely publish the code to whoever wants it.
Yep, I will go to bed now....
#6
08/25/2001 (2:31 pm)
I would LOVE that code, if you like, I would really appreciate it if you sent it to: brad@nightstrike.com because i'm going away soon and may lose it if it's in the forums
#7
Can you post them as a tutorial to any of the tutorial sites that have sprung up?
Phil.
08/26/2001 (4:23 am)
Good going frank.. so basically you got the playerview AND a terrain view control working? nice.Can you post them as a tutorial to any of the tutorial sites that have sprung up?
Phil.
#8
BTW, I'm using the html template coming with V12 SDK (with some little modifications), is it alright or should I use another template for the tutorial ?
08/26/2001 (5:02 am)
I will do that and post the code also (in alpha stage as some things need still some tweakings). BTW, I'm using the html template coming with V12 SDK (with some little modifications), is it alright or should I use another template for the tutorial ?
#9
Any hints...
08/26/2001 (7:00 am)
Important question : where can I distrib the C++ source code of the two new GUI controls ? I can put them on my website, but I think it may not be possible due to some license pb.Any hints...
#10
I think it would be great if GG would host a mod code area for licensees, such as in the Resources area.
There are already too many non-GG V12 web sites popping up all over, and since the V12 is *not* open source, I don't think that GG should allow this, as many of those sites will have scripts and source code. My 2 cents. :-)
I would email Tim or Jeff directly...
David
08/27/2001 (2:26 am)
Hi,I think it would be great if GG would host a mod code area for licensees, such as in the Resources area.
There are already too many non-GG V12 web sites popping up all over, and since the V12 is *not* open source, I don't think that GG should allow this, as many of those sites will have scripts and source code. My 2 cents. :-)
I would email Tim or Jeff directly...
David
#11
Did you ever find a place to post this code, or at least a rundown on what you did?
If not, could please send it to me?
Thanks heaps
-Jason
jason.bertles@act.gov.au
09/18/2001 (4:01 pm)
FrankDid you ever find a place to post this code, or at least a rundown on what you did?
If not, could please send it to me?
Thanks heaps
-Jason
jason.bertles@act.gov.au
Torque 3D Owner Frank Bignone
Darkhand Studio
I think I didn't look at the right place.
TerrainEditor class seems better and maybe a better starting point.