playMaker

Author Topic: Boolean operations?  (Read 1860 times)

Natecurt

  • Playmaker Newbie
  • *
  • Posts: 8
Boolean operations?
« on: April 22, 2019, 08:34:08 PM »
Hi,

I was wondering if anyone knows if there is a way to run realtime boolean subtractions(subtracting from a mesh using another mesh/collider) using playmaker? I'm not familiar with any process and haven't been able to find information on this. If someone could point me in the right direction I'd appreciate it!

Thanks

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Boolean operations?
« Reply #1 on: April 23, 2019, 03:40:25 AM »
Hi.
This is done with shaders, so it does not require PlayMaker directly.

when i did some googling, these 2 links came at the top of the list several times :

https://assetstore.unity.com/packages/vfx/shaders/screen-space-boolean-subtract-shader-87538

https://github.com/hecomi/UnityScreenSpaceBoolean

The 2nd link is a project which you can test and where you might be able to get some shaders from.
I did not download and test this, but from what i can see in the files is that there are not many scripts used
So it is also mostly done with shaders.

I did notice some animator usage, so you might want to have a look at that.

Natecurt

  • Playmaker Newbie
  • *
  • Posts: 8
Re: Boolean operations?
« Reply #2 on: April 23, 2019, 12:44:54 PM »
https://github.com/hecomi/UnityScreenSpaceBoolean

The 2nd link is a project which you can test and where you might be able to get some shaders from.

Thanks for the reply!

I have tried implementing this in my project but have a few issues. I am using the lightweight render pipeline currently and I was able to update the materials all fine. However, the Subtractee(Standard) and Subtractor(Standard) shaders are appearing pink. I have attached an error message and the source script below.

Any input on this would be really appreciated as I have limited C# experience.

Thanks
« Last Edit: April 23, 2019, 12:49:24 PM by Natecurt »

Doh

  • Full Member
  • ***
  • Posts: 124
Re: Boolean operations?
« Reply #3 on: April 24, 2019, 01:25:52 PM »
The shader will need to be adjusted/rewritten if it wasn't made specifically for the LWRP.