POV-Ray : Newsgroups : povray.general : Always on top : Re: Always on top Server Time
1 Aug 2024 20:14:16 EDT (-0400)
  Re: Always on top  
From: Warp
Date: 25 Apr 2005 05:46:48
Message: <426cbc88@news.povray.org>
Slime <fak### [at] emailaddress> wrote:
> > is there a way to tell povray to keep an object "always on top" like it is
> > possible in OpenGL?

> Not really, since POV-Ray doesn't work with a depth buffer like OpenGL
> does... if an object is behind another one, it will be shown that way.

  In theory it wouldn't be impossible to patch POV-Ray so that it would
support this kind of feature.
  When shooting a ray, POV-Ray would first test against this object and
if the ray hits it then it ignores everything else, if it doesn't then
it just raytraces in the regular way.
  The opposite would also be possible: If the ray does not hit anything
then (and only then) it is tested against the object. This would make
the object to appear behind everything else (it would thus work like
sky_sphere, but with any object).

  Of course lighting and shadowing of these objects would often be
unnatural, but then, the user should know what he is doing anyways...

-- 
                                                          - Warp


Post a reply to this message

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