• 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
1
Question by Jason Hamilton · Jun 03, 2010 at 09:23 AM · texturematerialalpha

Chain link fence.

hey, I'd like to make a chain link fence material, with alpha in between the diamonds, how would I go about it?

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

1 Reply

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

Answer by Cap · Jun 03, 2010 at 11:02 AM

Just make your tileable chainlink texture as normal, but in a transparent layer in Photoshop or your app of choice. Then, there are a number of ways to do it. I prefer to just save the texture as 24bit PNG with transparency enabled. Then you can duplicate that and do a colour fill with white and an inner glow of black (or the other way around) to use as a second texture for generating the texture's normal map to give it some depth. In Unity, make a new material and choose one of the transparent shaders from the popup menu and set your texture(s) in there. The colour texture will automatically use its alpha channel for the texture alpha and if you choose one of the bumped or parallax shaders you can load your monochrome bump texture into the second slot. Then just apply that to a plane and you have your fence. I'd recommend using bumped specular because it puts less strain on the GPU than parallax and by adjusting the settings you can make your fence shine realistically when a bright light hits it.

I made a couple of examples so you know roughly the kind of thing you'll need to export from your image editor. Don't actually use these because the drop shadows and bump don't tile at the edges, but you can use them as a template.
Main texture: Base texture w/ alpha
Bump texture: Bump map texture

Comment
Add comment · Show 4 · 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 Jason Hamilton · Jun 04, 2010 at 06:40 AM 0
Share

Hey, I got as far as importing it into unity. in the inspector it shows up correctly but its invisible when I play my game. whats up with that?

avatar image Cap · Jun 04, 2010 at 11:11 AM 0
Share

If the spherical preview in the inspector (when you click on the material that uses this texture) looks normal then the material should be fine, which means you need to check for problems with the mesh it's on, such as angle (if it's a plane), scale, or any script that might be rotating it relative to the camera. $$anonymous$$ake sure the tile value isn't set too high too, or you might be repeating it so many times that it has become too small to see. Other than that, I can't think what would make it fail to render.. perhaps if you have one of the lower graphics emulation settings on?

avatar image Jason Hamilton · Jun 05, 2010 at 04:09 AM 0
Share

Hey, I worked it out, the object it was being projected onto was buggy. but it works fine now. Thanks!

avatar image Cap · Jun 05, 2010 at 04:34 AM 0
Share

Glad to be of help :)

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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Soft edge shader - Issues when objects using same material overlap 0 Answers

How to Make a Character Flicker? 1 Answer

mix diffuse with alpha channel 1 Answer

How do I use Material/Texture alpha on a plane? 2 Answers

(c#) Transparency Problem - Toggle not Gradient 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