Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

TerraVol: volumetric/voxel terrain system. Dig holes caves in your terrains!

Discussion in 'Assets and Asset Store' started by Amfu, Apr 9, 2013.

  1. Arkade

    Arkade

    Joined:
    Oct 11, 2012
    Posts:
    588
    Could you be a bit more specific?

    E.g. do you mean "when the camera moves, the game runs slow -- why?" If so, TV is multi-threaded but lots of stuff must be done on Unity main thread -- mostly due to Unity design (e.g. mesh assignment and Collider generation from mesh -- a known "delayed cost" IIRC). HTH ... though I'm not sure this is your problem though since I've not seen too much of this. So, er, please clarify?
     
  2. Obsurveyor

    Obsurveyor

    Joined:
    Nov 22, 2012
    Posts:
    276
    Literally the simplest setup of creating a BlockSet and a Map/Map Generator, assigning the camera and then running. It takes a good half second for each chunk to draw in and continues as you move the camera around in the X and Z axes.
     
  3. Arkade

    Arkade

    Joined:
    Oct 11, 2012
    Posts:
    588
    Could this merely be throttling?
    Do you notice any indications of performance issues?

    Separately, what sort of spec machine(s) are you seeing this on?
     
  4. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    2,111
    if you're moving too fast the generator has no time

     
  5. Arkade

    Arkade

    Joined:
    Oct 11, 2012
    Posts:
    588
    Ya, I'd add that you can change the distance Chunks are initially generated out to, the range they're removed and the range they're added to. As such, the onus is on the developer to set those values appropriately for your setup (scene complexity, etc).

    Like I said, check whether there's actually a performance issue occurring (rather than just some numbers need tuning).
    (and what @laurentlavigne said :) )
     
  6. BooNonMooN

    BooNonMooN

    Joined:
    May 20, 2013
    Posts:
    9
    Ok so I have some questions. I tried to use TerraVol but I have some problems.
    First there is no documentation what so ever. The links to your docu are broken and all the assets gives you are the same not working links.
    2nd, it seems like your shader is broken? All i get from your shader and demo scenes is pink terrain...

    Is this asset still maintained?
     
  7. iddqd

    iddqd

    Joined:
    Apr 14, 2012
    Posts:
    401
    No, it's not. And neither is uterrains, incase you were looking for an alternative ;-)
     
  8. BooNonMooN

    BooNonMooN

    Joined:
    May 20, 2013
    Posts:
    9
    Ok thx, and i guess noone has an idea how to fix the shader?
     
  9. Arkade

    Arkade

    Joined:
    Oct 11, 2012
    Posts:
    588
    I have a local copy of the documentation. Anyone see any reason I can't upload it here?

    Regarding the shader, IIRC it's a pre-compiled shader. As such no, but we might be able to fix or build another?
     
  10. Obsurveyor

    Obsurveyor

    Joined:
    Nov 22, 2012
    Posts:
    276
    There's no need to re-upload, it's still on Google Docs.
     
    laurentlavigne and Arkade like this.
  11. djarcas

    djarcas

    Joined:
    Nov 15, 2012
    Posts:
    154
    So what *other* alternatives are there for infinite terrain?
     
  12. Arkade

    Arkade

    Joined:
    Oct 11, 2012
    Posts:
    588
    Well if you just need infinite terrain and using Unity Terrain is satisfactory, here are two strong possibilities:

    Map Magic - procedural terrain.
    Terrain Composer v2 has it on the roadmap too.
    (I'll update this post with links when I'm not on my mobile.)

    However these don't do many of the things a voxel system does (e.g. digging) ... although I suspect Terrain Composer v2 might do aspire to since it uses GPU acceleration to regenerate the terrain!

    See above for lists (including mine) of other voxel engines.

    HTH, R.
     
    laurentlavigne likes this.
  13. Richiix

    Richiix

    Joined:
    Oct 27, 2016
    Posts:
    3
    Just bought this asset based off of a couple of youtube videos, wish I had came here first though :(.

    The examples don't show any terrain which is a bit strange and when running any of the example scenes I get the following:

    UnityException: TerraMap has not been initialized properly
    TerraMapGenerator.Start () (at Assets/TerraVolPack/TerraVol/Scripts/Generator/TerraMapGenerator.cs:86).

    which relates to the following:

    Code (CSharp):
    1.         if (map == null || map.TerraMap2D == null) {
    2.             enabled = false;
    3.             throw new UnityException ("TerraMap has not been initialized properly");
    4.         }
    Any ideas guys?
     
  14. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    2,111
    TerraMap needs to be on the same gameObject as TerraMapGenerator.

     
    Richiix likes this.
  15. Richiix

    Richiix

    Joined:
    Oct 27, 2016
    Posts:
    3
    Thanks Laurent.

    In the demo scenes this is already the case:
    upload_2016-10-28_8-46-57.png

    This is what I get:
    upload_2016-10-28_8-48-8.png
    upload_2016-10-28_8-47-41.png

    Cheers!
     
  16. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    2,111
    That's oddOdd, I just tried the scene in 534 and it runs. Grab the stacktrace of that error.
     
  17. Richiix

    Richiix

    Joined:
    Oct 27, 2016
    Posts:
    3
    What's even weirder is that reimporting Terravol resolved the issue o_O!? I don't know why I didn't do that in the first place haha.

    I'm glad you guys are around to keep this asset alive, it looks brilliant. Can't wait to get working with it :).

    Cheers
     
  18. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    2,111
    Ah yes, you must be using unity 5.4 :p
    It is a great asset, much faster than anything out there. did you dig in the code? It's pretty good stuff.
     
  19. Fdudka

    Fdudka

    Joined:
    Jul 27, 2015
    Posts:
    15
    Anyone still have the Documentation with this asset?
     
  20. Arkade

    Arkade

    Joined:
    Oct 11, 2012
    Posts:
    588
  21. Victor_cross

    Victor_cross

    Joined:
    Dec 16, 2015
    Posts:
    40
    Is this compatible with the newest version of unity?
    I am thinking of using this for a little open world fps survival game say 40klm2
    Would I be able to do that with this?
     
  22. Arkade

    Arkade

    Joined:
    Oct 11, 2012
    Posts:
    588
    It's no longer supported.
    Sorry.

    Some people (myself included) do still use it after many changes. It even works in unity 5.6. The biggest problem is that one must get a replacement triplanar shader since the original was binary and stopped working ages ago.

    Sorry it's not better news.
     
  23. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    2,111
    Read the last few threads on pros and cons for general vibe of this thing.
    The triplanar shader is the least of your worry.
    For a 40km terrain you'll need to invest quite a bit of time adding block persistence and tuning the generator unless you plan on sculpting that much and that, I've never done, @Arkade may have.
    If you must have voxels, wait and see if voxeland 5.0 ever shows up.
     
  24. Victor_cross

    Victor_cross

    Joined:
    Dec 16, 2015
    Posts:
    40
    Yeah I would be able to sculpt a 40klm area as I have a buddy that likes that sort of thing.
    I was thinking of using it with this asset also
    Ultimate Survival.
    To patch something together to play with friends.
     
    Last edited: May 14, 2017
  25. MOAI_

    MOAI_

    Joined:
    Apr 21, 2017
    Posts:
    3
    Are there any paint height tools to make a flat road or something?
     
  26. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    2,111
    no
     
  27. TejasMishra

    TejasMishra

    Joined:
    Jan 30, 2016
    Posts:
    1
    I'm thinking of buying your product.
    Does this supports on mobile platform(ios/android)?
     
  28. Rockwall33

    Rockwall33

    Joined:
    Mar 4, 2016
    Posts:
    186
    Is this asset no longer available? Is their a way to download it? I didnt buy it.

    Cheers!
    Xalo
     
  29. Artaani

    Artaani

    Joined:
    Aug 5, 2012
    Posts:
    411
  30. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    2,111
    Artaani likes this.
  31. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    2,111
  32. Artaani

    Artaani

    Joined:
    Aug 5, 2012
    Posts:
    411