Flint Particle System Forum - fountain of photographs Tue, 13 Dec 2011 00:46:51 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher fountain of photographs http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1368#Comment_1368 http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1368#Comment_1368 Tue, 21 Sep 2010 11:05:21 +0100 ltpve74 I am definitely new to flint and away3d, I am trying to achieve a fountain of photographs in 3d I have so far managed to create the particles with a custom 3d object which will be my photographs.

I am having trouble figuring out how to make it so that the photographs are pointing to the centre of the fountain when they get generated, at the moment all of them are angled in the same direction. I would like to angle them so that they point towards the centre.

also would it be possible for the Plane to follow the direction it is travelling? in other words the plane would lay flat when it is at the top at the fountain but would then follow the curve and therefore go down sideways?

I hope I managed to explain myself.

thanks for any help

Luigi ]]>
fountain of photographs http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1370#Comment_1370 http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1370#Comment_1370 Tue, 21 Sep 2010 13:21:51 +0100 Richard RotateToDirection action may do what you need. ]]> fountain of photographs http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1371#Comment_1371 http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1371#Comment_1371 Tue, 21 Sep 2010 14:01:07 +0100 ltpve74 RotateToDirection does do something but it makes my planes flip all over the place.

how do I make so that the planes are generated pointed at the center of the fountain? the fountain needs to be seen from the top and the photographs need to be generated in a circular pattern.

thanks ]]>
fountain of photographs http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1372#Comment_1372 http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1372#Comment_1372 Tue, 21 Sep 2010 15:53:44 +0100 Richard fountain of photographs http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1373#Comment_1373 http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1373#Comment_1373 Tue, 21 Sep 2010 16:14:16 +0100 ltpve74 fountain of photographs http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1378#Comment_1378 http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1378#Comment_1378 Thu, 23 Sep 2010 17:34:42 +0100 Richard the documentation says "The TurnTowardsPoint action causes the particle to constantly adjust its direction so that it travels towards a particular point." It doesn't alter the rotation, just the direction of travel. ]]> fountain of photographs http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1380#Comment_1380 http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1380#Comment_1380 Thu, 23 Sep 2010 17:52:41 +0100 ltpve74
I have now managed to rotate the particles plane towards the centre and things are taking shape.

I do have another question though, is it possible to now interact with the particle? in other words I would like to user to be able to pick up the photograph and drag it around.

I guess in somehow I have to stop the emitter or renderer from interacting with the particle in question, is there a way to do that?

thanks

Luigi ]]>
fountain of photographs http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1382#Comment_1382 http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1382#Comment_1382 Thu, 23 Sep 2010 18:05:09 +0100 Richard particles property of the emitter, which is the actual array of particles used by the emitter. Remove the particle from this array and the emitter will no longer control it. When you want to add the particle back either add it directly to the particles array or use the addExistingParticles() method of the emitter. ]]> fountain of photographs http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1384#Comment_1384 http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1384#Comment_1384 Fri, 24 Sep 2010 14:38:02 +0100 ltpve74
ok so working towards this, if I put a mouseDown event in my class for the particle, it does respond. I am thinking I need to create and event that the emitter would listen to so the particle can let the emitter know that it needs to be deleted from the array.

I tried this with a custom event but the emitter never receives the event even though the event is set to bubble. where is the particle created in relation to the emitter?

I also tried to ues ADDED_TO_STAGE but when the particle is created it never gets added to the stage, is this because I ma using away3d to handle the rendering of the particles?

am I even going in the right direction with this?

regards

luigi ]]>
fountain of photographs http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1385#Comment_1385 http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1385#Comment_1385 Fri, 24 Sep 2010 19:05:16 +0100 Richard fountain of photographs http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1387#Comment_1387 http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1387#Comment_1387 Mon, 27 Sep 2010 08:40:36 +0100 ltpve74
ok I will try the route of an object listening to the events from the particles but could you explain to me how to find the particular particle in the particles array in order to delete so the emitter won't control it anymore? I'm a bit confused about this and this is the last step I need to make it work.

thanks

Luigi ]]>
fountain of photographs http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1388#Comment_1388 http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1388#Comment_1388 Tue, 28 Sep 2010 10:33:18 +0100 Richard
var particles:Array = emitter.particles;
var len:int = particles.length;

for( var i:int = 0; i < len; ++i )
{
if( particles[i].image = event.target )
{
particles.splice( i, 1 );
break;
}
}


(N.B. This code isn't tested) ]]>
fountain of photographs http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1389#Comment_1389 http://flintparticles.org/forum/comments.php?DiscussionID=400&Focus=1389#Comment_1389 Tue, 28 Sep 2010 15:37:17 +0100 ltpve74
L ]]>