Text on sprite
Blitz3D Forums/Blitz3D Programming/Text on sprite
| ||
I am making a 3D game , with the players name above them on a sprite, that is a child to the players character. When the players starts, I make a texture and write their name on it then copy the texture to the sprite. I am having a problem getting the players name to be Solid text, it always seems to be transparent. Any help would be cool. Swifty |
| ||
Try to adjust the alpha level,shininess and blend parameters for that sprite. In particular I think you could solve the problem doing "EntityBlend Sprite,2". |
| ||
http://www.x-pressive.com/SpriteCandy/index.html |
| ||
On some computers writing text directly to the texturebuffer seems to fail. You should always text to the backbuffer, then copyrect from backbuffer to the texturebuffer. Also try Blendmode 3 for the sprite. |
| ||
In case you're not already aware of it, Mixailv's FastImage library may help you out with this stuff: http://blitzbasic.com/Community/posts.php?topic=66995 |
| ||
Taken a different route, now I have the effect I wanted without sprites, thanks for the replies guys. |