Drawing Text

BlitzMax Forums/MiniB3D Module/Drawing Text

TobyTyke(Posted 2007) [#1]
Help!

I'm in complete duffer mode today, because I can't seem to get text display.

I'm creating and entities and then rendering the world. After which I'm running a drawtext command. Either the text is not display aor the rendered image flickers.

I'm using tried standard graphic driver and also set to GLMax2Driver just incase.

Does anybody have an idea what i'm doing wrong. I'm new to MiniB3D (More used to Blitz3d) so it most likely something i'm doing wrong.

Please help me.
Thanks


ksalomao(Posted 2007) [#2]
TobyTyke, you have to make some adjustmentes to the minib3d mod if you want to use max2D. Search the forum or take a look in the following topics:
http://blitzmax.com/Community/posts.php?topic=67884
http://www.blitzbasic.com/Community/posts.php?topic=68167
http://www.blitzbasic.com/Community/posts.php?topic=68250


TobyTyke(Posted 2007) [#3]
Thanks Ksalomao, I've tried to implement so these ideas. in a simple test program and I either get nothing, or a large box.

Is this something wrong with my set up.

I'm currently using v.40 of minib3d, i've tried v.41 (Klepto's version) but I won't compile the module on my system. It reports a commandline line error. So I tried to re-install everything from scratch and i'm still gettting the same issue.

All I want to do is display text on the screen after i've rendered the 3d.

All help would be great.


ksalomao(Posted 2007) [#4]
TobyTyke, have you changed the RenderWorld() function in TGlobal.bmx?
Take a look in this replacement that Klepto2 posted in http://www.blitzbasic.com/Community/posts.php?topic=66843 :



Also you should use "setblend ALPHABEND" before your 2D stuff.
I have encontered another strange issue that was solved only when I added a skybox. The 2D stuff appeared very strangely when there was only the black background and nothing to render. Don't know why. Try adding some stuff to your test code and see what happens.


TobyTyke(Posted 2007) [#5]
Thanks Ksalomao, I'll take a look and hopefully i'll get it sorted. I'm pretty sure it's something i'm missing.


klepto2(Posted 2007) [#6]
It is saver to take the miniB3D itself Text Function for displaying plain text. I'm currently sorting out why there are some problems with DrawText.

Use 'Text 0,0,"Hello World" ' Right after Renderworld but before Flip.