LogicalError / realtime-CSG-for-unity

Realtime-CSG, CSG level editor for Unity
https://realtimecsg.com
MIT License
735 stars 77 forks source link

Intersection Operation does not work - both children disappear #324

Closed DavidAntliff closed 2 years ago

DavidAntliff commented 3 years ago

I'm working through the features and came to "Operations allow you to group things". I've created a new Model and added two default cube brushes. I offset one from the other slightly, so they overlap around one corner each. I then selected both and hit CTRL-G to create an Operation as the new parent of both cube brushes. Then I selected Intersection.

I had expected to see a smaller cubioid appear where the two cubes overlap, and the rest of each cube to become invisible. Instead, I just see two overlapping cubes.

I clicked "Rebuild your CSG meshes" and both cubes went completely invisible. They reappear if I change the Operation mode from Intersection to anything else. But still no overlap cuboid.

Is this behaving as expected? Am I doing something wrong? Or is this a bug?

I'm using version v1.562 with Unity 2020.3.3f1 on Win10.

LogicalError commented 2 years ago

Hi, what happened is that the two brushes in the group are added to each other, and then the combination of both brushes use intersection .. on nothing, so everything disappears Instead set the group to additive, and the last brush within that group to intersection

nukeandbeans commented 2 years ago

@DavidAntliff Did this solve your problem?

DavidAntliff commented 2 years ago

Hi Daniel, thank you for checking in with me. I haven’t had a chance to revisit this yet, but next time I look to use CSG I’ll see what happens. Feel free to close this on the meantime if you want. Thanks again for the explanation.


From: Daniel Cornelius @.> Sent: Thursday, April 14, 2022 6:48:39 PM To: LogicalError/realtime-CSG-for-unity @.> Cc: David Antliff @.>; Mention @.> Subject: Re: [LogicalError/realtime-CSG-for-unity] Intersection Operation does not work - both children disappear (#324)

@DavidAntliffhttps://github.com/DavidAntliff Did this solve your problem?

— Reply to this email directly, view it on GitHubhttps://github.com/LogicalError/realtime-CSG-for-unity/issues/324#issuecomment-1098872104, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACV5I3SFS7OYE5VQCEUV2MDVE7LWPANCNFSM44JHIATA. You are receiving this because you were mentioned.Message ID: @.***>