Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Solstiche · May 14, 2018 at 07:56 PM · scripting problemvrmeshrenderermesh verticesmesh-deformation

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.

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image iJuan · May 14, 2018 at 08:24 PM 0
Share

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)

avatar image Solstiche · May 14, 2018 at 08:31 PM 0
Share

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))

avatar image iJuan · May 14, 2018 at 09:09 PM 0
Share

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

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

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Solstiche · May 14, 2018 at 08:18 PM 0
Share

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 :-)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

174 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

how do i fix how i make triangels in my mesh 0 Answers

,Cloned TeleportArea not working 1 Answer

How to generate a track / path mesh using waypoints,How do I generate a track / path mesh using waypoints 0 Answers

How to send mouse events directly to the canvas in world pos 0 Answers

How to set initial camera pose with scripts,How to set initial vr camera pose with script 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges