[Question] Newbie Questions about the BF2 Editor

Making or wanting help making your own asset? Check in here
Nightingale
Posts: 352
Joined: 2013-11-19 21:08

Re: [Question] Newbie Questions about the BF2 Editor

Post by Nightingale »

You know, I really should have asked this question earlier:

When I create a map, and I am asked to set the low-res size of the terrain, is it impossible to change the value later? Because I made my 2km terrain like this: 1024/256 (Low-res scale: 8 ).

What is the correct low-res size for 1km maps? 2km? 4km?

Do I have to restart the entire map if I chose the wrong one?
Last edited by Nightingale on 2014-09-22 19:54, edited 1 time in total.
IGN: 1993 TOYOTA_PREVIA
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: [Question] Newbie Questions about the BF2 Editor

Post by Amok@ndy »

no it can be changed though its quite difficult and you need to be very careful what you change.

the neccesary data is in Heightdata.con

though be careful because the Heightmaps resolutions are always +1 so if you create a 1024 primary / 256 secondary your heightmap files will be 1025 and 257.
Image
B2P1
Posts: 215
Joined: 2014-07-31 20:53

Re: [Question] Newbie Questions about the BF2 Editor

Post by B2P1 »

Ugh, I've been looking into changing the map size with the same heightmap, but it's complicated. And generally it won't work since stretching it or compressing it will not make it look as you want it to be. Mountains will be twice as wide, rivers will be twice as wide... You'd generally have to start over again. You could keep the origin heightmap in its original size tho but then you'd have to draw new terrain around it.

A 1024 scaled 8, i have no idea what size that is. It's 1024 scaled 2 for 2km and 1024 scaled 4 for 4km. The way I check if i've got the right size is using the measurement tool in the level editor. Just click on one side of the map, go to the other side, click again and press enter.
Last edited by B2P1 on 2014-09-22 20:12, edited 1 time in total.
Nightingale
Posts: 352
Joined: 2013-11-19 21:08

Re: [Question] Newbie Questions about the BF2 Editor

Post by Nightingale »

Actually, I was only talking about changing the "low-res size". By default on a 2km map (1024x2), it is 256. Do the PR devs have a recommended low-res size for each of the map sizes (1km, 2km, 4km)? Or is it up to the mapper to decide?
IGN: 1993 TOYOTA_PREVIA
B2P1
Posts: 215
Joined: 2014-07-31 20:53

Re: [Question] Newbie Questions about the BF2 Editor

Post by B2P1 »

Oh... My mistake. Actually, I think it's not used. I gave it the same values.
wrecker
Posts: 86
Joined: 2014-08-27 01:58

Re: [Question] Newbie Questions about the BF2 Editor

Post by wrecker »

Hey, I've been dabbling in the editor but now I'm interested in actually starting a real map based on a real place. I'm wondering if anyone could tell me the easiest way to get real world data (SRTM/DEM) into a heightmap format for bf2editor. I've been able to get it into the editor before but it shows up in big spiked terrain basically, probably some kind of problem with pixels being the wrong size. Mainly I'm looking for tips from those who have pulled it off before and what they did to do so. Thanks!
B2P1
Posts: 215
Joined: 2014-07-31 20:53

Re: [Question] Newbie Questions about the BF2 Editor

Post by B2P1 »

For a 2km or 4 km map + surrounding terrain. Assuming your grayscale map is done right.

Open it in photoshop:

-Crop it so you've got the primary heightmap as you want it. Flip horizontally, flip vertically.
-Change image size to 3075x3075 pixels and save as RAW format, as IBM PC.
-Reopen the RAW format and set channels to 1 and 16 bit and IBM PC again.
-Resave it in a TIF format.
-Open the editor, create a level. 2km or 4km
-Open BF2HMT, open the TIF format, and to the right open your level folder in pr_edit and click on your map.
-Click export.
-Done
-Go in the editor and play around with the height in level settings.
Last edited by B2P1 on 2014-09-23 18:26, edited 1 time in total.
wrecker
Posts: 86
Joined: 2014-08-27 01:58

Post by wrecker »

Anyway to do it without photoshop? Advised alternative programs I guess is what I'm asking?
Nightingale
Posts: 352
Joined: 2013-11-19 21:08

Re: [Question] Newbie Questions about the BF2 Editor

Post by Nightingale »

GIMP, basically speaking, can do anything that Photoshop does. They are very similar skillsets. I believe Photoshop CS2 is also now offered for free to the public, so those are two very good options.
IGN: 1993 TOYOTA_PREVIA
wrecker
Posts: 86
Joined: 2014-08-27 01:58

Post by wrecker »

Oh ok, I guess I'll have to check that out, thanks for the help!
Nightingale
Posts: 352
Joined: 2013-11-19 21:08

Re: [Question] Newbie Questions about the BF2 Editor

Post by Nightingale »

Image

Hi guys, I want to fix this heightmap in Photoshop. What's the correct way to load and edit a heightmap without adding wierd noise artifact things?
IGN: 1993 TOYOTA_PREVIA
CTRifle
Retired PR Developer
Posts: 1056
Joined: 2011-01-03 14:57

Re: [Question] Newbie Questions about the BF2 Editor

Post by CTRifle »

open it using these settings

Image

remember in the editor is flipped, so you have to do that if you make it right side up
Image
Image
Nightingale
Posts: 352
Joined: 2013-11-19 21:08

Re: [Question] Newbie Questions about the BF2 Editor

Post by Nightingale »

I wasn't expecting the solution to be so simple. :razz:

Image
For some reason, though, on two edges of the terrain, the problem persists. Any idea what I'm doing wrong here?
IGN: 1993 TOYOTA_PREVIA
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Post by Amok@ndy »

The edge of your terrain always aligns to your secondary terrain just enable it and use the smoothing tool
Image
Post Reply

Return to “PR:BF2 Community Modding”