Code Monkey home page Code Monkey logo

away3d-particles-system's People

Contributors

jhickner avatar liaocheng avatar xorcerer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

away3d-particles-system's Issues

How I can make the Particles move freely?

Hi liaocheng,

How I can make the Particles move freely? I mean, I'm using the smoke class, and write:

var smoke:Smoke = new Smoke();
myCar.addChild(smoke);

But the particles "follow" the car, instead of follow their local velocity.

I do not know if I explained well

Thanks and good work!

Start and Stop Animation in only one ParticleContainer

Hi,

How can I start and stop a Particle Effect in only one Container. Think about a First Person Shooter were Bullets hit a Target. I dont want to create new Particle Containers each Time the Bullet hits.

What Param defines that the Animation has finished? Sorry for my poor English.

Thx

No dispose functions, unable to destroy particle system

There is no dispose function for the EffectGroup or any other of the classes.

The result is, that when I spawn a particle system multiple times and then remove it, after some time I get a flash exception "Vertex Buffer Resource Limit exceeded".

rotate individual particles

Hi Liao,

Great work on this particle system, it is the best.

If I add RandomRotateLocal, my particles disappear. I tried many different values for param["RandomRotateLocal"] but I don't see the particles.

I have very simple Plane particles for testing. I would like these particles to start at different x, y, z rotations.

It is based on your "fire example":

var material:ParticleColorMaterial = new ParticleColorMaterial();

        var planeGeo:PlaneGeometry = new PlaneGeometry(30, 20,1,1,false,true);
        var planeGeo2:PlaneGeometry = new PlaneGeometry(15, 10,1,1,true,true);          

        sample1 = new ParticleSample(planeGeo.subGeometries[0], material);
        sample2 = new ParticleSample(planeGeo2.subGeometries[0], material);         

        //step 2:we create a generater which will group the samples.
        var generater:MutiWeightGenerater = new MutiWeightGenerater([sample1, sample2], [5, 1], 1000);

        //step 3: we create a container and set some attributes.
        particle = new ParticlesContainer();
        particle.loop = true;
        particle.hasDuringTime = true;          

        var action5:RandomRotateLocal = new RandomRotateLocal();
        particle.addAction(action5);

Pause the particle generation

Hi liaocheng,

I want to know if it would be possible to pause the generation of particles, but not stop the update of the particles that are already generated. For example, when I stop the particles in the smoke example, it freezes, and if I use removeChild, the effect is strange.

Thanks!

with away3d 4.1,I get this:

a3dparticle\animators\ParticleAnimationtor.as,34 行 1024: 正在覆盖未标记为 override 的函数。
...
public function get absoluteTime():Number
{
return _absoluteTime;
}
...
then in TransformFollowAnimator.as I find:
63-67
...
override public function set absoluteTime(value:Number):void
{
_lastTime = absoluteTime;
super.absoluteTime = value;
}
...
so, I am not so good at as3,can you help me how to fix this?Thank you very much!

TransformFollowContainer - wrong offset if offset AND rotation is used

If a TransformFollowContainer is used with both offset and rotation, the resulting particle system position is not at the correct location even if all eulers of the rotation part are set to zero.

If all eulers are zero, I expected the container to work as if it had offset only, the resulting position should remain the same.

Since A3D4 Release - Register limit exceeded in TransformFollowContainer

When using the "fire.xml" example and exchanging the ParticleContainer to a TransformFollowContainer, the register limit is exceeded.

Before A3D4 Release changes, this worked like a charm.

Error: Register overflow!
at RegisterPool/requestFreeVectorReg()[away3d\materials\utils\RegisterPool.as:46]
at away3d.materials.utils::ShaderRegisterCache/getFreeVertexAttribute()[away3d\materials\utils\ShaderRegisterCache.as:173]
at a3dparticle.animators.actions::TransformFollowAction/getOffsetCode()[a3dparticle\animators\actions\TransformFollowAction.as:80]
at a3dparticle.animators.actions::TransformFollowAction/getAGALVertexCode()[a3dparticle\animators\actions\TransformFollowAction.as:73]
at a3dparticle.animators::ParticleAnimation/getAGALVertexCode()[a3dparticle\animators\ParticleAnimation.as:308]
at away3d.materials.passes::MaterialPassBase/updateProgram()[away3d\materials\passes\MaterialPassBase.as:344]
at a3dparticle.core::SimpleParticlePass/updateProgram()[a3dparticle\core\SimpleParticlePass.as:65]
at away3d.materials.passes::MaterialPassBase/activate()[away3d\materials\passes\MaterialPassBase.as:261]
at a3dparticle.core::SimpleParticlePass/activate()[a3dparticle\core\SimpleParticlePass.as:59]
at away3d.materials::MaterialBase/activatePass()[away3d\materials\MaterialBase.as:353]
at away3d.core.render::DefaultRenderer/drawRenderables()[away3d\core\render\DefaultRenderer.as:152]
at away3d.core.render::DefaultRenderer/draw()[away3d\core\render\DefaultRenderer.as:103]
at away3d.core.render::RendererBase/executeRender()[away3d\core\render\RendererBase.as:288]
at away3d.core.render::DefaultRenderer/executeRender()[away3d\core\render\DefaultRenderer.as:62]
at away3d.core.render::RendererBase/render()[away3d\core\render\RendererBase.as:252]
at away3d.containers::View3D/render()[away3d\containers\View3D.as:616]

alpha problem with the particles and other objects

Hi liaocheng,

I have an issue when use particles with alpha, that are draw ahead of objects of away3D (that have a texture with alpha). In this case, I see the away3D object instead my particles.

For example, if I have a smoke particles and a tree with a transparent texture, and I see the tree in front of the particles.

Any solution?

Thanks in advance

Particles disappeared after 180 rotation of camera and target in TransformFollowContainer

Particles disappeared after 180 rotation of camera and target in TransformFollowContainer.
Steps to reproduce the issue

  1. setup a 3rd person camera which will follow a Object3D
  2. setup a TransformFollowContainer particle system
  3. set above target
  4. rotate and translate target object
    particles will toggle at each 180 degree rotation.
    from 0-180 particles are visible from 180-360 (-180-0) particles will be hidden
    please fix if this is an issue or give me a work around.

Thanks

change settings of actions after creation

As I see it,, it is possible to change some settings of actions on the Fly.

for example:

public function ScaleByLifeGlobal(startScale:Number,endScale:Number) 
{
    priority = 3;
    _startScale = startScale;
    _endScale = endScale;
    _delta = _endScale - _startScale;
}

startScale and _delta are only used @ setRenderState() and there it only sets it to an const.

override public function setRenderState(stage3DProxy : Stage3DProxy, pass : MaterialPassBase, renderable : IRenderable) : void
{
    var context : Context3D = stage3DProxy._context3D;
    context.setProgramConstantsFromVector(Context3DProgramType.VERTEX, scaleByLifeConst.index, Vector.<Number>([_startScale,_delta,0,0]));
}

shouldn't it be possible to change them? Or is there an reason why you don't allow that?

cheers Matse

PS: wuhuu Syntax highlighting ;)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.