Search Unity

Feature Request Collide with texture

Discussion in 'Visual Effect Graph' started by Qriva, Jun 27, 2022.

  1. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    1,314
    Can we get node allowing to collide particles with texture? I mean something like collide with depth, but surface is determined by texture alpha (or other channel).

    I see it as some kind of extension of Collide with Plane - there is plane to determine the surface, but also there would be additional slot for texture. This texture would be used to "displace" surface of this plane by given amount. If this is too much I would be happy with the most simple version where plane is facing upwards, so it's possible to set approximation of the ground.
     
  2. timmehhhhhhh

    timmehhhhhhh

    Joined:
    Sep 10, 2013
    Posts:
    157
  3. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    1,314
    Well, it's doable, however I don't need it to be in 3d - wasting memory on texture 3D does not sound like good idea (to get the same precision as texture I would need 256 layers on Y).
    Also I am not sure how fast this bake tool is, but I don't think it will be fast enough to do this every frame or couple of frames, especially if there are many meshes to bake. Instead I would just need ortographic camera to bake such a texture.