Results 1 to 2 of 2

Thread: raytracer and openCL artifacts

  1. #1
    Junior Member
    Join Date
    May 2010
    Posts
    1

    raytracer and openCL artifacts

    Hi

    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,

    Alex

  2. #2
    Junior Member
    Join Date
    May 2010
    Posts
    2

    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;

    //Considerate

Similar Threads

  1. Black Artifacts
    By brennanrusnell in forum OpenGL ES 2X - for programmable 3D graphics pipelines
    Replies: 4
    Last Post: 02-23-2013, 02: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
  •