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 Makandal · Nov 26, 2010 at 04:55 PM · collidertexturesshapesinside

How to texture the inside of a sphere (or cylinder or cube)

I might be extremely dumb but I still don't grasp how I can apply a texture inside a shape in Unity3D. Same, I want to have a collider INSIDE the object AND outside the object. If only I could find how to do this !

Someone answers very laconically on the forum about normal... But no specification.

Imagine a city under a dome. I want to be able to see the dome from inside (I am presently using particles but it is not satisfying) and outside. I would like to have a collider at least inside the dome (to avoid going out of the place).

If it is not possible for a shape to have 2 of these properties simultaneously, no pb, I will use 2 shapes with one slightly smaller for the inside. But how to affect texture and collider INSIDE. I am sure the answer might be very simple.

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

3 Replies

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

Answer by azzogat · Nov 27, 2010 at 04:12 PM

As Eric5h5 said, just model your dome and in whatever software you use apply a Normals modifier and flip the normals.

You could also just use a cubemap for the background image and create a custom mesh for the collisions.

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 Makandal · Nov 28, 2010 at 09:59 PM 1
Share

This is what I don't get. Do I need to pass to Blender or whatever just to model a sphere ?

avatar image
1

Answer by oliver-jones · Nov 26, 2010 at 05:00 PM

Not sure about the textures - but I know how to have two colliders, one inside and one outside.

Okay, So you have your sphere, already with a sphere collider right? This will be the outer collider, so make it bigger than it already is. Next, create a game empty, and drag this into your sphere (so its a child). Change the position of the empty to 0, 0, 0 in the Inspector, then add a sphere collider to this: Component > Physics > Sphere collider, and make the radius of this smaller (inside collider).

Hope that helps.

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 Makandal · Nov 28, 2010 at 09:56 PM 0
Share

That's, I already understand how to do it. What I don't get is how to change the normals. I am used to PovRay / $$anonymous$$oray and it was much simpler.

avatar image
0

Answer by Eric5h5 · Nov 26, 2010 at 06:15 PM

Yes, it's very simple...just model both the inside and outside.

Comment
Add comment · 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

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

No one has followed this question yet.

Related Questions

Cubes collide with terrain 1 Answer

Programmatically create another shape in the same PolygonCollider2D 0 Answers

Internal collisions 1 Answer

Textures appearing inverted when importing into Unity 1 Answer

Sphere with collider entering the flat surface 2 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