Results 1 to 2 of 2

Thread: raytracer and openCL artifacts

  1. #1
    Junior Member
    Join Date
    May 2010

    raytracer and openCL artifacts


    Any idea why we are getting this artifacts. Please look at the picture below. if we use a i7 as opencl we get more artifacst than using a ati card, also the code doesnt work in Nvidia opencl implementation, with an nvidia card.

    thanks in advance,


  2. #2
    Junior Member
    Join Date
    May 2010

    Re: raytracer and openCL artifacts

    This is a common problem with raytracing.
    It is due to floating point imprecision.
    To prevent this from happening after reflecting or refracting move the new ray's origin slightly in the ray's direction.
    Code :
    #define EPSILON 0.001f
    newOrigin = intersectionPoint + direction * EPSILON;


Similar Threads

  1. Black Artifacts
    By brennanrusnell in forum OpenGL ES
    Replies: 4
    Last Post: 02-23-2013, 01:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean