Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 velv · Jun 07, 2012 at 01:38 PM · proceduralintersection

A sphere hole inside a cube object (procedurally)

Hello guys,

I have create (procedurally) two objects: a Cube and a Sphere. I want the Sphere to be the intersection of the Cube (intersection between two objects). Transparency doesn't help me much, as you can see, because it 'paints' the sphere black and i can't see the inner of the intersection of the Cube. The Sphere doesn't need to show up. A picture follows:

alt text

Any help? Thanks in advance.

photo000001.jpg (146.4 kB)
Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Fattie · Jun 07, 2012 at 02:26 PM

Are you saying you literally want to build a new mesh object, which is the intersection you describe?

The very best 3D modelling programs, like Maya etc, will allow you to do that.

So do it in Maya, and import.

if you're saying you want to actually program, from scratch, the mathematics of creating meshes from intersecting abstract shapes, so that you can do that on the fly, you're talking about something that takes man-years of work.

Hope it helps in some way !

Comment
Add comment · Show 3 · 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 velv · Jun 08, 2012 at 11:37 AM 0
Share

Thanx Fattie, u gave me useful ideas on which side i can see the problem. The whole idea is to create an arch on the facade of the cube by combining two shapes (cube, sphere).

Here we have an old building which has arches standing on columns: ![alt text][1]

Here is the same picture showing you the idea of shapes i use and how i see the role of the spheres, the intersection, (circles at the pic below) by making them transparent and see the result of an arch. That is what i had in $$anonymous$$d.

![alt text][2]

If there's an easiest way than $$anonymous$$e, it's very welcomed. I want to do this via script and not import anything (maya, 3d studio max etc. models). [1]: http://answers.unity3d.com/storage/temp/1190-p01.jpg [2]: http://answers.unity3d.com/storage/temp/1191-p02.jpg

p01.jpg (215.2 kB)
p02.jpg (222.2 kB)
avatar image Fattie velv · Jun 08, 2012 at 01:21 PM 0
Share

funnily enough I know that actual building.

you should just hit CO$$anonymous$$$$anonymous$$ENT to add a comment, not the answer section.

avatar image Fattie velv · Jun 08, 2012 at 01:23 PM 0
Share

s I already said, unfortunately,

"if you're saying you want to actually program, from scratch, the mathematics of creating meshes from intersecting abstract shapes, so that you can do that on the fly, you're talking about something that takes man-years of work."

It could well be you could find some package for sale in the asset store which does that.

Otherwise you are talking about building mesh on the fly. If you truly want to learn to become a mesh engineer, go for it !

Sorry for the bad news. There's no simple solution. Look for a package on the asset store, you never know.

it's hard to believe you can't just $$anonymous$$A$$anonymous$$E THOSE IN $$anonymous$$AYA, and then INSTANTIATE THE$$anonymous$$ as you need them? Very easy

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Surface Intersection of procedural shapes to find vertex normals? 0 Answers

creating a mesh procedurally 4 Answers

weird shadows in the procedurally created mesh 1 Answer

Easy way to convert a bunch of vertices to triangles or uv's? 1 Answer

minimize vertex artifacting for procedural mesh manipulations - vertex collision same object? 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