Flint Particle System Forum - Images in PixelRenderer?2011-12-13T10:34:50+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
Images in PixelRenderer?http://flintparticles.org/forum/comments.php?DiscussionID=26&Focus=126#Comment_1262008-05-08T22:29:47+01:002008-05-20T10:14:57+01:00ericrhttp://flintparticles.org/forum/account.php?u=17
I came up with a crude way to convert BitmapData based images into pixels for the PixelRenderer to play with. This is all done with a new Initializer and some carefully considered settings. This ...
SharedBitmapData:package org.flintparticles.initializers { import flash.display.BitmapData;
emitter.addAction(new Move()); emitter.addAction(new Age()); emitter.addAction(new DeathZone(new DiscZone(new Point(0, 0), 50, 50))); emitter.renderer = renderer; emitter.start(); Of specific import is the line involving the counter. You are essentially adding the number of pixels located in the image to the emitter (one particle per pixel). This is calculated simply by Width times Height. Cake.
The above effect will explode your loaded image into pixel-particles. They will blur and fade as they go. The entire effect lasts around 1.5 seconds.
Thoughts? Anyone have any ideas on how to better implement this kind of thing?]]>
Images in PixelRenderer?http://flintparticles.org/forum/comments.php?DiscussionID=26&Focus=129#Comment_1292008-05-10T15:59:34+01:002011-12-13T10:34:50+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
It seems this is an idea who's moment has arrived. I've had an email from another Flint developer about some similar ideas. Nice work.
Images in PixelRenderer?http://flintparticles.org/forum/comments.php?DiscussionID=26&Focus=130#Comment_1302008-05-12T18:12:42+01:002011-12-13T10:34:50+00:00ericrhttp://flintparticles.org/forum/account.php?u=17
Just came across this. How about creating an emitter that can handle that kind of thing ;)
They apparently use a class called Particle3D. Are you working on something similar for the 3D-capable ...
this. How about creating an emitter that can handle that kind of thing ;)
They apparently use a class called Particle3D. Are you working on something similar for the 3D-capable version of Flint or is it more making the particle effects renderable (put the renderers on texture/normal maps, etc)?
Also, did the other developer provide any test implementation code? I'd like to compare notes if so ;D]]>
Images in PixelRenderer?http://flintparticles.org/forum/comments.php?DiscussionID=26&Focus=131#Comment_1312008-05-12T23:11:48+01:002011-12-13T10:34:50+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
That's pretty.
The plan for 3d is a full 3d space for the particle system, with particles rendered on billboards or as 3d objects, with stand-alone renderers plus renderers for Papervision3D and ...
The plan for 3d is a full 3d space for the particle system, with particles rendered on billboards or as 3d objects, with stand-alone renderers plus renderers for Papervision3D and Sandy in the library and a renderer interface that enables the creation of renderers for other 3d systems too. It may take awhile to get there but I believe it is a good plan and I hope to have something very rough to show by the end of this month - time permitting.
P.S. The other developer hasn't sent me any code yet. He was working on a more general system of zones and renderers that included initialising particles based on the properties of an image. I'm hoping he will send me some code or better still share it on this forum.]]>
Images in PixelRenderer?http://flintparticles.org/forum/comments.php?DiscussionID=26&Focus=1198#Comment_11982010-05-12T12:30:32+01:002011-12-13T10:34:50+00:00jmp909http://flintparticles.org/forum/account.php?u=365
could anyone convert this to the new 2D API? I don't really understand it enough to extend the Initializers
thanks
j
thanks j]]>
Images in PixelRenderer?http://flintparticles.org/forum/comments.php?DiscussionID=26&Focus=1211#Comment_12112010-05-19T07:49:01+01:002011-12-13T10:34:50+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
There's now a utility method for creating pixel particles from bitmap data - Particle2DUtils.createPixelParticlesFromBirmapData().
Particle2DUtils.createPixelParticlesFromBirmapData().]]>