"Mask" geometry with other geometry?

   2243   2   1
User Avatar
Member
60 posts
Joined: Nov. 2019
Offline
Hi folks,

Please take a look at the attached image.

Imagine the sphere has magic properties:

a) It's invisible
b) It'll delete other geometry where they intersect.

So if it had these powers, all we'd be left with would be a cube with a sphere-shaped “bite” taken out of it.

I think you can guess what's coming next! ……..

Is such a thing possible in Houdini, and if so, how would you achieve it?

Thank! ………. D

Edited by Dazzer123 - Nov. 30, 2019 19:09:46

Attachments:
image (1).png (445.2 KB)

User Avatar
Member
8184 posts
Joined: Sept. 2011
Offline
Are you talking about a boolean, or CSG (constructive solid geometry)?

If you have polygons, the boolean sop will trivially perform booleans. If you are after a perfect sphere subtracting from a perfect cube, then no there is no implicit boolean such old renderman CSG.
User Avatar
Member
60 posts
Joined: Nov. 2019
Offline
Thanks mate, that does it, and indeed i don't need to use a perfect sphere!

But now i realize i also want to do something else which is a little more tricky, and may not even be possible in Houdini……..

Please consider the two pictures below.

In the first, we have a similar set-up to my first post, and if i use a boolean subtract on it (and change the sphere to polygon), it'll take a bite out of the cube which is roughly a quarter of the volume of the sphere.

But now take a look at the second picture. This is exactly the same scene, only the camera has been moved to a different position.

Again, we're going to delete part of the box. But this time, instead of using a boolean, i want to employ a laser cutter which fires out of our camera, and will cut away only the part where we can see the sphere and box intersecting from this camera angle. It will keep on cutting in a straight line from the camera, all the way through the cube.

So we'll end up with a lot less volume removed from the box, and with a very different shape.

And although we “know” that there is a much larger area than we can see where the sphere and box intersect, only the part we can actually see will be removed.

Is something like that also possible?
Edited by Dazzer123 - Dec. 1, 2019 16:15:39

Attachments:
A.png (708.8 KB)
B.png (453.2 KB)

  • Quick Links