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 1337GameDev · Feb 05, 2012 at 01:14 AM · meshimagegriddrawopacity

Transparent grid shows odd irregularities when displayed.

I created a grid prefab with a plane and a texture applied to this plane. The plane was made in an external modeled and is centered at origin. I have a transparent png texture used to display the grid. I run into problems when it is used in game. The image doesn't always show up correctly. Lines sometimes may be thin, missing, or seem off when viewed at angles. How can I get a nice and crisp image? (btw the image layer has 70% opacity in gimp if that makes a difference)

Here is an example of what going on, notice the lines and irregular drawing of the drug when viewed farther away. photobucket sample of problem image

Comment
Add comment · Show 8
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 Bunny83 · Feb 05, 2012 at 01:55 AM 0
Share

It doesn't look irregular to me ;). It's actually quite regular pattern.

How does your texture look like? does it contain only one square? What texture type do you use in the TextureImporter? I guess you want a pixel perfect filter since "usual" textures are smoothly interpolated. In the case of a reduction you will lose some pixels since the texture's texels doesn't fit into the screen's pixels ;)

If the grid should always have the same line-width you have to draw it manually (maybe with the GL class).

avatar image 1337GameDev · Feb 05, 2012 at 02:06 AM 0
Share

$$anonymous$$y texture is just a grid of solid criss crossing lines (no rounded corners). I want the grid to be blue and semi transparent, can I still do that using the GL method? (yes I have unity pro).

What is an example of using the GL method to draw a grid? I'm a bit confused, and the documentation doesn't help much.

avatar image 1337GameDev · Feb 05, 2012 at 02:10 AM 0
Share

PS :my texture is imported as an unlit transparent texture as to avoid parts being black as they are away from the light source.

avatar image Bunny83 · Feb 05, 2012 at 03:38 AM 0
Share

You mix up the shader you're using with the TextureImporter settings which are more important in this case. What texture type did you set in the TextureImporter for your grid texture? Have you tried some other texture import settings? @Berenger posted the link below.

If you use a texture with single pixel lines on a 3D object the line will always disolve or get magnified depending on the distance / angle to the camera.

With the GL class you can draw the lines manually so they are real lines and aren't affected by the depth.

avatar image 1337GameDev · Feb 05, 2012 at 05:51 PM 0
Share

Can't get gl. Lines to show up. I tried using code in documentation, but I see no lines... Can you provide an example. And what is the material setpass for? Do I make this material as color of lines? Or opacity of lines wanted? I'm a bit confused and can't find documentation.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by Berenger · Feb 05, 2012 at 02:02 AM

Look there : http://unity3d.com/support/documentation/Manual/Textures.html

Aniso level.

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 1337GameDev · Feb 05, 2012 at 06:27 PM 0
Share

Did not work. Still shows intermittent lines.

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

6 People are following this question.

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

Related Questions

Vertical Layout draw order, child appears above parent 2 Answers

Applying UV to plane mesh is pixel imperfect. 0 Answers

Mesh deformation by terrain shape 0 Answers

Procedural Mesh 1 Answer

Create grid of points inside irregular quad. 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