26 Jun 2007

Flat Lighting on bitmapMaterial

by Alexander Zadorozhny Flat Lighting on bitmapMaterial

Click on the Turtle, or here, to see! The day started badly, as I've spent two evenings working on an algorithm for smooth lighting and it's simply too heavy for Flash. All I got was a snail for running speed. You just can't work at the pixel level in Flash... But I was walking around for a few days with a little idea in my head. For the 'bitmapdata only' renderers I am working on, I have written a flat lighting routine. A simple bit of code, but a very efficient one! So - I decided to apply it to the bitmapMaterial. And what a nice surprise, it seems the material does like it! After the defeat of the smooth shading, I could balance it with a very fast flat shading. If there are sufficient triangles, you even could get a smooth-shading illusion! Fabrice

COMMENTS

27 Jun 2007 12:01 PM

Mr.doob said:

Looking good!

28 Jun 2007 09:51 PM

Avi said:

Very nice fabrice! How does smooth shading work for non-animations? My particular needs include 2Dimensional graphics rendering of 3D objects, so frame rate isn't as crucial.

06 Apr 2008 03:47 PM

oleg 3d said:

not bad at all

13 Jun 2009 08:50 PM

Away3D Flash Engine Flat Lighting on bitmapMateria said:

[...] Away3D Flash Engine Flat Lighting on bitmapMaterial Posted by root 10 minutes ago (http://away3d.com) Jun 26 2007 comment by fabrice netherlands june 29 2007 4 59 pm training for 3d in flash novice to intermediate middot flash 10 speed tests middot away3d industry standard powered by wordpress web design by laurentiu piron Discuss  |  Bury |  News | Away3D Flash Engine Flat Lighting on bitmapMaterial [...]

15 Jan 2010 06:30 AM

Thomas said:

Looks really nice! Flatshading is underrated I think, from an aesthetic point of view.
It would be awesome if you could share some code or insight on how to achieve this.
-----

Only registered members can comment. Click here to login or here to register