POV-Ray : Newsgroups : povray.general : Holography : Re: Holography Server Time
7 Aug 2024 21:17:41 EDT (-0400)
  Re: Holography  
From: Nekar Xenos
Date: 22 May 2001 03:12:04
Message: <3b0a1144@news.povray.org>
Could I have the code for the slide projector? I've figured that just looking
through a lens isn't necessarily going to simulate the image a real camera would
make, just the same way as you wouldn't see the big image a slide projector
shows by standing in front of the screen and looking at the projectors lens. :)

I remember something from school that this requires a concave lens but I'm still
not sure why and how you simulated this with Pov. Does it have something to do
with caustics?

--
/* Nekar Xenos */#local N=<-20,40,100>;#local K=<20,-40,100>;#local R=seed(0);
blob{#while((K-N).x>0)#local X=N;#local N=N+<rand(R),rand(R),1>/3;#local N=(
vlength(N-K)<vlength(X-K)?N:2*X-N);sphere{<N.y,-N.x,N.z>,1,1 scale .02}sphere{N
,1,1 scale.02}sphere{<-N.x-40,N.y,N.z>1,1 scale.01}sphere{<N.x+40,-N.y,N.z>1,1
scale.01 }#end pigment{rgbt 1}interior{media{emission <2,4,5>*5}}hollow}

"ingo" <ing### [at] homenl> wrote in message
news:Xns### [at] povrayorg...
> in news:3affb136@news.povray.org Nekar Xenos wrote:
>
> > What I'd need to know is if photon's work realistically enough to
> > test the functionality of lenses.
>
> Works quite good. Did a few simple things like making a 'paralell' beam
> and a slide projector.
>
> > And then there is the question
> > of the exact shape of a lens and the location of it's focal point
> > and how to model a lens in Pov.
>
> Unless you want to use a-spherical lenses it's mostly simple
> sphere-sphere difference and intersection and sphere-box difference.
> You'll need to know the lens-makers formula to find the appropriate
> radii and ior for the lens.
>
>
> Ingo
>
> --
> Photography: http://members.home.nl/ingoogni/
> Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

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