- Home /
Alternatives to 3D boolean operations
Hi, I was thinking about a game where the player would take care of a planet, feed its inhabitant... etc... My problem is that the planet should be full of tunnels, caves and other holes. So what I'm trying to get is an ingame "tool" that would make earth disappear near it, in real-time. A bit like boolean operators in Blender, but I saw they needed a lot of calculations ( my game is firstly designed for VR so...). I also tought of generating the planet through an opaque particle system, and to hide particle when the "tool" is near it, but I can't go further in this way.... If anyone has a solution? or even a beggining of idea? Thanks, I hope it's understandable and sorry for my English, it's not my mother tongue.
You want things to dissappear when they are near the player? Why would you do so?
You can put augment the near plane (at camera settings), or get into face culling (which needs you to understand how shaders work)
Thanks for the answer, I will look into shaders. about the near plane, I would like something like that, but attached to a GameObject (later attached himself to the player controller (in my case Oculus Touch))
The near plane is exclusively from the camera. If you want everything near an arbitrary object to dissappear, you can:
$$anonymous$$ake your world a voxel world (there at least two types of voxel worlds. The simpler one are sandbox worlds, the other one is used a lot in games about space exploration)
Divide your world in quadrants, and hide a quadrant if it's near enough your gameObject
Separate your world in individual gameObjects (please don't, you will be killing any graphic card)
Customize your culling. In my opinion, this is the hardest one, but also the one which will run better. I'd recommend you this tutorial about face culling
Answer by Bleakmountain50 · May 14, 2018 at 08:13 PM
I'm not a modeler/level designer but I suggest using probulidler to make the planet. this will allow you to sub divide the planet into little squares. you can then make it so when you click it destroys a block that you're looking at. sorry if this doesnt work its just an idea
Whoa ! I didn't think an answer could come that quickly ! Thanks ! I will check it out, I think it may not give the exact result I'm searching, but it's interesting tough. Thank you very much :-)