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
1
Question by Joppel · Aug 22, 2012 at 09:24 AM · shadernormal mapbump map

What makes the Normal Map messed up behind the object?(solved)

I have been trying to get my normal maps working the last few days but something is severely off.

When looking from the direction the light is coming it looks alright but a slight angle from it brings it to complete shadow. Seams are getting insanely exagerated but the main problem is that they are just entirely wrong. here is an example: http://img20.imageshack.us/img20/5701/failcube.jpg

the light is cast from the top right towards the cube from the viewer.

This is the standard Diffuse + Bumped map

This does not seem to be a problem of inverted green channel. I am using tangent space normal maps. I'm thinking theres a setting somewhere I'm missing.

Edit: I finally managed to solve this problem. It seems it was a silly silly problem. The issue was that I have been using DDS files. When I swiched to BMP or JPEG I got a checkbox "mark as Normal Map under the texture in the inspector view. That checkbox doesn't show up when using DDS files. As soon as I swiched that on it worked like a charm.

Comment
Add comment · Show 1
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 Khada · Aug 22, 2012 at 09:47 AM 0
Share

Have you tested with a normal map you know works? Shouldn't be anything wrong with the shader

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by ThermalFusion · Aug 22, 2012 at 12:00 PM

Ruling out that the error lies within the shader, I see two direct causes of this. 1 - The normal map is not properly created, try putting the material on the default unity plane or box and see if it behaves the same, if it does, there's something wrong with the normalmap. 2 - The model is not properly created, this seems more likely as I can see some aliasing in the center of the cube, looks like half a white arrow of sorts. Normalmapped objects require uv coordinates, obviously, but also correct normals and tangents. If these are not properly setup you could run into these problems.

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 Bunny83 · Aug 22, 2012 at 06:16 PM 0
Share

converted it into a comment ;)

avatar image Joppel · Aug 24, 2012 at 11:31 PM 0
Share

Thanks for the answer.

From doing as you suggest I found that the normal map is behaving as it should on the unity cube/plane. I's odd though as the meshes I import from zbrush/topogun/blender become odd like thins. as if many normals are pointing inwards. They are however displaying correct in the other programs.

Edit: Removed confusing stuff from this comment. If anyone else gets this problem see solution in the main post.

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

10 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

Related Questions

How to add Bump/Normal Map to surface shader? (CG) 0 Answers

Object space normal map warning the texture is not a normal map 1 Answer

Dynamically generated bump map for Surface Shader? 0 Answers

normal map, mask different areas? 0 Answers

Reflection Bump Shader strange artifacts 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