L3DT users' community
Large 3D terrain generator

Raw File error in Torque

Got a problem or need advice?

Raw File error in Torque

Postby Madcowthomas » Thu May 03, 2007 4:39 am

ok this error got me puzzled


AtlasOldHeightmap::loadRaw16 - unexpected file size is too small.

Well it continues with more but that is the basic. Tried 2 maps one that is a 1024 and a 4096 and receive the same error.

This my code for the 1024 map.

atlasOldGenerateChunkFileFromRaw16(
"terrain_water_demo/data/terrains/heightmap.raw",
1024, 1.0, 0.0017,
"terrain_water_demo/data/terrains/geometry.chu",
1, 2);

The raw file is a 16bit?



Tried using the torque plugin but believe there got be more that needs to be exported. Is there a tutorial that explains little more in depth?

Any suggestions is most welcome ...Thanks in advanced for any help.
From the mad cows desk to yours,
Peace
Madcowthomas

Yo...Reggie vacation mom!

"Without imagination we would cease to exist"
William Thomas
(1970-)
Warning!
Burping Babies are the Cause of Global Warming!
User avatar
Madcowthomas
Doyen
 
Posts: 159
Joined: Mon Feb 19, 2007 3:40 am
Location: Seattle Washington - Salmon Fishing

Postby Madcowthomas » Thu May 03, 2007 4:30 pm

Received some information on the raw files and this what found out

.RAW file 'Properties'.
The 'Size:' should be 2,101,250 bytes which is 1025 x 1025 x 2.

If the size is 1,050,625 then it is 1025 x 1025 (the right size) but only 8 bits.
If the size is 2,097,152 then it is 1024 x 1024 (the wrong size) but 16 bits(right bit size).
If the size is 1,048,576 then it is 1024 x 1024 (the wrong size) and only 8 bits.


So test the L3DT here at work just to get a idea before get home tonight and look at my file. When get home tonight will post the findings on the raw files there.

Well the raw file here is 2.00 MB (2,097,152 bytes) so from the information above is telling this is a wrong size file.

Arron can you tell me what I'm doing wrong here when saving the raw file?
From the mad cows desk to yours,
Peace
Madcowthomas

Yo...Reggie vacation mom!

"Without imagination we would cease to exist"
William Thomas
(1970-)
Warning!
Burping Babies are the Cause of Global Warming!
User avatar
Madcowthomas
Doyen
 
Posts: 159
Joined: Mon Feb 19, 2007 3:40 am
Location: Seattle Washington - Salmon Fishing

Postby Madcowthomas » Thu May 03, 2007 4:36 pm

Occupation: Evil scientist
Interests: Global domination, Danish pastries


Awesome Arron! Lol
From the mad cows desk to yours,
Peace
Madcowthomas

Yo...Reggie vacation mom!

"Without imagination we would cease to exist"
William Thomas
(1970-)
Warning!
Burping Babies are the Cause of Global Warming!
User avatar
Madcowthomas
Doyen
 
Posts: 159
Joined: Mon Feb 19, 2007 3:40 am
Location: Seattle Washington - Salmon Fishing

Postby demi » Thu May 03, 2007 5:17 pm

Maybe you are saving in the wrong format. Not sure which format it is since I haven't messed with TEA since July of last year. Check what format the raw needs to be.

Demi
demi
Oracle
 
Posts: 227
Joined: Thu Nov 24, 2005 4:56 am

Postby Madcowthomas » Thu May 03, 2007 5:58 pm

Think might solve the problem , wont know for sure until I get home this evening.

When exporting the raw file need to check the "resize for export" and change it too 1025

That changed the file size to 2.00 MB (2,101,250 bytes)

Anyone that works in TGEA can you confirm this is correct method of how suppose to export the map?
From the mad cows desk to yours,
Peace
Madcowthomas

Yo...Reggie vacation mom!

"Without imagination we would cease to exist"
William Thomas
(1970-)
Warning!
Burping Babies are the Cause of Global Warming!
User avatar
Madcowthomas
Doyen
 
Posts: 159
Joined: Mon Feb 19, 2007 3:40 am
Location: Seattle Washington - Salmon Fishing

Postby Aaron » Thu May 03, 2007 9:42 pm

Hi Madcowthomas,

Madcowthomas wrote:When exporting the raw file need to check the "resize for export" and change it too 1025

...

Anyone that works in TGEA can you confirm this is correct method of how suppose to export the map?


Yes, that's what Trollfiddler said in his TGEA tutorial (step 4, under "Exporting the heightfield"). Wiki to the rescue!

Cheers,
Aaron.
User avatar
Aaron
Site Admin
 
Posts: 3696
Joined: Sun Nov 20, 2005 2:41 pm
Location: Melbourne, Australia

Postby Madcowthomas » Thu May 03, 2007 9:55 pm

Rofl, using this other tutorial that one my team members found on the TGEA engine. Some reason didn't think check the tutorials here .....well rofl

Thanks Arron and everyone that help me.

Many props to you Arron on you fine product here!
From the mad cows desk to yours,
Peace
Madcowthomas

Yo...Reggie vacation mom!

"Without imagination we would cease to exist"
William Thomas
(1970-)
Warning!
Burping Babies are the Cause of Global Warming!
User avatar
Madcowthomas
Doyen
 
Posts: 159
Joined: Mon Feb 19, 2007 3:40 am
Location: Seattle Washington - Salmon Fishing


Return to Help and support

Who is online

Users browsing this forum: No registered users and 50 guests