Particles and Material

(9 posts) (3 voices)
  1. Reset

    enthusiast
    Joined: Apr '14
    Posts: 50

    Hi,

    I would like to use a custom material for my particles but I can't get it working.
    Setting the Material in the "Render" group does nothing.

    How does it work ?

    Thank you

    Posted 2 years ago #
  2. jdelrio

    Community Manager
    Joined: Apr '08
    Posts: 1,645

    Changing the texture in the Render menu should work.

    Posted 2 years ago #
  3. Reset

    enthusiast
    Joined: Apr '14
    Posts: 50

    Hi,
    yea it works for the texture slot, however I'd like to use another shader for the particles.

    thx

    Posted 2 years ago #
  4. jdelrio

    Community Manager
    Joined: Apr '08
    Posts: 1,645

    Shader? You change the sprite for the particles, or use an animated sprite. Can you explain your scenario?

    Posted 2 years ago #
  5. Reset

    enthusiast
    Joined: Apr '14
    Posts: 50

    Yea, change the material (hence the shader).

    For exemple : Changing the color or alpha of the particle depending of the position in space.
    The material slot in render menu seems to be the perfect thing.

    thx

    Posted 2 years ago #
  6. iainB85

    Interplanetary Delivery Boy
    Joined: Jun '08
    Posts: 515

    Hello Reset,

    By the scenario you describe I am still noto sure why you would change the shader of a particle.

    I have attached a sample where I change the color of a particle effect after the object has moved a certain distance. Is this something like what you are trying to accomplish?

    Attachments

    1. forumChangeParticle.zip (15.5 KB, 12 downloads) 2 years old
    WARNING: Files uploaded in the forums are not monitored by 3DVIA and therefore might contain content that is malicious or offensive. Download at your own risk
    Posted 2 years ago #
  7. Reset

    enthusiast
    Joined: Apr '14
    Posts: 50

    Hi,

    No, that's not what I would like to do.

    Take the color exemple further : if an emited particle is under the emiter (the cube in your sample) the particle color should be blue, if it is above the emiter it should be red.

    thx

    Posted 2 years ago #
  8. iainB85

    Interplanetary Delivery Boy
    Joined: Jun '08
    Posts: 515

    Hello Reset,

    You can setup a vkColorGradient controller and make the particles change from red to blue over their life cycle, but I think this is as close as you can get to your scenario.

    I do not think there is a way to manipulate individual particles that have already been emitted as you describe, only to modify the emitter itself.

    A lot of times you can fake what you want using multiple emitters and controlling them with behaviors (switch off red emitter, turn on blue emitter, etc), but perhaps it doesn't quite meet your needs.

    Posted 2 years ago #
  9. Reset

    enthusiast
    Joined: Apr '14
    Posts: 50

    Hi again,

    Too bad, the Material slot looked so good ^^
    Yea, my example was very simple.

    I think I'll have create my own particle system then.

    thx a lot.

    Posted 2 years ago #

Reply

You must log in to post.