Game Development Community

Chu generation time

by Vincent BILLET · in Torque Game Engine Advanced · 08/26/2005 (2:35 pm) · 5 replies

I tried my first terrain with these code :

I work on a P IV 2.4GHz 1 Go RAM...
My file is a 2049x2049 RAW file containg values from ~ -350 to ~ 1800. (that's the reason why I choose 1.0 in VertScale.
generatechunkfilefromraw16("demo/data/terrains/test.raw",2048,2.0,1.0,"demo/data/terrains/test.chu",2.0,6);
After 71 minutes, it gave me this error : Try a deeper tree...

So.. Let's go...
generatechunkfilefromraw16("demo/data/terrains/test.raw",2048,2.0,1.0,"demo/data/terrains/test.chu",2.0,10);
I Stopped it after 107 minutes.... :( (chu filesize = 214 Mo!!!)

Actually I'm trying
generatechunkfilefromraw16("demo/data/terrains/test.raw",2048,8.0,1.0,"demo/data/terrains/test.chu",8.0,10);
It's running since 24 minutes.

You can find the file Here

Anybody have a suggestion?

#1
08/26/2005 (4:00 pm)
Are you running in debug mode, or release? In release mode, my runs take less than an hour - often less than 20 minutes, and in most cases, enough less that it wasn't unfeasible to consider generating them at mission load time.

But in debug mode it can take several hours to generate a chunk file.

In the first case, did it generate a .chu file or not? I seem to recall the deeper tree text being just a warning indicating you didn't hit an optimal poly count. The next revision of this stuff will be MUCH better about being easy to use.
#2
08/26/2005 (4:27 pm)
I Run it in debug mode.
It take you less than an hour... With this file (see first post..)?
yes it generate a chunk file. but terrain does not load... I explain : I placed my spawn point 10 meter higher than the top point of my terrain, and my player fall... [Alt+C] to switch camera mode and flying around, but no terrain... why?

Quote:
The next revision of this stuff will be MUCH better about being easy to use
Great news! But when?

EDIT : Can you try the file in the first post? and tell me if it's a good file. (It's a file I generated myself).
#3
08/26/2005 (5:25 pm)
Ben, Sorry...
I putted S16 instead of U16 in my RAW file... So Now It Works in short time (<1min) :D
#4
08/26/2005 (5:27 pm)
Ah, that'll do it. :)
#5
08/26/2005 (6:26 pm)
Also, doing a Release build speeds chunk file generation by several orders of magnitude.