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 Rasp1977 · Jul 31, 2012 at 06:07 PM · texturematerialjaggedtearing

Objects not aligning, showing tearing or part of the object next to it

Hi all

I have been experiencing some strange behavior when placing cubes next to each other.

I create 2 cubes each are 1x1x1 in size. I place them next to each other, one at 0,0,0 and one at 0,0,1. So they should align perfectly. When I look at them both in the scene and game view, I can see a black line showing up where the 2 cubes meet. It looks like I can see part of the cube that are supposed to be hidden behind the first one. It becomes more clear if I add a lightly colored material to them.

I have tried creating a textured cube in 3DS Max and imported that. Same thing happens with that one, even more visible if there's a light nearby. The tearing becomes bright as light shines on them and black if it is not hit by light.

The best way I can describe it is that it looks like the textures are jagged where 2 objects meet and the jagged edges don't align perfectly, so you can see through the cracks.

How can I fix this?

Best regards Rasmus Petersen alt text

unityerror.jpg (44.2 kB)
Comment
Add comment · Show 10
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 ScroodgeM · Jul 31, 2012 at 08:33 PM 0
Share
  1. create two cubes from unity primitives (gameObject - create other - cube)
    1. place it as you describe (0,0,0), (0,0,1)

    2. do you still see that edges?

geometry should be perfectly positioned and sized to achieve what you want. unity's primitives are perfectly sized by default

avatar image Rasp1977 · Jul 31, 2012 at 08:40 PM 0
Share

Yes, it's still there. Both in the scene view and the game view if I add a light otherwise it's just a dark gray mas with no shape.

I have added a screenshot of it to my original post.

avatar image ScroodgeM · Jul 31, 2012 at 08:43 PM 0
Share

try to disable shadows

avatar image Rasp1977 · Jul 31, 2012 at 08:46 PM 0
Share

If you are referring to the cast and receive shadows, already tried it and didn't change anything.

avatar image ScroodgeM · Jul 31, 2012 at 08:50 PM 0
Share

try to use unlit / self-illum shader?

Show more comments

6 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Rasp1977 · Jul 31, 2012 at 10:49 PM

It didn't solve the problem. I have created a very simple scene showing it and have added it to a new post in this thread, should show up soon.

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 ScroodgeM · Aug 01, 2012 at 05:22 AM 0
Share

where can i find the scene?

avatar image Rasp1977 · Aug 01, 2012 at 10:22 AM 0
Share

Apparently I cant upload a unitypackage file and my posts with zip files won't show up.

So here is a link to my dropbox : https://dl.dropbox.com/u/1255833/VisualTearingTest.unitypackage

Hope it will let me write the url.

avatar image
0

Answer by Rasp1977 · Aug 01, 2012 at 11:17 AM

For some reason it removed the post with the zip file. Trying again.

link text


visualtearingtest.zip (144.7 kB)
Comment
Add comment · Show 9 · 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 ScroodgeM · Aug 01, 2012 at 04:51 PM 0
Share

hmm... what's wrong? just imported your scene....

alt text

1.png (69.9 kB)
avatar image Rasp1977 · Aug 01, 2012 at 05:26 PM 0
Share

Looks like you altered the camera, it's only visible from certain angles. Try importing it again and not changing anything. I will create a new screenshot of what I see in the test package.

avatar image ScroodgeM · Aug 01, 2012 at 05:29 PM 0
Share

yes i altered a little to watch for whole object. but i didn't found an angle where i can see draw lags...

avatar image ScroodgeM · Aug 01, 2012 at 05:30 PM 0
Share

it seems the error somewhere else.... can you try on different platform? for example compile it and run on other PC/mobile?

can you pack whole project, including ProjectSettings and Assets folder?

avatar image Rasp1977 · Aug 01, 2012 at 05:36 PM 0
Share

I noticed it the first time on my android game, and this one is for standalone windows, so it's on both mobile and windows.

When it's for Android it's more visible.

Can unity create a package of the entire project or can I just zip it?

Show more comments
avatar image
0

Answer by Rasp1977 · Aug 01, 2012 at 05:58 PM

What I see in the VisualTearingTest.unitypackage

alt text


error01.png (45.4 kB)
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
avatar image
0

Answer by Rasp1977 · Aug 02, 2012 at 06:35 PM

I have been experimenting with this and different settings, I can make it appear with all platforms and all quality settings in the Unity editor, however I can't see it when I build the game to stand alone pc, but when publishing it Android its really visible and all over the place.

Anyone with an android device that want to try it out and see if it's visible on their device or have had the same problem and know how to fix it?

Trying to get hold of Unity team, they might know something about it.

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
avatar image
0

Answer by Rasp1977 · Aug 02, 2012 at 06:35 PM

I have finally created and example for standalone pc where it's visible.

1 random build dungeon, it's created with a script and all blocks are 1x1 or 1x1x1 cubes made with unity, so should be fairly precise in size. They are all placed correctly, with 1 unit between them.

Walls have a new material on them and floors have the standard material, and both show the problem.

It's visible in all resolutions.

It should show up as small white lines intersecting walls and floor as the camera panes across the dungeon.

I know its much to ask someone to run an executable file from a stranger, but if someone is willing, please let me know if it's also showing up on your system so that I can eliminate my own as the problem.

Executable and data folder can be downloaded from my dropbox : https://dl.dropbox.com/u/1255833/Build.zip

Best regards Rasmus Petersen

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
  • 1
  • 2
  • ›

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

7 People are following this question.

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

Related Questions

Change texture of ground where character steps 1 Answer

Why are textures being distorted in playmode/scene whilst in preview mode they are so accurate? (ANDROID) 0 Answers

How to render black borders around texture of simple 3D quad in c#? 0 Answers

Make a gameobject with textures semitransparent 3 Answers

How to switch the texture being used by the material of the mesh renderer 1 Answer


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