has anyone tried this method for heightmap editing?

Ask questions, discuss ideas, get answers
Post Reply
Shrooms
Posts: 70
Joined: Wed Aug 11, 2010 12:35 am

has anyone tried this method for heightmap editing?

Post by Shrooms »

Supposedly you can import a large heightmap into a smaller worldsized map and achieve a more detailed terrain http://i.imgur.com/14GnAYI.jpg does anyone have results to show?
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: has anyone tried this method for heightmap editing?

Post by Swaffy »

It looks the same to me? :\ Or there's just no objects there to scale it to.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: has anyone tried this method for heightmap editing?

Post by Apache Thunder »

I believe you can. Just use higher resolution RAW files and set the terrain.con file correctly. Example:

Code: Select all

GeometryTemplate.create PatchTerrain patchGeometry
GeometryTemplate.file bf1942\levels\Example\Heightmap
GeometryTemplate.materialMap bf1942\levels\Example\Materialmap
GeometryTemplate.materialSize 2048
GeometryTemplate.targetTriCount 4096
GeometryTemplate.worldSize 1024
GeometryTemplate.yScale 0.64
GeometryTemplate.texBaseName bf1942\levels\Example\Textures\Tx
GeometryTemplate.texOffsetX 0
GeometryTemplate.texOffsetY 0
GeometryTemplate.detailTexName bf1942\levels\Example\Textures\Detail
GeometryTemplate.waterLevel 12
GeometryTemplate.waterTexName texture/WaterLayer2
GeometryTemplate.waveHeight 0
GeometryTemplate.seaFloorLevel 0
GeometryTemplate.waveScale 0.01
GeometryTemplate.lodDistance 1024
Set the materialSize to match the new resolution. Be sure that your materialMap raw file also matches this size. The "WorldSize" command defines the size of the terrain object on the map. As long as you do not alter that command, increasing the heightmap resolution shouldn't mess up texture alignment.
ImageImageImage
I have cameras in your head!
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: has anyone tried this method for heightmap editing?

Post by Swaffy »

So, in other words ... keep the worldSize the same, double the size of materialSize, and double the size of the heightmap texture?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: has anyone tried this method for heightmap editing?

Post by Apache Thunder »

Yeah, that should do it. It has been awhile since i've worked on any BF1942 map. But that's how I expect it to work. :P
ImageImageImage
I have cameras in your head!
Post Reply