Search Unity

Particle system: stretch texture by speed and direction of travel, how?

Discussion in 'General Graphics' started by bitinn, Jan 20, 2020.

  1. bitinn

    bitinn

    Joined:
    Aug 20, 2016
    Posts:
    961
    I have some smoke texture that I want to use as trail, but:

    - It's a texture sheet, AFAIK, trail module doesn't support texture sheet, so no way to animate the smoke naturally.

    - I then want to use size by speed module to achieve this, but the scale is world space, so I can't use object transform to make them relative (for example, I only want stretching in the direction of travel, I can't do that in size by speed).

    - I think trail renderer has the same limit as trail module in terms of texture sheet support.

    So what's the solution here? I feel like being given a multi-tool box and yet none of the tool work for me.
     
  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    Indeed the trails don't support texture sheets.

    Perhaps individual smoke particles in a sub-emitter, rather than with a trail, would be more successful? (This way you can use texture sheets, and scale each particle according to direction of travel, if you want)
     
    bitinn likes this.
  3. tspk91

    tspk91

    Joined:
    Nov 19, 2014
    Posts:
    131
    You could use texture sheets by making a custom shader (either code or graph) :D