View Single Post
Old 06-Jul-2009, 09:58  
Scali
Naughty Boy!
 
Join Date: Nov 2003
Posts: 2,127
Send a message via ICQ to Scali Send a message via MSN to Scali
Default

Quote:
Originally Posted by rpg.314 View Post
Nah, refraction isn't a pure wave effect. Interference and diffraction are.
What about refraction through a prism for example?
The 'rainbow' effect is a result of different wavelengths having different refraction angles, right?
But I agree that most raytracers don't bother to model light this way. They tend to model refraction the same way as reflection, which isn't correct.
This is generally a case where you use a photonmapping approach again. You can emit photons with various wavelenghts, and use the wavelength in calculation of the refraction angle.
__________________
ZX81 -> C64 -> Hercules -> Plantronics CGA -> Paradise VGA -> Amiga ECS -> Amiga AGA -> Cirrus Logic 5428 VLB -> S3 Trio64 -> Matrox Mystique -> PCX2 -> Matrox G200 -> Matrox G450 -> GeForce2 GTS -> Kyro II -> Radeon 8500 -> Radeon 9600XT -> GeForce 7600GT -> GeForce 8800GTS -> HD5770
Scali is offline   Reply With Quote