Game Development Community

Importing RAW Files into MilkShape, problems!

by Ian Wheat · in General Discussion · 11/19/2001 (3:29 pm) · 10 replies

Today I made a nice terrain file in Terragen and exported it as a RAW file.
When i tried to import it into MilkShape 3d (1.5.9, latest) it wouldn't do anything. Just went back to what I was working on before trying to load the RAW file.

any ideas?

btw, I am downloading G-Max (Free version of 3dsMax) hopefully it will work.


- ian wheat

#1
11/20/2001 (9:55 am)
You do know that a RAW file is an image file, and not a 3D model, right?

This message makes it sound like you expect the terrain to show up as a 3D model. Terrain isn't usually stored that way.
#2
11/20/2001 (10:31 am)
Er... a MilkShape RAW file is a 3D object. Create a sphere, export to RAW and look at the raw file - it is all surface coords. I know because I've been working on a RAW to MAP converter (it works mostly, I just have to work around some niggling WC issues).
#3
11/20/2001 (11:13 am)
Yes, but there's also an image format called RAW. They're not the same--the one you got from Terragen is a 2D image, the one MilkShape wants is 3D. They're both raw data, they're just of a different form.
#4
11/20/2001 (11:28 am)
Ah. OK.
#5
11/20/2001 (3:10 pm)
Um ok... how exactly do I get my Terragen terrain into a .map (or something) format for an engine (not Torque neccisarrily) to read?


- ian wheat
#6
11/21/2001 (4:54 am)
Heightmaps are imported into the Torque engine using greyscaled png bitmaps. It will not accept RAW files - either 2D or 3D. I don't know how you could import your RAW files to other games. To the best of my knowledge, to bring your 2D RAW file from terragen to torque you would have to convert it to a 256 greyscaled bitmap. You could not bring a 3D RAW model or terain into the game at all.
#7
11/21/2001 (5:23 am)
ok, so if I save it as some kind of greyscale bitmap then I can load it up in a game?

how does it read where the map is higher and lower etc????



- ian wheat
#8
11/21/2001 (5:27 am)
The greyscale functions as a heightmap. The lighter a color is the higher it is...

Check the forums for more info on heightmaps and putting terrain into the engine there are a couple other gotchas in there - specifically I remember that you have to create a special subdirectory path where you must put the heightmaps. Don't have my notes here as to the exact path.
#9
11/21/2001 (9:50 am)
ok thanks =)


- ian wheat
#10
11/25/2001 (6:26 pm)
Here is a plugin for terragen that should allow you to export to something useful:
http://homepages.ihug.co.nz/~jomeder/feo/index.html