Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

image effect per object ? = using screen-buffer masks

Discussion in 'Editor & General Support' started by sledgeman, Jun 24, 2014.

  1. sledgeman

    sledgeman

    Joined:
    Jun 23, 2014
    Posts:
    389
    maz_dev likes this.
  2. maz_dev

    maz_dev

    Joined:
    Sep 23, 2012
    Posts:
    261
    Hey again,
    I looked quickly at the link in your post, it seems to be useful for a fluid simulation project I had begun earlier (see here).

    The physics was done but I needed a technic for rendering. There are many existing technics like marching cubes, generated surface mesh, and others, but the more elegant and performant I think is to do things in the screen space (see this GDC NVIDIA presentation). I tried to apply this technic in Unity, I had a little first success but I have the problem that the technic was applied on all things viewed by the camera and I wanted to apply it only on the fluid object.

    Maybe the link in your post can help me solving this problem, after pushing Diamond well, I will revisit this post again and maybe make an awesome fluid simulator for Unity
     
  3. sledgeman

    sledgeman

    Joined:
    Jun 23, 2014
    Posts:
    389
    Hey,

    for all image effects in Unity, they are working somehow to the fullscreen, the whole screen. What i wanted, is to get image-effects only applied to specific objects. But it seems not possible in Unity. That makes me very sad :-(

    But i am glad if the link, can help you further for your fluid-dynamics project. Looks good, so far. There is obifluid3 , but somehow its results looks more like glue-fluid. No nice water simulation.
     
  4. maz_dev

    maz_dev

    Joined:
    Sep 23, 2012
    Posts:
    261
    When having Diamond in an advanced stage and having time for the fluid I will look more in detail at this subject.

    You are right for the appearance of obifluid3 that doesn't look like a natural water, but since the tool is advanced (support multiphase and it is a general frame that can simulate clothes and deformable solids), since it is advanced like that, I think it is possible to enhance its appearance by good shading technics like the one of Invidia (screen space).