Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Sampling Artifacts

Hybrid View

  1. #1
    Junior Member Regular Contributor
    Join Date
    Nov 2012
    Location
    Bremen, Germany
    Posts
    149

    Sampling Artifacts

    Sampling from a 3d-noise-map doing ray-marching in a fragment-shader I ran into strange noisy artifacts when zooming in. Are those simply because the noise-map's resolution isn't high enough? When zooming in even further there are patterns like this. The noise map has a quite low resolution of pow(64, 3) but should be smooth.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Nov 2012
    Location
    Bremen, Germany
    Posts
    149
    I tried increasing the Resolution of the map - which look better: no question... But those Patterns remain. Can those be caused by numerical instability of the ray-intersection function?

  3. #3
    Junior Member Regular Contributor
    Join Date
    Nov 2012
    Location
    Bremen, Germany
    Posts
    149
    I could nearly fix this by using a highp-precision qualifier. The strange thing is this seems to be caused by a quite simple calculation:
    Delta = (scalar1 - scalar2) / 4.0
    and not by the intersection-routine itself which is quite more complicated. That's something I would never have expected.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •