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

    • CommentAuthorlocalhorst
    • CommentTimeSep 19th 2011
     
    The fire and smoke example at http://flintparticles.org/examples/fire-and-smoke-3d does not work with Away3D 4.0.110915 - nothing is visible. How can this be fixed? Thanks for your help.
    • CommentAuthorsasmaster
    • CommentTimeSep 23rd 2011
     
    Hi localhorst.Can you put here the error message from the output>?
    • CommentAuthorRichard
    • CommentTimeSep 27th 2011
     
    Hi localhorst

    I've just built and tested the examples against Away3D 4.0.110915 and they are working fine for me. Would you let us know what error you are receiving. Thanks.
    • CommentAuthorlocalhorst
    • CommentTimeSep 28th 2011
     
    Hi Richard,

    Thanks for getting back to me but I doubt you built and tested the above example against Away3D 4.0.110915 since it does NOT compile ;-)

    - [Away3dTest] Implicit coercion of a value with static type Object to a possibly unrelated type away3d.containers:Scene3D.
    view = new View3D({x:200,y:200});
    - [Away3dTest] Implicit coercion of a value of type away3d.containers:Scene3D to an unrelated type away3d.containers:ObjectContainer3D.
    renderer = new Away3DRenderer( view.scene );

    The code needs to be modified to work with Away3D 4.0.110915:

    view = new View3D();
    container = new ObjectContainer3D();
    view.scene.addChild(container);
    renderer = new Away3DRenderer(container);

    This will compile, but result in:

    ReferenceError: Error #1065: Variable away3d.sprites::MovieClipSprite ist nicht definiert.
    at org.flintparticles.threeD.away3d.initializers::A3DDisplayObjectClass/initialize()[/Users/richard/Workspaces/FDT/Flint_Master/src/org/flintparticles/threeD/away3d/initializers/A3DDisplayObjectClass.as:104]
    at org.flintparticles.common.emitters::Emitter/createParticle()[/Users/richard/Workspaces/FDT/Flint_Master/src/org/flintparticles/common/emitters/Emitter.as:656]
    at org.flintparticles.common.emitters::Emitter/update()[/Users/richard/Workspaces/FDT/Flint_Master/src/org/flintparticles/common/emitters/Emitter.as:881]
    at org.flintparticles.common.emitters::Emitter/updateEventListener()[/Users/richard/Workspaces/FDT/Flint_Master/src/org/flintparticles/common/emitters/Emitter.as:846]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at org.flintparticles.common.utils::FrameUpdater/frameUpdate()[/Users/richard/Workspaces/FDT/Flint_Master/src/org/flintparticles/common/utils/FrameUpdater.as:101]
    • CommentAuthorRichard
    • CommentTimeSep 30th 2011
     
    Thank you for providing the error message. In my haste to answer you, I didn't read your original message clearly. No, the example at http://flintparticles.org/examples/fire-and-smoke-3d doesn't work with Away3d 4 because it's written for Away3d 3. Given the substantial changes to Away3d in version 4, no code written for Away3d 3 works with Away3d 4, and that includes Flint. That is why we have a new branch of Flint for Away3d 4 (and other molehill compatible 3d engines) which you can read about on the blog. I thought it was the fire and smoke example in this branch that you were referring too, and which works fine with Away3D 4.0.110915.