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 Lyuke · Jul 13, 2013 at 09:03 PM · 2dtexture2dshadowborder

2D Texture with shadow square border

Hello unity community, this is my first question here.. i've started to work recently on a simple game in Unity 3D while using Orthello 2D framwork (free).

My problem is that a "shadow" appear on some border of my texture... i have tryed with PNG or PSD image with Alpha channel and the transparent is working, but i can't find around the forum a solution for this:

alt text

This is my sprite image, as u see there's no shadow or nothing "wrong"(for me)...

alt text

I see it even in play mode.

I've tryed to change the Shader, but it will still come out... i've made all the image PSD from PNG, but the effect is the same.. i realy don't know what else to do since i'm new!

Does anybody know how to solve it or have more information / method to understand from where this problem come from?

Best regards, Lyuke.

problem.jpg (28.8 kB)
level_start.png (16.4 kB)
Comment
Add comment · Show 6
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 Dothackking · Jul 13, 2013 at 09:28 PM 0
Share

Are you setting the background to transparent / alpha 0?

avatar image Lyuke · Jul 13, 2013 at 09:50 PM 0
Share

Do you mean in photoshop or unity?

avatar image Dothackking · Jul 13, 2013 at 09:59 PM 0
Share

Photoshop, the background layer needs to be transparent if it is not.

avatar image Lyuke · Jul 13, 2013 at 10:36 PM 0
Share

Yes, i've tryed to remake it but it changed nothing...

avatar image Dothackking · Jul 13, 2013 at 10:40 PM 0
Share

If what you're calling the shadow is what I think it is, then you definitely missed it, I can see it in the picture as black. Third tile on first row, look at top right corner, it's a black edge of the shape.

If you mean the little shadow around the ladder, I have no idea.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by OllyNicholson · Jul 17, 2013 at 03:29 PM

If you set your shader to Transparent/Cutout/Diffuse in the inspector for your material (or any of the other Cutout shaders) you can set an Alpha cutoff - which trims the alpha edges to remove border pixels.

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

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

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

Related Questions

2D Animation does not start 1 Answer

Making an array for Texture2D?? 2 Answers

Border creation algorithm 1 Answer

What is the best way of creating a modular texture? 0 Answers

How can I draw a part of a texture on a another texture with transparency? 2 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