Page 1 of 1

Ogre 3d & 2D game command examples

Posted: Wed May 07, 2003 9:42 pm
by hypervox
Hi,

Can someone post an example of how to integrate the PB 3d engine with 2d drawing/sprite commands? I want to create a simple game with a HUD! ;-)
Rgrds

Hypervox

Posted: Wed May 07, 2003 10:56 pm
by Kale
I think you draw the 3d stuff first then the 2d stuff on top, using the normal commands.

Posted: Thu May 08, 2003 11:23 am
by hypervox
OK - we have lift off!

I managed to change the skybox demo and draw some 2d text on it, by inserting this code between the "RenderWorld()" and "FlipBuffers()" lines...


;-----------------
StartDrawing(ScreenOutput()) ; screenoutput writes to buffer
DrawingMode(1)
FrontColor(255,255,255)

Locate(0,0)
DrawText("SkyBox2 Demo")
StopDrawing()
;-----------------

Works like a charm - now to design my privateer clone... :mrgreen:

Posted: Mon May 12, 2003 3:03 pm
by SirCus
hello,

are there any links for an ogre on PB tutorial?
could not find any yet.

thx

Posted: Mon May 12, 2003 4:59 pm
by hypervox
if you look in the "examples\sources" directory, you should find the following...

Camera.pb
lights.pb
mesh.pb
skybox.pb
skydome.pb
texture.pb
world.pb

these cover the basics. If you search the forums, you can find additional examples (especially by Danilo)

Rgrds

Hypervox

Posted: Mon May 12, 2003 7:59 pm
by Kale
>are there any links for an ogre on PB tutorial?
>could not find any yet.

Please remember that the current 3D commands are in their infancy and are only a sample of things to come. Many more examples will follow after more commands have been added and matured. :D