Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Constructive Solid Geometry (CSG) in unity

Discussion in 'Made With Unity' started by Wahooney, Mar 2, 2012.

  1. Wahooney

    Wahooney

    Joined:
    Mar 8, 2010
    Posts:
    281
    I've started writing a solution that adds CSG to Unity. It does some simple boolean operations at the moment, you can modify UVs per plane, etc.

    This won't do any bsp partitioning, Unity has occlusion already that will handle that, and eventually the meshes will be saved into permanent assets so that the output levels can be light mapped.

    Disclaimer: This is not meant to replace modelling levels in Blender/Maya/Max/whatever, it's simply a tool to be able to control your level creating inside Unity without relying on Unity primitives.

    CSG Test 1 - http://www.youtube.com/watch?v=xL5teiLXDM8
    CSG Test 2 - http://www.youtube.com/watch?v=NGiiMSi-8B8

    I hope you guys enjoy it and feel that this will be a helpful addition to Unity's level creation.
     
    Last edited: Mar 19, 2012
  2. p6r

    p6r

    Joined:
    Nov 6, 2010
    Posts:
    1,158
    I find this great !
    Nice job !!!

    6R
     
  3. TiG

    TiG

    Joined:
    Feb 28, 2011
    Posts:
    311
    Wow, wonderful. I think you should make a video where you directly show the boolean stuff. Scaling is not interesting and most people may not wait until the real deal begings around 2:30.
     
  4. larvantholos

    larvantholos

    Joined:
    Oct 29, 2009
    Posts:
    668
    Wow, no, the scaling is super interesting to me. Keep it up man!
     
  5. SteveB

    SteveB

    Joined:
    Jan 17, 2009
    Posts:
    1,451
    Yea have to say, there's something about CSG that has always appealed to me...looks awesome Wahooney :D

    -Steve
     
  6. schipman

    schipman

    Joined:
    Jan 22, 2010
    Posts:
    45
    Amazing! Will this be free or will it be a paid addition?
     
  7. Wahooney

    Wahooney

    Joined:
    Mar 8, 2010
    Posts:
    281
    Thanks for the feedback guys! I'll post another video sometime in the not too distant future. Right now this is purely a side project, but my ultimate plan is to make it a purchased asset store bundle, but we'll see where my mood takes me ;)
     
  8. softwizz

    softwizz

    Joined:
    Mar 12, 2011
    Posts:
    793
    That looks awesome, it would be useful in so many ways.
     
  9. Wahooney

    Wahooney

    Joined:
    Mar 8, 2010
    Posts:
    281
    Hey guys, I've added some more features. The most visible and relevant of which are viewport modification of brush planes, plane angle smoothing and... real-time, simple fracturing! Video is in the first post :)
     
  10. Essal

    Essal

    Joined:
    Feb 16, 2010
    Posts:
    107
    Bump for great justice!
    Are you still working on this?:)
     
  11. Wahooney

    Wahooney

    Joined:
    Mar 8, 2010
    Posts:
    281
    Bump! Yes! I'm in the process of making it friendlier for end-users and some fringe bugs with the CSG cutting in the editor (non-overlapping items will cut each other sometimes, not a good idea all in all).

    But yes, it's coming (Valve-Time :p)
     
  12. Essal

    Essal

    Joined:
    Feb 16, 2010
    Posts:
    107
    Awesome! Looking forward to it:D
     
  13. PassivePicasso

    PassivePicasso

    Joined:
    Sep 17, 2012
    Posts:
    100
    Is it still coming?
     
  14. CarlosFM

    CarlosFM

    Joined:
    Jun 8, 2013
    Posts:
    240
    Wow, please let it be 'still coming'! And soon!

    I would love to have the ability of fiddling with 3D shapes in real time; will this be supported?
     
  15. VizII

    VizII

    Joined:
    Mar 22, 2013
    Posts:
    5
    I add myself to this question. When will it be available? Real-time support?
     
  16. skaiwate

    skaiwate

    Joined:
    Dec 28, 2013
    Posts:
    2
    Is a "up" allowesd ?
    Regards, S.
     
  17. chocolate1

    chocolate1

    Joined:
    Feb 4, 2014
    Posts:
    3
    How is it going? I would need it for my project! :D

    Thanks in advance.
     
  18. Cmloegcmluin

    Cmloegcmluin

    Joined:
    Jul 24, 2014
    Posts:
    3
    I could use this too!