POV-Ray : Newsgroups : povray.newusers : Laser & Barlow Lens code/tutorial Server Time
1 Nov 2024 14:20:19 EDT (-0400)
  Laser & Barlow Lens code/tutorial (Message 1 to 2 of 2)  
From: Catseye
Subject: Laser & Barlow Lens code/tutorial
Date: 13 Jul 2008 20:22:06
Message: <487a9c2e$1@news.povray.org>
Can anyone refer me to some good laser and/or "lens" creation code and/or 
tutorials?  I wan to learn how to render a red laser beam through a "Barlow" 
lens and show the effect on the opposite side on a white flat surface.

Regards,

Jim


Post a reply to this message

From: Alain
Subject: Re: Laser & Barlow Lens code/tutorial
Date: 15 Jul 2008 22:24:35
Message: <487d5be3$1@news.povray.org>
Catseye nous illumina en ce 2008-07-13 20:20 -->
> Can anyone refer me to some good laser and/or "lens" creation code and/or 
> tutorials?  I wan to learn how to render a red laser beam through a "Barlow" 
> lens and show the effect on the opposite side on a white flat surface.
> 
> Regards,
> 
> Jim 
> 
> 
For the laser, you simply add the following to the light_source:
cylinder radius Radius tightness Tight parallel point_at Direction
The smaller the Radius value is, the narrower the beam.
tightness controll how sharp the beam is.
The point_at value also have an effect on the width of the beam. The farther it 
is from the light' location, the broader the beam.
The colour of your "laser" can be any arbitrary tint. You may need to use some 
large rgb value.
Read the documentations about "light_source".

Then you must enable photons. Add a photons block in the global_settings block.

Add the folowing to your transparent objects:
photons{target refraction on reflection on}
Read the documentations about "photons".

The receiving screen can be any flat white object.
Set it with: finish{diffuse 1 ambient 0}
To make it transparent, the followint pigment is good:
pigment{ rgbt 1}
You can use a value larger than 1, it will increase the brightness of the light 
passing through.

If you want to make the beam visible before it reatch the screen, you need to 
use some scattering media.
Read the documentation about "media".

Sory, I can't help you for the modeling of your lens. They will need an interior 
block defining the ior of the lens.
interior{ior 1.5 } // generic colourless glass interior
interior{ior 1.5 dispersion 1.01 dispersion_samples 9} // same with added 
chromatic dispersion.
Read the documentation about "interior".

-- 
Alain
-------------------------------------------------
If you can’t get your work done in the first 24 hr’s, work nights.


Post a reply to this message

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