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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Fragmentation Appearance and Disappearance of Environments

Discussion in 'General Discussion' started by alicrank, Jan 11, 2018.

  1. alicrank

    alicrank

    Joined:
    Sep 25, 2015
    Posts:
    1
    Hi there,

    We are trying to figure out how we could create the effect of the fragmented appearance and disappearance of an environment in Unity, as you see in BBC's Easter Rising VR project. The specific effect we are going for can be seen at 0:50, 3:10 and 5:43 in
    . We don't think it is an effect built into an .fbx file or original animation done in Cinema 4d or something similar because for elements to appear and disappear (with a modifier like xpresso, this data doesn't show up in Unity) because it is done with PLA animations which are lost in Unity.

    Another effect that is similar to this (in that the animation items appear and disappear in fragments) is the one done in this example:
    where objects appear and fold out from nothing as seen in moment 0:40.

    If anyone has an idea how these were made either with scripts, plugins and/or importing from a 3d software we would be very grateful for some tips!
     
  2. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,504
    Because everything seems to break apart into triangles in the first video, my first guess is that it's done with the vertex shader, adding an offset to the verts in each triangle when drawing it.

    In the second video my first guess would be animated transforms.
     
    Kiwasi likes this.
  3. ikazrima

    ikazrima

    Joined:
    Feb 11, 2014
    Posts:
    320
    1st video is using shader like Fragmentum probably.
     
  4. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,316
    Nah. That won't work on models that are not flat-shaded.

    @alicrank , uinless ALL your geometry has sharp edges and flat shading, this is done by writing a geometry shader. Calculate face offset within geometry shader, and apply it to vertices passed into geometry shader.
     
    frosted likes this.
  5. tommasocolombo

    tommasocolombo

    Joined:
    Jun 6, 2016
    Posts:
    3
    dear ikazrima,
    thank you for your input
    this plug in is the right one to make the animation. Unfortunately was implemented for unity 4.6.
    Not yet available for unity 2017.
    any other suggestions to do something exactly like that?
     
  6. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    9,732
    Fragmentum has been tested on Unity 2017.1, it even says so on the asset store page.

     
  7. tommasocolombo

    tommasocolombo

    Joined:
    Jun 6, 2016
    Posts:
    3
    thank you!
     
  8. frosted

    frosted

    Joined:
    Jan 17, 2014
    Posts:
    4,044
    This effect isn't super hard to write - geom shader, just offset the verts.

    I used it for a music visualization toy I made:

     
    Deleted User likes this.