PDA

View Full Version : AS3 Raycaster


Dom_
01-27-2009, 12:49 PM
The tittle says it all. A little raycaster done in AS3, I have not added textures yet, i'll get round to doing it when I have some time :p

check it out (http://www.signalsondisplay.com/blog/?p=74)

rawmantick
01-27-2009, 02:49 PM
Depth=1 is boring)) C'mon, implement a raytracing with any trace-tree depth, materials, light sources (all main types like direction. point, cone) and with image gamma post-rendering auto-adjusting by every channel. Don't stop))

Then jump on to the radiosity with its soft shadows...

rawmantick
01-27-2009, 02:56 PM
Oh... And with transparent materials (at least with constant transparency-spread-function)... Don't forget that a ray is refracted along with reflecting... Oh, and attenuation coefficient))

rawmantick
01-27-2009, 02:58 PM
Eventually split the algorithm by timer or enter_frame so no "long script execution" appears.

Dom_
01-27-2009, 03:01 PM
Hey romantic, what I'm working on is a raycaster, not a raytracer.

senocular
01-27-2009, 03:06 PM
That's embarrassing ; )

rawmantick
01-27-2009, 03:11 PM
Hey romantic, what I'm working on is a raycaster, not a raytracer.
Raycasting is a raytracing with a depth of tracing tree equal to 1. Well... if I remember things clearly.

It means that rays went from the light source go to the object and then directly to the eye.

In raytracing they can go further to re-reflect from another objects.

Dom_
01-27-2009, 03:48 PM
That's embarrassing ; )

what is ?