POV-Ray : Newsgroups : povray.beta-test : Read-only CVS/SVN : Re: Read-only CVS/SVN Server Time
28 Jul 2024 20:23:25 EDT (-0400)
  Re: Read-only CVS/SVN  
From: Orchid XP v7
Date: 14 Dec 2007 13:27:47
Message: <4762cb23$1@news.povray.org>
Warp wrote:

>   Don't know about Cell, but in CUDA it's probably just impossible. For one,
> CUDA doesn't support recursive function calls, which is more or less a must
> in raytracing. (POV-Ray uses recursion not only for tracing rays but other
> things as well.) Also single-precision floating point (with division and
> square root of even lower quality compared to single-precision math done
> with the FPU) is also a rather big wall. Not to talk about the CPU/GPU
> bottleneck. As for multithreading, threads must run in groups of at least
> 32 threads that execute identical instructions simultaneously. Not very
> likely in raytracing (again, because of all those pesky random recursions...)

It can be done.

It's not what you'd call "easy". Would require an absurd amount of work 
to do it.

(You can build a ray queue. The GPU picks up a bundle of rays, sees 
whether or not each one intesects object X, and stores that somewhere. 
You then move the rays that hit it into another render queue ready to go 
through a different pass of the process. Long, complicated, and quite 
possibly not actually very fast...)

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

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