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

    • CommentAuthormpelham
    • CommentTimeMar 9th 2009 edited
     
    I've been having a terrible time getting colors onto the Particle effects of the Papervision Particle Renderer. When I began I tried using MovieClips with graphics for colors but this version of FLINT does not allow tints or alpha possibly because the ParticleMovieMaterial class is not fully built out (Animated is not implemented). I've switched over to the Particle graphics class (addInitializer( new PV3DObjectClass ( Particle, new ParticleMaterial(0xFFEC44, 0.5, 0), 5, 1));), but am only getting the default color value no matter what I pass in.

    Example is here(http://www.mattpelham.com/Mech.swf), still.
    • CommentAuthorRichard
    • CommentTimeMar 16th 2009
     
    With the PV3D renderer, colors and alphas only work with some materials. The code always tries to set them. in teh case of the MovieMaterial it applies a colorTransform to the material's movieclip. For all other materials, it sets the fillColor and fillAlpha of the material.

    Have you checked the examples from the downloads? There's three Papervision 3D examples in there, all of which use color in some way.