Flash 3D中最强的光影效果-光线追踪(点击展开中文翻译)
Recently I trying ray tracing in action script. Some ray tracer in flash I know is :
1.Strille’s raytracer_f9(nice effect, source not available ):http://www.strille.net/works/as3/raytracer/raytracer_f9.swf
2.Forrest Briggs’ Real Time Ray Tracer in AS3(simple but effective):http://www.laserpirate.com/as3raytracer/
source:http://www.laserpirate.com/as3raytracer/RayTracer.as
3.non real time ray-tracing in flash-mx(flash-6):
Strille:http://www.strille.net/works/raytracer.swf
(more controls, you can add light source, sphere, set texture)
Ross Richardson:
http://www.flashkit.com/movies/3D/Ray_Trac-Ross_Ric-9255/index.php (simple and open source)
Ross Richardson’s source:http://www.flashkit.com/downloads/movies/zip/9255/Ray%20Tracer%20v0.8.zip
I rewrite Forrest Briggs’s source and add some controls(arrow &space&shift key to move the camera)and fake textures.

demo:https://flaswf.googlecode.com/svn/trunk/flaswfblog/old_homepage/raytracersmall.swf

I also write one using the new Vector3D class for flash 10,but speed down to 3~5 fps! By the way, all above is mostly about Ray-tracing spheres so I also write one Ray-tracing triangle using Barycentric coordinate.




ray-tracing triangles
open source ray-tracing engine based on c++ http://www.devmaster.net/articles/raytracing_series/part1.php(C++source+toturial)
The Basics of Raytracing
http://www.devmaster.net/articles/raytracing/
Another Raytracing experiment based on Forrest Briggs's work:
http://unitcu.be/?p=1
ASTrace Raytracing Library (Open Source, AS3)
http://experimentalized.com/astrace.html
http://experimentalized.blogspot.com/2010/10/astrace-pre-release.html
No comments:
Post a Comment