POV-Ray : Newsgroups : povray.off-topic : GPU rendering : Re: GPU rendering Server Time
5 Sep 2024 07:25:09 EDT (-0400)
  Re: GPU rendering  
From: Sabrina Kilian
Date: 15 Jan 2010 12:57:42
Message: <4b50ac96$1@news.povray.org>
nemesis wrote:
> In any cases, you get it wrong:  the amazing speed up is not due to
> native GPU triangle handling, but faster ray intersection calculations
> thanks to the GPU sheer parallel vector processing.  You can see that in
> smallptGPU where you get perfect math spheres much faster, no meshes in
> sight.
> 

Spheres are the other special, easy, case. Any ray that comes within
-radius- of -center point- must intersect the sphere, with a surface
normal that is pretty easy to compute. From that, the diffuse,
reflection, and so on. The math, as obvious by the very short
intersection code in smallpt, is easy and compact.

Now, for any given cone, with arbitrary rotation and ratio of base to
height, provide a fast general case for the ray intersection test, that
will give you the same information. Single test, just to be clear, not
separate cases for the disc bottom and cone top.

Then cube, then spline lathe, SOR, blobs . . .


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.