Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 Lasutriv · Feb 14 at 03:12 AM · 2d spritesnormal map

2D Normal Map White Edge

I tried to do some digging to see why my sprite with a normal map attached is creating hard white edges around portions of the sprite. This is not desired and ruins the "Pixel Perfect" aspect of my sprites. See the attached image.

After playing around with some of the normal map's texture settings, I am able to get the white edges to disappear by enabling "Create from Grayscale" with filtering to "Smooth" while toning down the bumpiness. However, this reduces the normal maps effectiveness with light sources, thus basically making it useless. I suppose I can modify the normal map but that might cause the white edges at a lower scale on bumpiness.

Note: You may have to open the image in a new tab and zoom in to see the edge issues. Also, the normal map is attached to the sprite on the left as a secondary texture with a name of "_NormalMap".

Thanks for any help.

alt text ![alt text][2] [2]: /storage/temp/192573-normal-map-issue.png

normal-map-issue.png (41.6 kB)
normal-map-issue-2.png (91.2 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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by codevisionary005 · Feb 14 at 09:43 AM

Think third dimensionally... when generating the normal map, it first creates a base bump near the edge and moves on to the center of the sprite And because of that bump... it almost feels like it has a rooftop... if you see carefully the left side edge doesn't have the white edge because the light is on the other side... If you still don't understand... watch this video and closely see the edges of the normal map on the top side of the tree - https://www.youtube.com/watch?v=kpt7Ft5y8v4 - It generates the normal map that way to make it feel like it is a 3d object in 2d space LITERALLY and make the light more visible on the 2d object.

Comment
Add comment · Show 3 · 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 Lasutriv · Feb 14 at 04:14 PM 0
Share

You're talking about these edges that are generating to where the light is shining from?alt text

When I look at other implementations of normal maps on small pixel art, they do not have the edges like I do. For example: https://www.youtube.com/watch?v=xpL44Ztyy1Q

edges.png (21.6 kB)
avatar image codevisionary005 Lasutriv · Feb 15 at 06:47 AM 0
Share

Yes exactly... As you can see… When generating the normal map… Sometimes It generates it off the color and the surrounding color as well… If you closely see… Its not actually an error… It is actually a specular reflection. That means when generating the normal map… It took the sprite values as very smooth. watch this video - https://www.youtube.com/watch?v=gUkY8ZoRfuQ - This tool seems promising for manipulating normal maps bump, weight, erosion and smooth values.

avatar image Lasutriv codevisionary005 · Feb 15 at 03:15 PM 0
Share

Thanks for the information. I will check it out. I've also been able to fix a lot of my shadow problems by disabling "Generate Mip Maps" on my normal map. I'm wondering if since it's such a small piece of art that the Mip Maps were clouding up the sprite in corners of it, as shown in my previous images, thus not representing the proper normal map design.

The new feel of the normal map works much better but again, I will look at the video you posted for manipulating normal maps.alt text

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

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

Related Questions

Normal map partially visible through another sprite,2D Normal map causing partial transparency 2 Answers

my vector graphics for my PNG is bad at looking good for 2D. please help 1 Answer

Camera display specifications,2D visuals in a 3D game with camera issues 0 Answers

How can i make terrains from 2d map images 0 Answers

Normal map causes odd lighting along UV seam. 0 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