ScratchData LogoScratchData
Back to Hardmath123's profile

3D Ray Tracer

HAHardmath123•Created March 1, 2012
3D Ray Tracer
25
12
1534 views
View on Scratch

Description

This 1s1sc project is a simple raytracer which simulates rays of light to give a realistic 3D image. Enjoy in Turbo Flash! Completed image can be seen here: http://www.imgpaste.com/s0Dj.png Raytracing on Wikipedia: http://en.wikipedia.org/wiki/Ray_tracing_%28graphics%29 How it works: " In a (very thick) nutshell, I only care about rays of light reaching my eye when I see something. Moreover, there are only a limited number of rays which reach my eye. So all I do is trace the path of each ray backwards from my eye. If the ray is obstructed by an object, I stop tracing back, and paint the corresponding pixel the color of the object (shaded lighter or darker depending on how far away it is from the eye).

Project Details

Project ID2366105
CreatedMarch 1, 2012
Last ModifiedMarch 1, 2012
SharedMarch 1, 2012
Visibilityvisible
CommentsAllowed