Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

[Released] Deformable Surface

Discussion in 'Assets and Asset Store' started by V0odo0, Nov 20, 2016.

  1. burtles

    burtles

    Joined:
    Dec 23, 2016
    Posts:
    4
    There is no way in Unity to save the render texture, or extract the data in a saveable format. Getpixel does not work on the RFloat texture format, and so the floats cannot be extracted from it.
     
  2. Razmot

    Razmot

    Joined:
    Apr 27, 2013
    Posts:
    263
  3. khos

    khos

    Joined:
    May 10, 2016
    Posts:
    859
    Hi, just being curious are you looking at deforming terrain(s)?
     
  4. TareqProjects

    TareqProjects

    Joined:
    Jun 27, 2016
    Posts:
    53
    Not doing anything at the moment, still interested on how to efficiently deform a terrain at runtime
     
  5. khos

    khos

    Joined:
    May 10, 2016
    Posts:
    859
    Efficiently is the keyword :) That might depend on various factors like if surface normals are to be deformed as well I suppose, maybe just a strong height map/tessalation will work.
     
  6. SimumakDevs

    SimumakDevs

    Joined:
    Feb 13, 2018
    Posts:
    11
    After upgrading to Unity 18.1.1, there is a build error with your shader:
    Shader error in 'Deformable Surface/Deformable Surface Standard': syntax error: unexpected token '*' at line 496 (on d3d11)

    Are you still mantaining this plugin?
     
  7. burtles

    burtles

    Joined:
    Dec 23, 2016
    Posts:
    4
  8. Zarkow

    Zarkow

    Joined:
    Jul 27, 2015
    Posts:
    38
    Clicking 'Open Asset Store' image merely opens image-viewer of site and shows the button in an overlay...
     
  9. GamePyro

    GamePyro

    Joined:
    Jul 28, 2018
    Posts:
    154
    Hello
    I bought your asset.

    I have the problem that when i import it to existing and also at new project unity crashes :(

    Unity 2017.1.1f

    So i cant use it :(
    What can i do tryed also at other unity version. not work.


    Also want ask how big can the surface be made without performance to slow ?

    and can it be used also at other meshes then the created one , or at a terrain mesh or a circle ? for example ?



    Regards
     
  10. V0odo0

    V0odo0

    Joined:
    Jan 8, 2012
    Posts:
    273
    Hi. I have no issues with importing this asset in Unity 2017.1.1f. Can you send me crash report?
    In general, it depends on height map texture resolution and tesselation quality. Use profiler to check how does it affect performance.
    No, you cannot attach it to any other mesh. But there is a button that allows you to align the surface plane with terrain.
     
  11. GamePyro

    GamePyro

    Joined:
    Jul 28, 2018
    Posts:
    154
    I

    Should we talk here or with PM ?

    Also i tred now different Unity 2017 versions but not work .

    Thats it i get no crash report i checked also the TMP folders where it should be unity crashes without the Report etc window and in TMP no Crash Log files :(

    What could i do ?



    And when we get it to wrok how is there a limit your assets set how big a surface can be and can it have also other shapes then a recentangle ? or can it be tilled ? or so


    Have you screenshots how you udsed it or others used it ?

    Want use it for snow mountains like for example RDR2 - Red Dead Redemption 2


    Regards
     
  12. V0odo0

    V0odo0

    Joined:
    Jan 8, 2012
    Posts:
    273
    I can not help you without any information about your crash. It could be anything.
    Check out #2 video on Asset Store page
     
  13. GamePyro

    GamePyro

    Joined:
    Jul 28, 2018
    Posts:
    154

    Yes but what could i to when there is nothign as said :

    Thats it i get no crash report i checked also the TMP folders where it should be unity crashes without the Report etc window and in TMP no Crash Log files :(

    What could i do ?



    Yes i saw that no more video how big it can be then when it work and so on ? And from other customers in games etc ?
     
  14. GamePyro

    GamePyro

    Joined:
    Jul 28, 2018
    Posts:
    154
    ?

    Its now over 9 days ago that i bought and cant use it :(
     
    Barritico likes this.
  15. Barritico

    Barritico

    Joined:
    Jun 9, 2017
    Posts:
    188
    Missing the example of the vehicle. Actually I bought the tool for a car game and I can not make the wheel marks the same as in the pictures.

    Can help me, please?
     
  16. V0odo0

    V0odo0

    Joined:
    Jan 8, 2012
    Posts:
    273
    Surface deforms by any objects with renderer component and layer that included in Collision mask. It is the only conditions. Check the code of Surface Physics Sphere component if you want to know how to get a feedback from deformation.

    Car example is not included because I think it is not necessary to also include the piece of standard assets in package.
     
  17. Barritico

    Barritico

    Joined:
    Jun 9, 2017
    Posts:
    188
    It is not necessary to include those assets. Just indicate that you have to download them. Put images of actions that the tool can get without adding them ...

    In any case, thanks for your help. I will continue investigating.
     
  18. namdo

    namdo

    Joined:
    Feb 23, 2015
    Posts:
    177
    Does this work with Unity 2018?
     
  19. TCROC

    TCROC

    Joined:
    Aug 15, 2015
    Posts:
    119
    I saw this asset on the sale and am interested in getting it. I would also like to know if this is compatible with Unity 2018
     
  20. V0odo0

    V0odo0

    Joined:
    Jan 8, 2012
    Posts:
    273
    Hi. Yes, tested on Unity 2018.1 and 2018.3. Works as expected.
     
  21. V0odo0

    V0odo0

    Joined:
    Jan 8, 2012
    Posts:
    273
    Decided to make some improvements for the next update. The first thing is that I successfully replaced the triangle tessellation with quad. Mesh looks way more smooth in this case.
     
    ftejada likes this.
  22. V0odo0

    V0odo0

    Joined:
    Jan 8, 2012
    Posts:
    273
    Finally managed how to combine texture maps needed for processing deformation into one ARGB32 format. This is the major performance improvement for the next update. Though it should have be done long ago.

     
    burtles, TCROC and ftejada like this.
  23. V0odo0

    V0odo0

    Joined:
    Jan 8, 2012
    Posts:
    273
    Major update!


    > v2.0
    New:
    * Access to save/load the state of deformation
    * New additional shader: Standard Cutout
    * Quad patch tesselation
    * Heightmap import
    * New parameters: Normal Intensity, Max Height
    * Custom shaders are now allowed
    * All texture maps combined into one ARGB32 format
    * Linear color space support
    * Unity 2018.3 support
    * Overall performance improvement

    Fixes:
    * Incorrect base mesh normals
    * Deformation smoothing is not affected at top height
    * Odd deformation and smoothing at top-right edges of base map
    * Performance issue in painting mode
    * Surface double-rendering issue caused by depth camera
    * Various minor fixes
     
    blackant and ftejada like this.
  24. TCROC

    TCROC

    Joined:
    Aug 15, 2015
    Posts:
    119
    @V0odo0 Is there snow recovery over time?
     
  25. ftejada

    ftejada

    Joined:
    Jul 1, 2015
    Posts:
    531
    This update looks very good, !!! I'm glad. I hope that it has more improvements in smaller spaces of time ... The asset seemed quite stopped from its exit.

    What was the compatibility with asset like RTP or Megasplat ???

    regards
     
  26. V0odo0

    V0odo0

    Joined:
    Jan 8, 2012
    Posts:
    273
    No, but it will be easy to implement. In TODO list for future update.

    It is possible, but sadly to say but it would be hard to add support for such big assets. But it does not mean that deformable surface will not work with those assets. Just need a little set up.
     
    blackant likes this.
  27. razzraziel

    razzraziel

    Joined:
    Sep 13, 2018
    Posts:
    129
    Hi, what are the limits of this? Is it always same fixed size of plane or scalable? How big it can get? When it gets bigger, details fade away? (since it uses render camera i suppose)
     
  28. V0odo0

    V0odo0

    Joined:
    Jan 8, 2012
    Posts:
    273
    Hi.

    Yes, it uses render camera. Surface can be scaled with no limits. Heightmap resolution can be set up to 4k which is enough to cover the large area.
     
  29. razzraziel

    razzraziel

    Joined:
    Sep 13, 2018
    Posts:
    129
    What my concern is, when it gets bigger small details like feet fade away or degrade with even in 4k maps, especially with bigger terrains (i'm not even talking about 4k performance per frame).

    so i'm curious can you make it virtual grid type of infinite system? render camera jumps next center of tile if you move away and always will be underneath of player tile. and no need for 4k etc big maps since virtual grids are scalable in smaller sizes as you wish.

    and other benefit of this system each tile can save its own splatmap and can fade away with time if user wishes. or constantly remember deformations even if you leave kilometers behind with no extra performance (with distant tessellation check). it would be epic and instant buy for me :)
     
  30. V0odo0

    V0odo0

    Joined:
    Jan 8, 2012
    Posts:
    273
    Was thinking about it but decided to leave it as is for now since it is far different technique. At the moment what you described may be achieved by creating a multiple instances of the surface and turn deformation update (camera rendering) on/off for particular instance based on the distance from it. Each surface instance will still have it's own heightmap texture.
     
  31. Zeevex

    Zeevex

    Joined:
    Jan 15, 2018
    Posts:
    22
    Hey, so i gather from this that it's similar to unitys terrain system,
    what's the situation with 2019 unity alpha version, does this support it?
    and i'm wondering if navmesh ai pathing works with this at all?
     
  32. eldarune

    eldarune

    Joined:
    Nov 14, 2013
    Posts:
    9
    Hello , in example scene terrain becomes invisible after i hit play button. Tried it with unity 2018.2.1 and 2017.4.3 same results. Any suggestions ?
     
  33. V0odo0

    V0odo0

    Joined:
    Jan 8, 2012
    Posts:
    273
    Yes, it is compatible with Unity 2019. You could build navmesh using the collider as a source instead of renderer. It is possible with Nav Mesh Components:

    https://github.com/Unity-Technologies/NavMeshComponents

    Have you tried it in empty project? Make sure that you graphics card support DX11 and Compute Shaders. If nothing helps, please PM me with a detailed description about your problem and screenshots.
     
  34. zackrump

    zackrump

    Joined:
    Jan 19, 2014
    Posts:
    8
    Will this asset work on iOS or Android?
     
  35. V0odo0

    V0odo0

    Joined:
    Jan 8, 2012
    Posts:
    273
    No, it requires DX11.
     
  36. Zeevex

    Zeevex

    Joined:
    Jan 15, 2018
    Posts:
    22
    Hey voodoo, love this shader and will be using it in my projects.. i noticed you mentioned recovery time will be added in future updates, which will be an awesome an crucial aspect to my project have you an ETA? it's not needed asap, i'm just curious is all :)
     
  37. Gekigengar

    Gekigengar

    Joined:
    Jan 20, 2013
    Posts:
    417
    Hello, does this support LWRP/HDRP/SRP?
     
  38. V0odo0

    V0odo0

    Joined:
    Jan 8, 2012
    Posts:
    273
    I've just submitted new version with this feature. Should be available within a week.

    No at the moment. Waiting for SRP official release.
     
  39. Zeevex

    Zeevex

    Joined:
    Jan 15, 2018
    Posts:
    22
    oh that's great news!
    I have one more question, I get these horizontal lines, is there a way i can lessen the effect or a way to remove them?
    upload_2019-4-14_16-35-58.png
     
  40. V0odo0

    V0odo0

    Joined:
    Jan 8, 2012
    Posts:
    273
    Such shadow bias caused by deprecated shadow transfer macro in shader. Already fixed in coming update.
     
  41. Zeevex

    Zeevex

    Joined:
    Jan 15, 2018
    Posts:
    22
    You're on top of it!
    you deserve an updated review, i'll do that for you :)
     
  42. jaelove

    jaelove

    Joined:
    Jul 5, 2012
    Posts:
    293
    Hi does this work in unity 2017?
     
  43. V0odo0

    V0odo0

    Joined:
    Jan 8, 2012
    Posts:
    273
    Yes