Game Development Community

Atlas Problem

by Jim Taylor · in Torque Game Engine Advanced · 12/26/2008 (9:39 pm) · 6 replies

I recently purchased TGEA and I've been trying to learn the Atlas terrain system which is not difficult to understand however I simply cannot get any of the console functions to work.

Every time I attempt to run atlasOldGenerateChunkFileFromRaw16 or atlasGenerateTextureTOCFromTiles or any of the atlas console functions I just get an error in the console that it cannot find that function?

I'm sure that this is just a stupid n00b mistake but I've been working on this for 3 days and I'm quite frustrated!

Any help is greatly appreciated.

#1
12/27/2008 (7:11 am)
Jim, can you post the console.log file? This will show the errors that you are receiving.
#2
12/27/2008 (9:48 am)
Are you running in the Atlas demo, or did you recompile with Atlas source files? By default, I don't think Atlas is compiled in the Stronghold and other demos. So you will get that error. I did the same thing until I realized it was only in the Atlas demo:)
#3
12/27/2008 (6:28 pm)
Thanks for your replies I really appreciate you trying to help.

You were right Randy I was using the stronghold demo. I compiled a debug version of the Atlas demo and it worked!...at least the commands are now being understood but I'm still getting errors when I try and export the height field out of L3DT.

I don't know if you guys can help with this too but I'm getting an unhandled exception error at this point in the export:

//-------------------------- 12/27/2008 -- 19:09:50 -----
Starting Atlas Build!


Generating chunked geometry (depth=3, baseMaxError=2.500000)
   o Calculating activation levels...
      - done.
   o Propagating activation levels...
      - done.
   o Writing file header...
      - done.
   o Generating empty TOC...
      - done.
   o Generating meshes...
AtlasOldActivationHeightfield::generateNodeData - Max exceeded! May have paging issues!
AtlasOldActivationHeightfield::generateNodeData - Min exceeded! May have paging issues!
AtlasOldActivationHeightfield::generateNodeData - Min exceeded! May have paging issues!
      - done.
=== Chunk Statistics ===\
\===== Level    Count    Avg. Size
            0          16      11034.812500
            1           4      43409.500000
            2           1      98922.000000
========================================
                chunks:         21
           input verts:    1048576
          output verts:      54812

       avg verts/chunk:       2610
          output bytes:        805
      bytes/input vert:       0.00
     bytes/output vert:       0.01
        real triangles:     449117
AtlasDeferredFile::ensureStreamWritable - switching file into writable mode... This may cause a crash if you have other copies of Torque accessing it!
importOldAtlasCHU - created new Atlas file 'deleteme/geom.atlas'
importOldAtlasCHU - Atlas file initialized, converting...
importOldAtlasCHU - Headers read, remapping chunks...
importOldAtlasCHU - Importing geometry chunks...
importOldAtlasCHU -    level 2 chunks...
importOldAtlasCHU -    level 1 chunks...
importOldAtlasCHU -    level 0 chunks...
AtlasFile::waitForPendingWrites - Waiting for pending output to finish.
AtlasFile::waitForPendingWrites - Done!
importOldAtlasCHU - import OK!
AtlasFile::waitForPendingWrites - Waiting for pending output to finish.
AtlasFile::waitForPendingWrites - Done!
atlasGenerateTextureTOCFromTiles - Initializing atlas file 'deleteme/tex.atlas'...
AtlasDeferredFile::ensureStreamWritable - switching file into writable mode... This may cause a crash if you have other copies of Torque accessing it!
atlasGenerateTextureTOCFromTiles - Atlas started, processing tiles for 3 deep tree...
atlasGenerateTextureTOCFromTiles - Storing tiles in JPEG format...
atlasGenerateTextureTOCFromTiles - processing row 0...

Anyway, thanks again for you help. I should have posted here before I wasted 3 frustrating days :)
#4
12/27/2008 (6:45 pm)
I bet you are using TGEA 1.8??

If you are I got the same issue, reported as a bug.

http://www.garagegames.com/mg/forums/result.thread.php?qt=81913

I went back and compiled under 1.7 and then moved it 1.8 and worked fine. Not sure what is going on, but I spent way to much time trying to track it down the other night:)
#5
12/27/2008 (7:26 pm)
Randy,

You are correct, I am using TGEA 1.8, it's the only version that I have so I will have to go and download v1.7.

Thanks once again for your prompt assistance :)
#6
12/27/2008 (7:53 pm)
Glad I could actually help someone:)

Hopefully someone else can help tell us what is wrong with 1.8 or if something has changed that we need to do, but I haven't seen it yet.

Take care.

Randy