Search Unity

Planet and quad tree mesh in Unity?

Discussion in 'General Discussion' started by renanss, Sep 10, 2013.

  1. renanss

    renanss

    Joined:
    Sep 10, 2012
    Posts:
    38
    Folks,

    Anyone have idea how to achieve the same on Unity?
    Check this video:
    http://www.youtube.com/watch?list=PLE7453C109D1FC414&feature=player_detailpage&v=LUEVlSNpF6Q


    He's using what he calls quad tree mesh, which basically adapts the mesh as the camera approaches. Making possible to create a Spore like game.
    Would be nice to have a similar example in Unity.
    I'm thinking in creating a high detailed planet mesh and see how unity will adapt to it. What you guys say?


    $planetmesh.thumbnail.jpg
    Quad tree mesh in wireframe mode shows how the surface adapts to the camera position.

    Source:
    http://alexcpeterson.com/



    Regards!
    Renan
     
  2. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    Its just a level-of-detail thing. Whether the mesh is truly stored in a quad-tree, I don't know, but it would kind of make sense for a sphere/planet, then the closer you get the deeper you go into the tree branches.
     
  3. inafield

    inafield

    Joined:
    Feb 26, 2013
    Posts:
    281
    The guys from the Kerbal Space Program had a really good (and crazy) presentation on this. They had some pretty insane and very fast detail swapping all inside Unity. There are some interesting issues you'll run into when trying to get the higher detail meshes lining up with the lower detail meshes that they solved quite nicely, among other things.
     
  4. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    Isn't there a thing on the asset store already that does this kind of LOD planet thing?
     
  5. ZJP

    ZJP

    Joined:
    Jan 22, 2010
    Posts:
    2,649
  6. Ocid

    Ocid

    Joined:
    Feb 9, 2011
    Posts:
    476
    Any ideas where i can find this?

    Or was only just done at Unite?
     
  7. HarvesteR

    HarvesteR

    Joined:
    May 22, 2009
    Posts:
    531
    The Unite channel just uploaded our presentation.



    The section presented by Mike is mostly about how we did the planetary terrain. Hopefully it'll be of some use to others going down that long twisty, floating-point-jittery road. :)

    Cheers
     
  8. Ocid

    Ocid

    Joined:
    Feb 9, 2011
    Posts:
    476
    Sweet. Looking forward to watching this.