Jump to content

Recommended Posts

Posted

Ok I have a registered Entity which is spawning a Particle (EntityFX) like this

FMLClientHandler.instance().getClient().getMinecraft().effectRenderer.addEffect(new EntitySpecialSmokeFX(this.worldObj, this.posX, this.posY, this.posZ, this.rand.nextGaussian() * 0.1D, this.motionY * (this.rand.nextGaussian() * 0.075D), this.rand.nextGaussian() * 0.1D));

That works fine but when I spawn the particles again (from another Entity) the particles that exist already despawn or becoming invisible(I dont know what exactly happen) but they are not visible any more.

 

What can I do to fix that? (If you need code tell me which files you need)

 

Thanks for answering!

Posted

I am spawning 50 particles in a for loop when I do this the second time this happen.

Where exactly is this limit and is it possible to expand it?

 

(Sorry but I dont know very much about the particle engine and I dindnt work with it before)

Posted

If i remember correctly, the hard limit set in EffectRenderer is 4000 EntityFX per layer.

Default EntityFX is on layer 0.

You can override

getFXLayer()

to a different value to see if that fixes it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.