2d+3d

Blitz3D Forums/Blitz3D Beginners Area/2d+3d

Happy Llama(Posted 2011) [#1]
I have a 3d game where text is displayed on the side of the screen. The textures interfere with the visibility of the words. Is there a way I can have a 2d rectangle behind the words so you can read them better? A sort of HUD is the effect i'm trying to create. Thanks in advance!


Yasha(Posted 2011) [#2]
You can have a solid, coloured rectangle behind the words by simply drawing the rectangle first. 2D commands appear on screen in the order they were drawn.

If you mean a semitransparent rectangle (I assume this is actually what you want), you'll need to look into replacing the 2D system with a 2D-in-3D system, as Blitz's pure 2D engine can't handle alpha or other effects more advanced than either-do-or-don't-plot.

Good 2D-in-3D engines include FastImage (costs money, but the best option by far), Draw3D (free, also very powerful) and Sprite Candy (costs money, but bundles a lot of game framework code).


Happy Llama(Posted 2011) [#3]
I've tried downloading Draw3d and i can't use it because its a rar file. Any suggestions?


Yasha(Posted 2011) [#4]
You can open .rar files with 7zip or WinRAR.


Happy Llama(Posted 2011) [#5]
thanks