Search Unity

3D text

Discussion in 'Immediate Mode GUI (IMGUI)' started by mattb, Jul 31, 2009.

  1. mattb

    mattb

    Joined:
    Mar 23, 2009
    Posts:
    72
    I am having trouble with doing basic text in my game. I would like to utilize the 3D text feature to have the text do some pretty simple things in my world, like fly from the distance to the camera. I am getting that to happen, but the look of the font is really bad, very fuzzy around the edges and hard to read. I am using the one font that is included in Unity, so I obviously must be doing something wrong.

    I am using the text mesh as described here:

    http://unity3d.com/support/documentation/Components/class-TextMesh.html

    but not getting usable results. Off the top of anyones head, what am I doing wrong?

    Thanks!

    Matt
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Import a font at a larger size.

    --Eric
     
  3. mattb

    mattb

    Joined:
    Mar 23, 2009
    Posts:
    72
    I'm still having trouble with it, no matter what size I import the font. I'm now getting a black box in the game where my text should be, and this message in the console:

    Shader wants normals, but mesh doesnt have them.

    Any thoughts?

    Thanks!
     
  4. Deleted User

    Deleted User

    Guest

    I don't know why you're getting that error message, but one thing to watch out for as I recall, is if you change the font of a TextMesh you need to also manually update the font material of the TextMesh to the new font.
     
  5. mattb

    mattb

    Joined:
    Mar 23, 2009
    Posts:
    72
    That was it! Working great now. Thanks!!!