Search Unity

Realtime object slicing

Discussion in 'Scripting' started by tb2fear, Sep 19, 2014.

  1. tb2fear

    tb2fear

    Joined:
    Jun 14, 2013
    Posts:
    18
    Hi guys,

    I am working on a project where i need to perform interactive slicing on mesh at realtime. Here is the link of the effect which i am really looking for. I tried to do this with depth-mask shader but its not getting desired output. Any help on the same will be great.

    Thanks and Regards,
    Siddhesh.Meher
     
  2. Cpt Chuckles

    Cpt Chuckles

    Joined:
    Dec 31, 2012
    Posts:
    86
    you'll probably have to implement voxels to get an effect that works on models as detailed as in the video. is it important for users to see cross-sections of the insides of things or is it just like a destructible environment type of thing for fun gameplay?
     
  3. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,775
    There are two options I'm aware of to achieve that effect: voxels, and boolean geometry. I don't think there is an appropriate voxel solution readily available on the store, but there are a number of boolean geometry assets there that might fit your needs.