Game Development Community

Creating a chu file error

by Luke Hopkins · in Torque Game Engine Advanced · 08/16/2009 (1:10 am) · 2 replies

Hi

Well its early moring again and I just can't gett past my Atlas error.

So im using Terrgen get my terrain.

I've exported at 16bit Raw file, now the terrain sizes on terrgen are 257, 513 and what not so i cant change the size's here. I've then re-opened in photoshop and re-sizes images to 512.

Then I run

atlasOldGenerateChunkFileFromRaw16(
"scriptsAndAssets/data/terrains/level1/hillhigh.raw",
512, 2.0, 1.0 / ( 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 2.0 * 1.5),
"scriptsAndAssets/data/terrains/level1/hillhigh.chu", 2.0, 6);

I'm running this is 1.7.1 Atlas demo as ive seen people mentioning bugs with 1.8.1 and i always get the error AtlasOldHieghtFeild:loadRawUI16 - unexpected file size..... Raw is not to power of 2+1.

I've been though all past forum posts to help and the TDN Tutorials.

Woundering if any one can help me out

Thanks

#1
08/16/2009 (1:57 am)
Quote:Raw is not to power of 2+1

Never really worked with Atlas terrain but it looks like hillhigh.raw needs to be 512+1 (513) pixel. Maybe it's wrong to resize the hightmap to 512 pixel in Photoshop.
#2
08/16/2009 (2:03 am)
does any one no how to export this way