About Store Forum Documentation Contact



Post Reply 
Smooth out jagged terrain from imported heightmap
Author Message
jondahl Offline
Member

Post: #1
Smooth out jagged terrain from imported heightmap
Hey! How do I solve this the best?

[Image: BWNTFvjl.jpg]

Same wireframed:

[Image: HiF9zXil.jpg]

I'm importing the heightmap in the World Editor. I've tried both 8 bit and 16 bit PNG files saved from photoshop and resolutions from 1024^2 to 8192^2. Terrain sized from radius 4 to 8 with area size 64 and heightmap resultions of 64 or 128.

Am I supposed to smooth it out in with code? By using some smoothing/blurring algorithm on the vertices? Or the smoothing tool in the editor? I just want to smooth out the staircase effect (but not more than that) so I can work with and decorate a smooth terrain in the editor.

Cheers,
Jonatan
(This post was last modified: 12-28-2013 12:18 AM by jondahl.)
12-28-2013 12:04 AM
Find all posts by this user Quote this message in a reply
jondahl Offline
Member

Post: #2
RE: Smooth out jagged terrain from imported heightmap
Ok so 1) I learned that it's important that the PNG is in grayscale 16 bit to get the 65536 height levels instead of 256 (so not RGB 16 bit)

And 2) I think there was something fundamentally wrong with one of my heightmaps. In photoshop, I copied the pixels from the "broken" (=jagged terrain) 16bit grayscale png into another 16bit grayscale png that I knew worked (=smooth terrain), saved it, and then my "broken" heightmap worked:

[Image: GeCasHhl.jpg]

This knowledge would make a great wiki article!

Cheers
Jonatan
12-28-2013 02:20 AM
Find all posts by this user Quote this message in a reply
Post Reply