Fork me on GitHub
Not signed in (Sign In)

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

    • CommentAuthorPatrick
    • CommentTimeJan 21st 2009
     
    Hi All,

    How can I add an Emitter3D to the Away3d Display list?
    More precisely, I want to add a fire and smoke emitter to a ObjectContainer3D.

    A working example with source would be highly appreciated :)

    Thanks, Patrick
    • CommentAuthorRichard
    • CommentTimeJan 21st 2009
     
    Hi Patrick.

    To use Flint with Away3D, don't add an emitter directly to an ObjectContainer3D but rather pass the ObjectContainer3D to the Away3DRenderer. The renderer will then add the particles directly to the container.

    There are two examples in SVN and in the examples download using Away3D - examples3D/BrownianMotion and examples3D/FireAndSmoke.
    • CommentAuthorPatrick
    • CommentTimeJan 21st 2009
     
    Hi Richard,

    Thank you, I appreciate this..

    Patrick
    • CommentAuthordesgraci
    • CommentTimeJun 2nd 2009 edited
     
    well im kinda stupid, im doing this

    renderer = new Away3DRenderer( view.scene );
    renderer.addEmitter( smoke2 );
    cubos= new ObjectContainer3D(renderer);

    after that yes i got the same that without the last line, the smoke but not moving, ad the subos thing is moving in rotations in Z in render, i tried with some cubes and works, but not with the emitter, what im doing wrong?

    i started with a code like this :

    renderer = new Away3DRenderer( carousel );
    renderer.addEmitter( smoke2 );
    renderer.addEmitter( smokeblue );
    but said something about implicit conversion of an Object3D to an Object Container (?)
    tx in advance
    nvm i just read what i worte :p, fixed :D
    • CommentAuthorRichard
    • CommentTimeJun 8th 2009
     
    Not sure what you're trying to do but, if you want the particles rendered inside the cubos container, then

    cubos= new ObjectContainer3D();
    renderer = new Away3DRenderer( cubos );
    renderer.addEmitter( smoke2 );


    Richard