Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Since A3D4 Release - Register limit exceeded in TransformFollowContainer #8

Open
Lyve1981 opened this issue Jul 27, 2012 · 3 comments

Comments

@Lyve1981
Copy link

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]

@Lyve1981
Copy link
Author

Note: To use the TransformFollowContainer, we exchanged the construction in createNeedStuff():* in SystemFactoryS.as

We exchanged:

var particlesContainer:ParticlesContainer = new ParticlesContainer();

by

var particlesContainer:ParticlesContainer = new TransformFollowContainer();

@liaocheng
Copy link
Owner

There is a clone problem , I have just fixed it . But I can not reproduce your problem . Can you try it again ?

@Lyve1981
Copy link
Author

Many thanks for your fix :) At my home machine everything works as expected now, I will let you know if it works at my workplace on monday

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants