Pixelbased raycasting engine ported to AS3.0
Wednesday, October 26th, 2005Pixelbased raycasting engine implemented in As2.0 for Flash 8 blogged here is now ported to AS3.0 in Flex Builder 2.
And is 10 times faster. Try it on my friend page.
Enjoy.






4 Comments
Ralph Hauwert
• Visit Site
October 26th, 2005
To be honest…this one is not as3 :
http://www.symphonyplanet.com/glenrhodes/wolf/myRay.html
And I think it’s faster (yeah, it’s also lower res rendered, but the viewPort is bigger). Also, it’s more complete.
Olli
• Visit Site
October 26th, 2005
Yes, you’re right. This is just a techdemo.
The engines are quite different. In my version every pixel is redrawn on every frame. But this shows the great speed improvement of AS3
Richard
• Visit Site
October 26th, 2005
Hey Olli,
I think some of the apparent speed difference is actually do with the keyboard control. In Glens version you can hold down the up key to move smoothly forward, in yours you use the key-repeat. If you hold down the key it does actually run pretty smoothly. Any chance you could modify the KB handling to allow for smoother movement? Very nice example btw.
Olli
• Visit Site
October 27th, 2005
keyboard control works better now.
its pretty poor that Key.isDown() was removed in AS3 so i had to use the onKeyDown event. If someone knows a better way please let me know.
Live Preview
Leave a comment