PDA

View Full Version : [3D debris]



pwdVergesser
December 4th, 2008, 09:51 AM
I´ve played a bit with Flash10 new 3D-features. So here´s my first release called "debris pattern". So this pattern is fragmented into 42 individual 3d cubes (the amount of cubes is adjustable on demand), each one rotates distinctly, moves along the Z-axis, and all these processes perform by having ~40 fps constantly (pretty fast I think).

The whole snippet would remain on that limit if I wouldn´t plug several filters and blendMode´s on it. Lastly, I couldn´t deny to add my smudge shader-filter (http://www.dasprinzip.com/prinzipiell/2008/05/30/smudge/) (activate it with a mouse-click on stage), and this factor bursts every performance… but still looks interesting.

http://www.dasprinzip.com/pExamples/p77_1.jpg (http://www.dasprinzip.com/prinzipiell/2008/12/04/debris-pattern/)
Launch. (http://www.dasprinzip.com/prinzipiell/2008/12/04/debris-pattern/)


After all, the one thing that´s a bit sadly is the clipping when z-sorting the pattern - it appeals very clumsy. I mean, you can see that each single cube is actually flat… “But Hey”, you can´t have everything.


Cheers.
pwd

prototype
December 4th, 2008, 10:39 AM
On my older laptop I'm getting 3-4 fps. Interesting experiment but I don't know if it would be useful. I didn't see a link for the source.

Sirisian
December 4th, 2008, 11:08 AM
Yeah my work computer is getting 1 fps. You must have a fast computer.

Templarian
December 4th, 2008, 11:13 AM
22-27FPS when its regular. Shimmer I drop to 10-13FPS.

I think this is a time your suppose to be using the new blend features (I haven't used them, but they use the video card so you won't get the slow down).

pwdVergesser
December 8th, 2008, 03:49 AM
22-27FPS when its regular. Shimmer I drop to 10-13FPS.

I think this is a time your suppose to be using the new blend features (I haven't used them, but they use the video card so you won't get the slow down).

...new blend features - didn´t know there were new one´s ???

Templarian
December 8th, 2008, 02:01 PM
http://labs.adobe.com/technologies/pixelbender/

Sorry I meant "bender", don't know why I said blend. May be complicated to implement, but from examples I've seen it uses the GPU so there would be no frame lag.

pwdVergesser
December 9th, 2008, 09:32 AM
ohhh... you meant Pixel Bender. Well, I did a bunch of Shaders myself on Adobe´s Pixel Bender Exchange (http://www.adobe.com/cfusion/exchange/index.cfm?event=authorExtensions&authorid=67919003).

So, I can tell you, even PB-Jobs slow down when it comes to many processor-heavy executions within Flash, just like it use to be in my 3D debris pattern (http://www.dasprinzip.com/prinzipiell/2008/12/04/debris-pattern/).

You can take the built-in "shimmer mode" as proof for that, ´cause shimmer is a Pixel Bender Shader I´ve written wich runs quite fast, but slows down rapidly when added on top of all the processed 3d cubes within Flash.

final_end
December 9th, 2008, 05:51 PM
very cool and impressive pwd

senocular
December 9th, 2008, 06:35 PM
Pretty cool.

FWIW, I'm pretty sure a WMODE of GPU does not work with the new 3D features in Flash Player 10.


Correction: 3D "works" with GPU, but GPU doesn't accelerate 3D. But I did notice your exmple is falling back to direct out of GPU and that was actually the result of a blend mode.

pwdVergesser
December 11th, 2008, 03:51 AM
Correction: 3D "works" with GPU, but GPU doesn't accelerate 3D. But I did notice your exmple is falling back to direct out of GPU and that was actually the result of a blend mode.

Your right. I´m using a blendMode.Hardlight on all cubes to smarten up the textures. I already mentioned in my origin blogpost (http://www.dasprinzip.com/prinzipiell/2008/12/04/debris-pattern/) that without filters and blendMode´s, the pure 3d api runs with ~40fps, so that indeed is a very fast result. ;)

Gathan
December 14th, 2008, 12:05 PM
Interesting experiment, but its running at about 5 fps.
So I don't see it having any real production value beyond the experiment stage, maybe in the future when flashs rendering improves drastically, but not now.

pwdVergesser
December 15th, 2008, 03:55 AM
Interesting experiment, but its running at about 5 fps.
So I don't see it having any real production value beyond the experiment stage, maybe in the future when flashs rendering improves drastically, but not now.

as I explained, it runs so slow ´cause of the blendMode, wich isn´t really needed in here (just used it to style the textures). Without the blendMode, the whole snippet runs ~40fps... so I think there are some applicabilities. ;)

pwd