Flint Particle System Forum - Questions to createPixelParticlesFromBitmapData()2016-06-02T14:35:50+01:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
Questions to createPixelParticlesFromBitmapData()http://flintparticles.org/forum/comments.php?DiscussionID=390&Focus=1313#Comment_13132010-08-31T19:11:31+01:002010-08-31T20:59:05+01:00radykalhttp://flintparticles.org/forum/account.php?u=403
Hey guys,
first of all a great compliment to Richard, amazing Particle Engine. So I played around with your Particle Engine and I would like to use it for some projects. But I have one ...
first of all a great compliment to Richard, amazing Particle Engine. So I played around with your Particle Engine and I would like to use it for some projects. But I have one questions:
How can I ignore transparent pixels. I convert a movieclip into a bitmapdata object and give this one to the paramter of a createPixelParticlesFromBitmapData() method. Now when the emitter starts, I see also black particles, although the movieclip has only 2 white lines. This is my code:
mc.visible = false; var bmd:BitmapData = new BitmapData(mc.width, mc.height, true, 0x00000000); bmd.draw(mc);
emitter = new Emitter2D(); renderer = new PixelRenderer(new Rectangle(0, 0, stage.stageWidth, stage.stageHeight));
I notice that I only see the black particles in combination with the Fade action.
Thanks]]>
Questions to createPixelParticlesFromBitmapData()http://flintparticles.org/forum/comments.php?DiscussionID=390&Focus=1315#Comment_13152010-09-01T08:32:19+01:002016-06-02T14:35:50+01:00Richardhttp://flintparticles.org/forum/account.php?u=1
Hi
This happens because createPixelParticlesFromBitmapData() copies all pixels, including the transparent ones. The Fade method then changes the alpha of the particles to create the fade, which ...
This happens because createPixelParticlesFromBitmapData() copies all pixels, including the transparent ones. The Fade method then changes the alpha of the particles to create the fade, which reveals the transparent pixels.
I've added a couple of lines of code to the createPixelParticlesFromBitmapData() method to fix the problem (see line 124 here). This is committed to the GitHub repository and will be in the next full release.
Richard]]>
Questions to createPixelParticlesFromBitmapData()http://flintparticles.org/forum/comments.php?DiscussionID=390&Focus=1316#Comment_13162010-09-01T22:36:32+01:002016-06-02T14:35:50+01:00radykalhttp://flintparticles.org/forum/account.php?u=403
Awesome, no it works.
I would like to use the subversion of git. I´m using svnX on Max, but it seems that´s not working. I already checked out any FAQ and tutorials but nothing works.
Is this ...
I would like to use the subversion of git. I´m using svnX on Max, but it seems that´s not working. I already checked out any FAQ and tutorials but nothing works.
Is this the correct subersion path: http://svn.github.com/richardlord/Flint.git]]>
Questions to createPixelParticlesFromBitmapData()http://flintparticles.org/forum/comments.php?DiscussionID=390&Focus=1319#Comment_13192010-09-02T08:51:51+01:002010-09-02T08:52:38+01:00Richardhttp://flintparticles.org/forum/account.php?u=1
Yes, that's the correct path. However, since it's not really a subversion repository, it's rather a git repository being accessed by a conversion tool, it's not browsable. The only thing you can do ...
svn checkout http://svn.github.com/richardlord/Flint.git
I expect svnX is trying to browse the repository and show you what's in it. That unfortunately won't work.
More (but not much more) here - http://github.com/blog/626-announcing-svn-support.]]>
Questions to createPixelParticlesFromBitmapData()http://flintparticles.org/forum/comments.php?DiscussionID=390&Focus=1321#Comment_13212010-09-02T23:09:52+01:002016-06-02T14:35:50+01:00radykalhttp://flintparticles.org/forum/account.php?u=403
Ok thanks a lot. I really appreciate that you take time for answering question.
I try to rebuild an effect of this website:
http://powerflasher.de/
Move mouse over the yellow buttons. The ...
I try to rebuild an effect of this website: http://powerflasher.de/
Move mouse over the yellow buttons. The developers of this site said already that they used your engine for this effect.
I was looking for an event which dispatch when moving the mouse over a particle and return the particle, but there is no one for it. You already implent a MouseAntiGravity action, but then the particles will not go back. So I dont want the exact code, only some tipps that show me the direction to develop something like that. :)
Thanks]]>
Questions to createPixelParticlesFromBitmapData()http://flintparticles.org/forum/comments.php?DiscussionID=390&Focus=1325#Comment_13252010-09-05T10:37:39+01:002016-06-02T14:35:50+01:00Richardhttp://flintparticles.org/forum/account.php?u=1
I suspect they created a couple of custom actions - one to push particles away from the mouse if they are too close and the other to return them to their original position if otherwise.
The former ...
The former may be possible by simply adding a distance limit to the MouseAnitGravity action, and the latter by treating the original position as a personal gravity well for the particle. In both cases you'd require a lot of damping to make the particles stop quickly when they reach the target position.