Text on sprite

Blitz3D Forums/Blitz3D Programming/Text on sprite

Swifty(Posted 2007) [#1]
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


Dark Ray(Posted 2007) [#2]
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".


boomboom(Posted 2007) [#3]
http://www.x-pressive.com/SpriteCandy/index.html


jfk EO-11110(Posted 2007) [#4]
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.


Barliesque(Posted 2007) [#5]
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


Swifty(Posted 2007) [#6]
Taken a different route, now I have the effect I wanted without sprites, thanks for the replies guys.