Converting terragen raw file to torgue chunk file
by Playware · in Game Design and Creative Issues · 08/11/2005 (6:31 pm) · 2 replies
I am currently experimenting on terragen.It is quite a good software,but there seems to be a problem.The tutorials are ok but when it come to exporting ,since I am currently using a trial version just to see if it is worth buying the software.The problem comes with exporting the terrain.Me and my programmer are unable to figure out the file size of the .raw file.Then in the render window we have to save the file in .bmp.Here the texture size must be a power of two and square.Which is quite confusing for both of us.This is just one of the problems, since I am not a programmer it is tough for me to convert .raw to .chu since he is quite busy programming.Is there any tool which I can use to convert the raw file to chunk file.Please help.
About the author
#2
12/18/2005 (9:40 pm)
Hi rob thanks for the the solution.Fortunately my programmer went through with the procedure and was ablr to create the chunk file.Currently we are using L3DT beta version.But now we are facing our biggest hurdle the height or the terrain texture isn't coming correctly.It comes stretched.That makes our terrain quite qwful.L3DT has a viewer which can be used to view our terrain.I think its the way we have gone about converting is wrong.I will try your method as well.Thanks anyways
Rob
place ur raw file in data/terrains/
add this line to your /example/main.cs file where (xxxx) = ur filename and (starter.fps) = whatever demo ur running
generateChunkFileFromRaw16(
"starter.fps/data/terrains/xxxxx.raw",
4096, 2.0, 1.0 / ( 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 1.5),
"demo/data/terrains/large.chu", 2.0, 6);
This should generate a chu file from the raw in the same directory when u run the game debug.exe
But may take some time
Let me know if you get errors as I am currently getting errors generating chu files and Im not sure why
error I get is " AtlasMesher::writeCollision - empty bin, crap"