Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Download Outerra Tech Demo. Unofficial Outerra Discord server, MicroProse Discord server for OWS.

Author Topic: Fractal resampling  (Read 21717 times)

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Fractal resampling
« on: March 13, 2015, 04:34:46 pm »

An experimental resampling method was tested on the existing 90m dataset, instead of the standard bilinear resampling.

The problem with bilinear resampling is that it loses high frequency detail when the samples lie in between the source points, and are averaged from 4 samples. It leads to blurring of such data, as can be easily seen when blending texture with itself to make it seamless (source):





In OT the blurring causes a loss of detail at the specific wavelength of the data, which in case of current dataset is around 75m. Detail above it is preserved in the data, below it (finer) is procedurally generated, but right at 75m it's artificially suppressed by the bilinear filter.

In order to get some detail back, I tried to compensate the blurring by adding some fractal noise, proportional to the distance from source points. In other words, if the sample falls close to one of the source samples, it's taken almost directly, but if it lies further from each source point, a small noise value is added, that's proportional to the difference between source samples and largest in the middle.

Here are some screens for comparison:







It does some interesting things, and it also affects coarser detail levels.




The dataset is a bit larger (around +1.5GB) since the terrain is effectively noisier and therefore harder to compress.
Logged

John514

  • Hero Member
  • *****
  • Posts: 543
  • Certified TARDIS driver.
Re: Fractal resampling
« Reply #1 on: March 13, 2015, 04:39:16 pm »

Interesting. Does Fractal still means its endlessly detailing the terrain here as well?
Logged
You mustn't be afraid to dream a little bigger, darling

Note: I do not claim to know everything.
I just like to help people around the forum.

HiFlyer

  • Hero Member
  • *****
  • Posts: 1788
  • newbie
Re: Fractal resampling
« Reply #2 on: March 13, 2015, 04:42:57 pm »

Is there an effect on framerates?
Logged
Spex: Intel Core i7 6700K @ 4.6GHz / 32.0GB G.SKILL TridentZ Series Dual-Channel Ram / ASUS STRIX GeForce GTX 1080 / Sound Blaster Z / Oculus Rift VR Headset / Klipsch® Promedia 2.1 Computer Speakers / ASUS ROG SWIFT PG279Q ‑ 27" IPS LED Monitor ‑ QHD / 2x Samsung SSD 850 EVO 500GB / Windows 10 Pro

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Fractal resampling
« Reply #3 on: March 13, 2015, 05:04:21 pm »

It's just a (slightly) different way how the OT dataset is compiled from the real world elevation data, a way to preserve terrain characteristics better. No effect on framerate, just the dataset size increased a bit.
Logged

monks

  • Full Member
  • ***
  • Posts: 212
Re: Fractal resampling
« Reply #4 on: March 13, 2015, 05:36:11 pm »

Yes, subtle but noticeable improvement. You remember I had a similar problem with data loss due to resampling! :-D

monks
Logged

josem75

  • Sr. Member
  • ****
  • Posts: 286
  • newbie
Re: Fractal resampling
« Reply #5 on: March 13, 2015, 07:02:39 pm »

It seems this method is working nicely in outerra. The blurring is less as we can see in pics. 
What i like in outerra is the long distance detail. So having even less blurring is great, and more if the cost is just a few more space. Cheers.   

Edit: Also, i am seeing with detail. It seems this method do a more fine job detailing rocks, so the result is not so big rock pieces.  We can see coverall in the last image comparisson, some very big rocks formations in the linear method are not generated in the fractal method, where transitions are more natural for me. Dont know if its just casuality.
« Last Edit: March 13, 2015, 07:38:29 pm by josem75 »
Logged

HiFlyer

  • Hero Member
  • *****
  • Posts: 1788
  • newbie
Re: Fractal resampling
« Reply #6 on: March 13, 2015, 08:15:15 pm »

It's just a (slightly) different way how the OT dataset is compiled from the real world elevation data, a way to preserve terrain characteristics better. No effect on framerate, just the dataset size increased a bit.

Well whenever/if ever you feel its ready, I'm sure all us guinea pigs will jump to try it!  =D
Logged
Spex: Intel Core i7 6700K @ 4.6GHz / 32.0GB G.SKILL TridentZ Series Dual-Channel Ram / ASUS STRIX GeForce GTX 1080 / Sound Blaster Z / Oculus Rift VR Headset / Klipsch® Promedia 2.1 Computer Speakers / ASUS ROG SWIFT PG279Q ‑ 27" IPS LED Monitor ‑ QHD / 2x Samsung SSD 850 EVO 500GB / Windows 10 Pro

ZeosPantera

  • ||>>-Z-<<||
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2520
  • #1 Outerra Fan Boy
    • My Youtube
Re: Fractal resampling
« Reply #7 on: March 13, 2015, 10:14:00 pm »

That mountain in the background of the last set seems to have dropped quite a bit in height. Any way to check the actual distance in feet?

Also here you go.





« Last Edit: March 13, 2015, 10:20:23 pm by ZeosPantera »
Logged
"Fear accompanies the possibility of death, Calm shepherds its certainty" - General Ka Dargo

HiFlyer

  • Hero Member
  • *****
  • Posts: 1788
  • newbie
Re: Fractal resampling
« Reply #8 on: March 13, 2015, 10:39:42 pm »

Lol, I made one of those too, so I could see the differences better.  :D
Logged
Spex: Intel Core i7 6700K @ 4.6GHz / 32.0GB G.SKILL TridentZ Series Dual-Channel Ram / ASUS STRIX GeForce GTX 1080 / Sound Blaster Z / Oculus Rift VR Headset / Klipsch® Promedia 2.1 Computer Speakers / ASUS ROG SWIFT PG279Q ‑ 27" IPS LED Monitor ‑ QHD / 2x Samsung SSD 850 EVO 500GB / Windows 10 Pro

KW71

  • Outerra Developer
  • Hero Member
  • *****
  • Posts: 763
  • Love OT!
Re: Fractal resampling
« Reply #9 on: March 13, 2015, 10:43:00 pm »

"Yes, subtle but noticeable improvement".

I think we consider it subtle because of the scale; but indeed there is a big amount of detail added,  very noticeable in the slopes. Mountains looks more like mountains to me now.

This plus 30m of resolution...  !!!
« Last Edit: March 14, 2015, 01:32:45 am by KW71 »
Logged
"A man who is contented with what he has done, will never become famous for what he will do".

Uriah

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 569
  • We do these things not because they are easy. -JFK
Re: Fractal resampling
« Reply #10 on: March 13, 2015, 11:22:16 pm »

Very nice! I fractal sampling looks far more natural.|

Regards,
Uriah
Logged

M7

  • Hero Member
  • *****
  • Posts: 736
  • newbie
Re: Fractal resampling
« Reply #11 on: March 14, 2015, 11:35:34 am »

The difference is quite noticable when the terrain is near vertical.
Logged

Peca

  • Jr. Member
  • *
  • Posts: 39
  • Outerra fan
Re: Fractal resampling
« Reply #12 on: March 14, 2015, 05:49:21 pm »

It definitely makes terrain more natural, god job :-)
Logged

2eyed

  • Sr. Member
  • ****
  • Posts: 352
  • newbie
Re: Fractal resampling
« Reply #13 on: March 15, 2015, 05:59:36 am »

It's truly a refinement and should be complemented with larger procedural structures like erosion patterns to make the look more real.
Logged

Revolver

  • Hero Member
  • *****
  • Posts: 672
  • Adlerhorst-Hangar Design Group ©
Re: Fractal resampling
« Reply #14 on: March 16, 2015, 12:00:24 am »

In my opinion looks fraktal much better... :)
Logged
"Es gibt nur eine Sünde, die gegen die ganze Menschheit mit allen ihren Geschlechtern begangen
werden kann, und dies ist die Verfälschung der Geschichte."(F.Hebbel)