POV-Ray : Newsgroups : povray.general : Need a Macro; derive Visible Space Params : Re: Need a Macro; derive Visible Space Params Server Time
2 Aug 2024 10:25:11 EDT (-0400)
  Re: Need a Macro; derive Visible Space Params  
From: Warp
Date: 3 Nov 2004 03:36:52
Message: <418898a4@news.povray.org>
Jeff <nomail@nomail> wrote:
> I remember running a across a macro a couple of years ago that was supposed
> to generate a lot of 3D stars (spheres) and so as not to waste effort, this
> macro was supposed to *only* calculate and place stars in the *visable
> area* of the screen (rather than just generate 5000 stars all over the
> place, most of which you won't see).

  Are you sure it's all that bad to have tiny spheres all around the
camera? (Hint: Do you know what vista buffers are?)

  Secondly, if the stars are only located so that they can be viewed
from the camera, it will not work very well if you have reflecting
objects...

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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