|
|
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
|
|