Aces High Bulletin Board

General Forums => Terrain Editor => Topic started by: Raptor on December 23, 2003, 01:29:50 AM

Title: Inserting Btmp's
Post by: Raptor on December 23, 2003, 01:29:50 AM
After I make map how do I insert it? When I import it all of the elevations go up so the whole terrain is jagged.

And if anyone has jungle-like and city tiles could you e-mail them to AH_Raptor01@Hotmail.com?
Title: Inserting Btmp's
Post by: NHawk on December 23, 2003, 08:46:14 AM
Not sure what you mean here, but it sounds like you have your elevations wrong or at least the rise wrong.

The B&W values of 0 to 255 (absolute black to absolute white) define your elevations. If you go quickly from 0 to 255 you will see a sharp jagged rise in your terrain. Try smoothing out you heightfield transitions.
Title: Inserting Btmp's
Post by: Raptor on December 23, 2003, 10:07:30 AM
What do you mean by I have my elevations/rise wrong?
Do I insert the map before raising elevations?
Title: Inserting Btmp's
Post by: zmeg on December 23, 2003, 10:38:15 AM
What you've done is made a clipboard map and imported it as an elevatoin map. To get your map on the clipboard you must change it to 256 color (8 bit, indexed) then put it in a folder named texsrc. this folder isn't there by default you have to create it, this is also where you put skins & textures.
 Do a search on the boards for tiles and you will find a lot of nice ones.
Title: Inserting Btmp's
Post by: detch01 on December 23, 2003, 10:39:05 AM
Raptor, I might be off-base here (if I am my apologies) but it sounds to me like you're trying to include your clipboard map by using the "file->import" function in the menu.
The import function is for importing a gray scale bmp to build a height map (set the elevations of your terrain).

To include a clipboard map with your terrain all you need to do is rename the "map.bmp" file so that it's the same as your terrain directory name: i.e. if your terrain directory is called "mountain" then your clipboard map needs to be titled "mountain.bmp". This file should be placed in your terrain directory's texsrc folder. The TE won't make one automatically for you, so you'll have to do that. Once your clipboard map file is renamed and placed in its proper folder all you need to do is restart the TE and open your terrain, the clipboard map will be included automatically and you don't need to do anything else. It will be a part of the terrain .res file when you run a build.

I hope this helps.

Cheers,
Title: Inserting Btmp's
Post by: Raptor on December 23, 2003, 08:27:28 PM
I made a texsrc folder under my terrain folder and renamed the map the same as the terrain. It has not showed up on the clipboard though.
Quote
you must change it to 256 color (8 bit, indexed)

the lowest color setting I can get on my computer is 16 bit. could that be the problem?
Quote
The import function is for importing a gray scale bmp to build a height map (set the elevations of your terrain).

So I do not have to go over the whole map setting the elevations individually? If not how do I do so?
Title: Inserting Btmp's
Post by: detch01 on December 23, 2003, 11:41:42 PM
Raptor, yes, 16 bit is a problem. If you open up the file in MSPaint (ugh, but if it's all you have it will do) you can save your map.bmp file with the proper name as a 256 color bitmap, which is exactly what you need. That will work. It is application related - it doesn't matter what resolution your computer is actually working at. (This is for the clipboard map - sorry should have said so earlier in this post )

As for your second question.. You can do it either way. You can import a grayscale bitmap (IMPORTANT - save as 24bit colour) into your terrain in the TE to set the elevation. You'll have to determine what is going to be your highest elevation and then make that setting as you import the file - it's actually simpler than it sounds.
Essentially what that means is that you can draw the elevations you want on a grayscale bitmap, save it as a 24 bit color bitmap, then import that bitmap into the TE and it will read it and make the appropriate height elevation alterations on your terrain.

Email me (through this bbs) if you need a walk-through of how to do this :).


Cheers,
Title: Inserting Btmp's
Post by: zmeg on December 23, 2003, 11:45:42 PM
Open the map.bmp in paint and save as 256 color bmp.

  When you import a elv bmp it must be 1024 x1024, it will cover 512 X 512 miles regardless of the size of your map. max black will be zero and max white will be whatever you set max elv to when you import it (default is 20000) make sure its saved as greyscale or you will get waves all over the map.
Title: Inserting Btmp's
Post by: detch01 on December 23, 2003, 11:52:33 PM
Quote
Originally posted by zmeg
When you import a elv bmp it must be 1024 x1024, it will cover 512 X 512 miles regardless of the size of your map. max black will be zero and max white will be whatever you set max elv to when you import it (default is 20000) make sure its saved as greyscale or you will get waves all over the map.


This info is right on the money too. - sorry should have mentioned it in my post. Thx zmeg :)
Title: Inserting Btmp's
Post by: Raptor on December 24, 2003, 03:12:18 AM
OK thanks, I've got the map on the clipboard now. But could you elaborate on the grayscale bitmap to set elevations?
Title: Inserting Btmp's
Post by: detch01 on December 24, 2003, 11:22:54 AM
Here's what the TE Help file says:


"Importing and Exporting Bitmaps

Terrain elevation bitmaps may be imported to and exported from the Aces High Terrain Editor.  With the exported bitmap, you can use Paint to set the elevations for the terrain.

To export a terrain bitmap, click File->Export.  Select or enter a filename for the exported bitmap, and select the maximum elevation.  Click Okay, and the terrain will export to your ../HTC/aheditor folder with the .bmp filename you chose.  

To import a bitmap, click File->Import.  Select the bitmap you wish to import, select the maximum elevation, and click Okay."

Here's an example (reduced in size to 380x380 and converted to jpeg format) of what these bmp files look like. This file is for a 512x512 size terrain I use to experiment with.
(http://members.shaw.ca/asw441/dittums3.jpg)

The easiest way to get the correct format is to use the export function (above) then modify the graphic produced by that in whatever graphics application you have. Just remember to save your file at 1024x1024 size, in 24 bit colour. If your terrain is smaller than 512x512miles, use the export function to see the actual size of your terrain on the 1024x1024 graphic.


Cheers,
Title: Inserting Btmp's
Post by: Raptor on December 24, 2003, 05:44:48 PM
When I export it and open it on a paint program the entire thing is black. When it asks for max elevation that is what the highest elevation on the map will be right?
Title: Inserting Btmp's
Post by: detch01 on December 24, 2003, 06:08:29 PM
Exactly. This should give you a grayscale file, provided your terrain isn't all at sea level.

Cheers,
Title: Inserting Btmp's
Post by: Raptor on December 24, 2003, 07:10:42 PM
I cant say that I know what Im suppose to do now? Do I raise the elevations so gray shows up, then on the paint program just add lighter shades of gray where I want the terrain elevated? Then when I import it it will raise it on the actual terrain?
Title: Inserting Btmp's
Post by: detch01 on December 24, 2003, 07:14:15 PM
Quote
Originally posted by Raptor01
I cant say that I know what Im suppose to do now? Do I raise the elevations so gray shows up, then on the paint program just add lighter shades of gray where I want the terrain elevated? Then when I import it it will raise it on the actual terrain?

Yes, exactly :). I find it a lot easier to make large changes to my terrains using this method. For the smaller details I work vertex by vertex right in the TE.

Cheers and Merry Christmas :)
Title: Inserting Btmp's
Post by: Raptor on December 25, 2003, 01:45:06 AM
Because it is solid black I do not know where to place the mountains. I dont want to import it and be in a totally different spot than intended... what do you suggest?
Title: Inserting Btmp's
Post by: detch01 on December 25, 2003, 03:55:30 AM
Export a file first. Modify it then import it into your terrain then have a look at it to see if the changes you've made are the ones you want. If they are save the changes. If the changes aren't what you want then modify your bmp file and have another look.
One thing that you'll find really helps in building terrains is being willing to experiment.
Title: Inserting Btmp's
Post by: Raptor on December 25, 2003, 09:14:01 PM
Quote
Originally posted by detch01
Just remember to save your file at 1024x1024 size, in 24 bit colour.

How do I make sure it is 1024x1024? I forgot about that part and when importing it came out bigger than the actual terrain, tried making btmp smaller but didnt work, then remembered this. Cant figure out how.
Title: Inserting Btmp's
Post by: detch01 on December 25, 2003, 10:40:01 PM
It depends on what graphics program your using. If your using Paint Shop Pro it's "image->resize" on the menu; if your using Corel PhotoPaint it's "image->resample" on the menu; if your using MSPaint (my sympathies) it's "image->stretch/skew". Set your sizes as required. I'm not sure of the photoshop menu path to set size but it will be something along the same lines as one of the above.

Cheers,
Title: Inserting Btmp's
Post by: Raptor on December 25, 2003, 11:47:06 PM
i have resized it to many different sizes, and when i import it it still comes out bigger than it should. its centered fine and elevations are right, but covers more area than the terrain itself.
Title: Inserting Btmp's
Post by: detch01 on December 26, 2003, 10:12:37 AM
ah ok - sorry misunderstood your post. Here's an example of a small terrain elevation file. If you export a bmp file from your terrain and your terrain isn't 512x512 miles in size you'll have areas of solid black surrounding your terrain elevations. The bitmap files always export to 1024x1024 size but only the area of your terrain will show elevation data.
(http://members.shaw.ca/asw441/128xterr.jpg)


Cheers,
Title: Inserting Btmp's
Post by: Raptor on December 26, 2003, 03:10:58 PM
Alright I understand it for the most part. Thanks for all your help
Title: Inserting Btmp's
Post by: detch01 on December 26, 2003, 04:33:11 PM
You're most welcome :). Glad to help.


Cheers