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
2
Question by GesterX · May 12, 2011 at 10:02 PM · shaderfontnormals3dtext

Strange Error: Shader wants normals, but the mesh doesn't have them

A 3DText using a custom font has started giving me this strange message from the editor...

Shader wants normals, but the mesh  doesn't have them

The font I'm using is being used on some other 3DText prefabs and it works fine. But with one particular prefab (an XP Pop-up) this error keeps appearing and the 3D text refuses to show. What makes the problem even stranger is that it's started happening absolutely randomly for seemingly no reason...

Any ideas how I could fix this?

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

3 Replies

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

Answer by GesterX · May 13, 2011 at 11:40 AM

Well after an hour of fiddling it seems to be working again. I most certainly had not changed any shader settings but as Eric put it... something must have changed. The steps I took to resolve the issue:

  1. Reinstalled the font
  2. Duplicated the prefab and deleted the old one
  3. Set the font of the 3DText part of the prefab to "None" and then back to the custom font
  4. Reassigned the prefab to all of the objects that used it

That worked in the end. I'm unsure what I could have done to screw things up as I tend to stay away from shaders where I can and in this project I'm not using any special custom shaders. Hopefully this will solve the issue for anyone else who has the same problem in future.

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

Answer by Eric5h5 · May 12, 2011 at 10:55 PM

You're using a material with a shader that uses lighting (and therefore requires normals), but the mesh generated by 3DText doesn't have normals. Use a shader that doesn't use lighting instead.

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 GesterX · May 12, 2011 at 11:02 PM 0
Share

Is there any reason why this would suddenly start happening? It seems odd that I have been using the prefab for weeks without getting an error and then all of a sudden it starts flagging it...

avatar image Eric5h5 · May 12, 2011 at 11:17 PM 0
Share

Something changed, or possibly you just overlooked it (it's an info text rather than a blocking error).

avatar image GesterX · May 13, 2011 at 11:41 AM 0
Share

Thanks for the tips. I've added an answer as to how I've fixed the issue.

avatar image
0

Answer by paulrahme · May 12, 2014 at 04:17 PM

After spending hours on this, it turns out that I was trying to create a font material to use with a TextMesh, that wouldn't draw over the top of other 3D objects in front of it.

Turns out I was using "Transparent -> Diffuse", which uses lighting (as Eric5h5 said), so I changed it to use "Unlit -> Transparent" and the message went away.

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 RandomCharacters · Jan 01, 2015 at 06:50 PM 0
Share

Yeah, You have to click on the 3dtext and change the shader. You probably have a bumped specular or something.

Either change the shader or get a script to add tangents to the item.

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

1 Person is following this question.

avatar image

Related Questions

3DText Outline Shader 2 Answers

Outlines Defined by Shading Groups? 0 Answers

How to find a font via script? 2 Answers

Problems with two sided textured shader 3 Answers

Shader Color Bumped elements 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