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 Blink · Nov 08, 2012 at 08:18 PM · rigidbodyterrainsceneobjectsglitch

Objects glitch between each other and the terrain

Im creating a small town scene modeled with blender. As I place my objects around they glitch when the game starts, I have a two parts of a wall that I want to put together to make one big wall, when I do this I have to overlap them so there's no gap in between. When I do this instead of you seeing one big wall the two walls glitch between each other so you can almost see both. This also happens between the ground and the object stood on it, even if it has a rigidbody and drops to the ground it begins to do the same. This only happens as I get further away, if I am stood right next to it, it still does it but not as much. This is a screenshot of it, its a lot worse when in motion. I hope someone can help.

alt text

ss.png (138.6 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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by sparkzbarca · Nov 10, 2012 at 09:11 AM

you cant lay them over the top of eachother that creates rendering issues when it can't figure out which to draw.

You just need to precisely lay them out.

cast a ray from the first wall to the second cay a ray from the second wall to the first

move distance = firsthit.point - secondhit.point

wall1.transform.position = move distance

the distance between the walls is now zero.

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 Blink · Nov 10, 2012 at 12:09 PM 0
Share

Is there a different way which doesn't involve coding because Im going to be having a lot of walls and to do this to every one of them will end in confusion. Im not even sure how to code it given your example has the error insert semicolon, which I have done. Could you explain a bit more please?

I just made the walls about an inch apart so they are not touching at all and as I start to walk away the same thing happens even on the highest graphic settings.

avatar image
0

Answer by sparkzbarca · Nov 10, 2012 at 04:08 PM

in the editor?

Surface Snapping While dragging in the center using the Translate Tool, you can hold Shift and Control (Command on Mac) to snap the object to the intersection of any Collider. This makes precise positioning of objects incredibly fast.

there are other methods, all covered in the docs.

http://docs.unity3d.com/Documentation/Manual/PositioningGameObjects.html

Comment
Add comment · Show 2 · 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 Blink · Nov 10, 2012 at 07:42 PM 0
Share

Ive separated everything using that technique, but my houses and walls still glitch out. Also trees and grass do this in the terrain which I cant do anything about.

avatar image sparkzbarca · Nov 10, 2012 at 08:11 PM 0
Share

do you have the problem with primitives?

$$anonymous$$aybe its your models or surface normals? Try checking the calculate normals tickbox on the model, maybe you messed up something in blender.

Unity is on to version 4, its not Unity, a bug like that wouldnt go unnoticed. So it must be something your doing, most likely its in the model itself, the problem is most people who actually use unity know more about program$$anonymous$$g than modeling (you can get by with $$anonymous$$imal modeling skills, it'll just look bad, or you can download models) on the other hand coding is a prerequisite and beyond generic things like basic move and shoot your really going to have to program up your game yourself.

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

10 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

Related Questions

Two different terrains in one scene 2 Answers

all objects are abruptly disappeared 2 Answers

Buildings on Terrain 0 Answers

Rigidbody pops to the other side of the map 0 Answers

Put a map into Unity 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