Take the 2-minute tour ×
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It's 100% free, no registration required.

I want to change the color of some text in my game. I've tried adding materials, but whenever I press P to play the game, the text stays the same white color. Any ideas?

share|improve this question
    
Can i do that straight to this site or does it have to be hyperlinked? –  christai Jul 24 at 20:23
    
Hyper-linked, but now its not necessary since gandalf3 found the issue. –  GiantCowFilms Jul 24 at 20:24
    
Related: blender.stackexchange.com/q/8399/599 –  gandalf3 Jul 24 at 20:32

1 Answer 1

up vote 4 down vote accepted

You need to set the Object color in Properties > Display:

enter image description here

Text objects are made out of polygons in the 3D view, however in the game engine they are rendered straight as text (there are also some issues with picking the resolution to render it at, which is why it sometimes looks pixelated).

If you want to have your text look as it does in the 3D view (3D, with materials/textures), then you'll have to convert it to a mesh (AltC> Convert to mesh). Note that once it's a mesh you can no longer edit it as text.

If you do need to have dynamically editable text, then perhaps the technique mentioned in this comment will help:

. . . I don't recommend using text objects at all, since they are a hack right now. The other problems you get are no depth sorting, does not respect materials, Z buffer issues, no alignment. I recommend using this method. If anything you could use text objects to render text off-screen and combine it with the uv mapping technique.

share|improve this answer
    
Why does it use object color instead of materials though...? Could you add some more detail. –  GiantCowFilms Jul 24 at 20:23
1  
@GiantCowFilms I have no idea why, I guess it's just a strange quirk. I'll do some digging and see what I can find out. –  gandalf3 Jul 24 at 20:25
1  
Does this mean i can't add any gloss or anything? –  christai Jul 24 at 20:25
    
@christai There's probably a better way, but you could convert it to a normal mesh with Alt C. As long as your text doesn't need to change in real time, converting it should work fine. –  gandalf3 Jul 24 at 20:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.