Flint Particle System Forum - away3d particles Mon, 12 Dec 2011 21:33:14 +0000 http://flintparticles.org/forum/ Lussumo Vanilla 1.1.10 & Feed Publisher away3d particles http://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1328#Comment_1328 http://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1328#Comment_1328 Wed, 08 Sep 2010 14:30:56 +0100 ltpve74
I am trying to use a particle system to generate some sort of a fountain in 3d, I have the fountain but I would like to use and object3d as a particle.

I have a class that creates a plane with the various parameters I need. can I use this plane as a particle?

I have been looking at the documentation but can't figure out how to do it.

thanks

Luigi ]]>
away3d particles http://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1329#Comment_1329 http://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1329#Comment_1329 Thu, 09 Sep 2010 07:43:51 +0100 Richard
You can use any Object3D as a particle. You need the A3DObjectClass initializer. To configure this initializer, you tell it how to create your Object3D. That is, what is the class, and what parameters does the class constructor require. Then, it will create a new instance of your class to be used by each particle. ]]>
away3d particles http://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1330#Comment_1330 http://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1330#Comment_1330 Thu, 09 Sep 2010 12:46:10 +0100 ltpve74 do you have any example I can look at? at the moment I created a class that just creates a plane but if I feed the class to the A3DObjectClass it returns an error of

1067: Implicit coercion of a value of type App:Sheet to an unrelated type Class.

if I then create a reference class it runs but nothing is displayed on screen I can see that it is loading the object as the memory goes up but it doesn't show on screen.

just a simple example of any Object3D and the A3DObjectClass would help me a lot.

thanks again

Luigi ]]>
away3d particles http://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1331#Comment_1331 http://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1331#Comment_1331 Fri, 10 Sep 2010 07:34:46 +0100 Richard
Like this

emitter.addInitializer( new A3DObjectClass( Sheet ) );

not like this

var s:Sheet = new Sheet();
emitter.addInitializer( new A3DObjectClass( s ) );
]]>
away3d particles http://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1366#Comment_1366 http://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1366#Comment_1366 Mon, 20 Sep 2010 11:55:05 +0100 ltpve74 ok that works with no errors but even though the class is called nothing shows on screen.

does flint takes care of adding the object3D to the view?

thanks ]]>
away3d particles http://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1367#Comment_1367 http://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1367#Comment_1367 Mon, 20 Sep 2010 12:57:49 +0100 ltpve74
thanks anyway ]]>