x


Possible to change material as particles are emitted, so each particle has different material?

is this possible and how?

1st Particle has material A 2nd Particle has material B 3rd Particle has material C 4th Particle has material A ....

5th Particle goes back to material A 6th Particle goes back to material B

etc etc...

I do mean materials, not textures.

more ▼

asked Dec 24 '10 at 06:03 AM

dissidently gravatar image

dissidently
450 50 55 60

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

No, a particle system uses the same material for all particles. It would be too slow otherwise.

more ▼

answered Dec 24 '10 at 07:08 AM

Eric5h5 gravatar image

Eric5h5
80.3k 42 132 521

So the feature that allows me to set "Size" of the materials array for the particle renderer ONLY allows for ALL those materials to display at once on each particle? Not to cycle through them?

Dec 24 '10 at 08:18 AM dissidently

Correct. A particle system is a single mesh, so whatever applies to one particle applies to them all.

Dec 24 '10 at 03:06 PM Eric5h5

DOH! that's a bummer.

Dec 24 '10 at 06:37 PM dissidently
(comments are locked)
10|3000 characters needed characters left

You could have several particle systems with different materials / parameters under a single parent node. Such system could be made to appear as a single particle system with different sorts of particles.

On the other hand, this answer: http://answers.unity3d.com/questions/32087/how-can-i-emit-particles-with-different-textures-on-them suggests you could have several materials in the array of the particle renderer. I haven't tried this yet though.

more ▼

answered Dec 26 '10 at 02:53 PM

femi gravatar image

femi
512 9 13 24

what do you mean by node? An empty game object with multiple particle systems attached to it?

Dec 27 '10 at 08:27 AM dissidently

Sorry, yes, I meant GameObject. You will have a parent GameObject to position your "compound particle system" and several child GameObjects with Particle Systems with different settings (including materials) attached to it. I have such construct here: http://vimeo.com/18146747 each building is made of at least two particle systems - one with billboard particles and one with stretched (which show up only when the camera is moving

Dec 27 '10 at 08:37 AM femi
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x639
x379
x274

asked: Dec 24 '10 at 06:03 AM

Seen: 1661 times

Last Updated: Dec 24 '10 at 06:03 AM