POV-Ray : Newsgroups : povray.advanced-users : The Prizm Effect : Re: The Prizm Effect Server Time
5 Jul 2024 14:18:44 EDT (-0400)
  Re: The Prizm Effect  
From: Alain
Date: 5 Apr 2008 10:32:07
Message: <47f79b77$1@news.povray.org>
PovManiac nous apporta ses lumieres en ce 2008/04/05 11:04:
>  I need help in attempting to make the prizm effect occur in caustic shadows of
> glass material objects, Does anyone have any suggestions ???
> 
> 
> 
Use dispersion in the interior of your prism. You also need to enable photons 
and set your prism as a target.
Sample code:

global_settings{photons{spacing 0.01}}//This enable the photons shooting.

object{Your_Prism_Object
	interior{ior 1.5 dispersion 1.03 dispersion_samples 17}
// to enable the spectral dispersion.
//dispersion control the spread
//dispersion_samples control the smoothness of the spectrum
	photons{target refraction on reflection on}
// to make it visible in the caustics.
//target enable the shooting of phtons toward the object
//refraction on enable the refraction to affect the photons
//reflection on enable the reflection of the photons
}

-- 
Alain
-------------------------------------------------
Fix reason firmly in her seat, and call to her tribunal every fact, every
opinion. Question with boldness even the existence of a God; because, if
there be one, he must more approve of the homage of reason, than that of
blindfolded fear.
Thomas Jefferson


Post a reply to this message

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