• 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 programming than modeling (you can get by with minimal 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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



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

i can't get al the opjects in my scene view.. 1 Answer

Terrain Is Visible But Not Active!!? Please Help 0 Answers

Movement in my terrain ? 2 Answers

[Solved]Game Objects Visible in Game tab but not on Scene tab 3 Answers

(point)Light goes through objects 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges