POV-Ray : Newsgroups : povray.general : Can this be done with MegaPOV? : Re: Can this be done with MegaPOV? Server Time
10 Aug 2024 09:10:32 EDT (-0400)
  Re: Can this be done with MegaPOV?  
From: Nieminen Juha
Date: 25 Jan 2000 11:08:43
Message: <388dca8b@news.povray.org>
If the object to be faked is rather complex, bounding it with a sphere
around the camera will make the scene render slower since tests with the
complex object will be performed for each pixel on screen. With a plane it
doesn't matter, since the plane is tested for each pixel anyways, but for
other objects it may be significant.
  A better solution is to use a regular bounding object which is the scaled
so that it get very small and goes very near the camera (like the camera was
the origin and you scaled the object very small). This way you get both
effects, fast rendering and the desired special effect.
  The scaling can be achieved this way:

#declare camera_location = ...

object
{ VampireObject
  bounded_by
  { object
    { Whatever
      translate -camera_location
      scale .0001
      translate camera_location
    }
  }
}

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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