[PB 4.30 Ogre] Simple Text Output needed..
[PB 4.30 Ogre] Simple Text Output needed..
I'm looking for an easy way to do some simple text-output during 3D (in Fullscreen, InitEngine3D..).
Something useful to display for example scores..
(I don't want to use Textgadget3d, and Startdrawing(ScreenOutput()).. doesn't seem to work during "3D-Mode")
One more question - Flipbuffers() modes (0,1 and 2) are equal during Fullscreen "3D-Mode" (vsync is not possible..), is this correct ?
Something useful to display for example scores..
(I don't want to use Textgadget3d, and Startdrawing(ScreenOutput()).. doesn't seem to work during "3D-Mode")
One more question - Flipbuffers() modes (0,1 and 2) are equal during Fullscreen "3D-Mode" (vsync is not possible..), is this correct ?
Re: [PB 4.30 Ogre] Simple Text Output needed..
use a sprite and display it just after RenderWorldnase09 wrote:I'm looking for an easy way to do some simple text-output during 3D (in Fullscreen, InitEngine3D..).
Something useful to display for example scores..
(I don't want to use Textgadget3d, and Startdrawing(ScreenOutput()).. doesn't seem to work during "3D-Mode")
Code: Select all
RenderWorld()
DisplayTransparentSprite(0,0,0)
FlipBuffers()
Yes, i have the same problem.One more question - Flipbuffers() modes (0,1 and 2) are equal during Fullscreen "3D-Mode" (vsync is not possible..), is this correct ?
a work around
Code: Select all
Speed = 60/Engine3DFrameRate(#PB_Engine3D_Current)
Please correct my english
http://purebasic.developpez.com/
http://purebasic.developpez.com/
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
-
- Addict
- Posts: 2345
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
http://www.purebasic.fr/english/viewtopic.php?t=34531 :Kaeru Gaman wrote:@Comtois
sorry, I think I remember there was some problem with displaying 2D sprites over RenderWorld() ?
your suggestion was the solution for 4.2 and the old OGRE...
Afaik I told you in the german forum some time ago- Possibility to mix 2D sprite and 3D (must be put after RenderWorld()). For DX9 (Windows) and OpenGL (OSX, Linux).

bye,
Daniel
Daniel
Re: [PB 4.30 Ogre] Simple Text Output needed..
Thank you
I get "The specified #sprite is not initialized" all the time..
Somebody has a working example ?
edit : with subsystem directx9 it works
but when I try StartDrawing(SpriteOutput(0)) (sprite was created using CreateSprite..)Comtois wrote: use a sprite and display it just after RenderWorld
I get "The specified #sprite is not initialized" all the time..
Somebody has a working example ?
edit : with subsystem directx9 it works

What is the solution?
Anyone have a solution to this? I am having the same problem. I want to use 2D sprites to display text on my 3D screen (OGRE). Can someone enlighten me why this doesn't work?
Code: Select all
InitEngine3D()
InitSprite()
InitKeyboard()
InitMouse()
If OpenWindow(0,0,0,800,600,"TEST SPRITE")
If OpenWindowedScreen(WindowID(0), 0, 0, 700,500, 1, 0, 0)
CreateSprite(0,164,64)
StartDrawing(SpriteOutput(0))
DrawText(0,1,"TESTING...",RGB(255,255,255),RGB(0,0,0))
StopDrawing()
EndIf
EndIf
this code work fine, did you use subsytem directx9 ?
see compiler options
see compiler options
Code: Select all
InitEngine3D()
InitSprite()
InitKeyboard()
InitMouse()
If OpenWindow(0,0,0,800,600,"TEST SPRITE")
If OpenWindowedScreen(WindowID(0), 0, 0, 700,500, 1, 0, 0)
CreateSprite(0,164,64)
CreateCamera(0,0,0,100,100)
StartDrawing(SpriteOutput(0))
DrawText(0,1,"TESTING...",RGB(255,255,255),RGB(0,0,0))
StopDrawing()
Repeat
ExamineKeyboard()
RenderWorld()
DisplaySprite(0,0,0)
FlipBuffers()
Until KeyboardPushed(#PB_Key_Escape)
EndIf
EndIf
Please correct my english
http://purebasic.developpez.com/
http://purebasic.developpez.com/
I forgot that forums are often a playing ground for people which have nothing to say but too much time - its not worth to lose time in discussions ...
Del
Del
Last edited by Thade on Thu Jul 02, 2009 4:10 pm, edited 2 times in total.
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
blah blah blah!
Blitz was DirectX 7 all the time.
with DX7, it works well in PureBasic.
... just je new OGRE does NOT work with DX7 but requires DX9
... and there is NO 2DDrawing in DX9 anymore...
so, I strongly recommend to gather at least FEW information before you start blubbering rubbish.
Blitz was DirectX 7 all the time.
with DX7, it works well in PureBasic.
... just je new OGRE does NOT work with DX7 but requires DX9
... and there is NO 2DDrawing in DX9 anymore...
so, I strongly recommend to gather at least FEW information before you start blubbering rubbish.
oh... and have a nice day.
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
use sprites!
... and btw.. only cowards delete their postings after they already have been answered.
coming in here shouting without reason and complaining when someone shouts back?
get lost!
do you think it is not warm over here, too?
... and btw.. only cowards delete their postings after they already have been answered.
you bloody XXX...I forgot that forums are often a playing ground for people which have nothing to say but too much time - its not worth to lose time in discussions ...
coming in here shouting without reason and complaining when someone shouts back?
get lost!
do you think it is not warm over here, too?
oh... and have a nice day.