Flint Particle System Forum - away3d particles2011-12-12T21:12:29+00:00http://flintparticles.org/forum/
Lussumo Vanilla & Feed Publisher
away3d particleshttp://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1328#Comment_13282010-09-08T14:30:56+01:002011-12-12T21:12:29+00:00ltpve74http://flintparticles.org/forum/account.php?u=335
Hi,
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 ...
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 particleshttp://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1329#Comment_13292010-09-09T07:43:51+01:002011-12-12T21:12:29+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
Hi
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 ...
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 particleshttp://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1330#Comment_13302010-09-09T12:46:10+01:002011-12-12T21:12:29+00:00ltpve74http://flintparticles.org/forum/account.php?u=335
Hi thanks for the response,
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 ...
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 particleshttp://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1331#Comment_13312010-09-10T07:34:46+01:002011-12-12T21:12:29+00:00Richardhttp://flintparticles.org/forum/account.php?u=1
It sounds like you're passing an instance of the Sheet class to the A3DObjectClass initializer. You have to pass the class itself, so that the A3DObjectClass initializer can make an instance for each ...
Like this
emitter.addInitializer( new A3DObjectClass( Sheet ) );
not like this
var s:Sheet = new Sheet(); emitter.addInitializer( new A3DObjectClass( s ) );]]>
away3d particleshttp://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1366#Comment_13662010-09-20T11:55:05+01:002011-12-12T21:12:29+00:00ltpve74http://flintparticles.org/forum/account.php?u=335
Hi,
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
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 particleshttp://flintparticles.org/forum/comments.php?DiscussionID=393&Focus=1367#Comment_13672010-09-20T12:57:49+01:002011-12-12T21:12:29+00:00ltpve74http://flintparticles.org/forum/account.php?u=335
never mind, I was extending Obkect3D in my class instead of Plane, if I use Plane everything works.
thanks anyway
thanks anyway]]>