Heightmap not loading properly into 4km

Making or wanting help making your own asset? Check in here
Post Reply
ismaelassassin
Chilean Forces 1978 Faction Lead
Posts: 196
Joined: 2017-11-20 18:40

Heightmap not loading properly into 4km

Post by ismaelassassin »

Hello
Im trying to work on a map but when i load the RAW file it gives me 6303750 != 2101250 ((1025x1025x4)*1,5) != (1025x1025x2) and the geometry is all a mess.

The photshop file of the heightmap has 1025x1025 size and saved as IBM PC.
the map was created with 1024 size and scale 4.

Please i want to get working on this but i have no idea why its giving me this problem.

https://imgur.com/a/harn8zn
https://imgur.com/a/Hk9umG8
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

Re: Heightmap not loading properly into 4km

Post by Outlawz7 »

Wrong format. Did you edit the heightmap in Photoshop?
Image
ismaelassassin
Chilean Forces 1978 Faction Lead
Posts: 196
Joined: 2017-11-20 18:40

Re: Heightmap not loading properly into 4km

Post by ismaelassassin »

Yeah. i saved it as RAW and choose IBM PC option
https://imgur.com/a/WgEKnLC
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

Re: Heightmap not loading properly into 4km

Post by Outlawz7 »

And what settings did you use to open it?
Image
ismaelassassin
Chilean Forces 1978 Faction Lead
Posts: 196
Joined: 2017-11-20 18:40

Re: Heightmap not loading properly into 4km

Post by ismaelassassin »

i created a new file of 1025 x 1025 and edited it with pics of heightmaps. There was nothing before.
https://imgur.com/a/Yi8XxK9
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

Re: Heightmap not loading properly into 4km

Post by Outlawz7 »

You should open an existing heightmap with correct settings, edit it and then save. At least that's the way I know to edit and save heightmaps successfully.
Image
ismaelassassin
Chilean Forces 1978 Faction Lead
Posts: 196
Joined: 2017-11-20 18:40

Re: Heightmap not loading properly into 4km

Post by ismaelassassin »

Uhh guess ill try that. Although, i had trouble trying to open heightmaps in photoshop. When i open something like yamalia all i can see is a mess of black and white pixels as if its TV static. Would it still work when i try to modify it and saving it?

https://imgur.com/a/xsUbDJS
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

Re: Heightmap not loading properly into 4km

Post by Outlawz7 »

When I open I get a prompt on what settings to open with

Image
Image
User avatar
Mineral
Retired PR Developer
Posts: 8534
Joined: 2012-01-02 12:37
Location: Belgium

Re: Heightmap not loading properly into 4km

Post by Mineral »

AFAIK secondary terrain should be 8bit depth and resolution+1 (ex. 257x257 and not 256x256).

For primary it's 16bit IBM PC depth and resolution+1 (ex. 1025x1025 and not 1024x1024).
Last edited by Mineral on 2020-10-14 16:02, edited 1 time in total.
Image
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

Re: Heightmap not loading properly into 4km

Post by Outlawz7 »

No, secondary is 257*257
Image
ismaelassassin
Chilean Forces 1978 Faction Lead
Posts: 196
Joined: 2017-11-20 18:40

Re: Heightmap not loading properly into 4km

Post by ismaelassassin »

Lol. Hey! it worked! something weird happened where the heightmap was inverted. but it worked!
Thanks for the help!

https://imgur.com/a/dFqpKQ8
https://imgur.com/a/xeXB5JD
User avatar
Mineral
Retired PR Developer
Posts: 8534
Joined: 2012-01-02 12:37
Location: Belgium

Re: Heightmap not loading properly into 4km

Post by Mineral »

inverted heightmap is expected. It is always that way :)
Outlawz7 wrote:No, secondary is 257*257
Oops, correct.
Image
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

Re: Heightmap not loading properly into 4km

Post by Outlawz7 »

Heightmaps are inverted on the vertical axis.
Image
Post Reply

Return to “PR:BF2 Community Modding”