Ogre 3d & 2D game command examples

Advanced game related topics
hypervox
User
User
Posts: 48
Joined: Mon Apr 28, 2003 10:02 am
Location: UK
Contact:

Ogre 3d & 2D game command examples

Post 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
PC 1:AMD Athlon XP 2000,Geforce 2 MX400 64Mb, Windows 2000 :D
PC 2:Intel P3 1ghz, Nvidia Vanta 16Gb, Windows 2000 :)
Registered Purebasic User :D

PureBasic Game Creation Site
http://www.hypervox.co.uk/PureBasic/
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

I think you draw the 3d stuff first then the 2d stuff on top, using the normal commands.
--Kale

Image
hypervox
User
User
Posts: 48
Joined: Mon Apr 28, 2003 10:02 am
Location: UK
Contact:

Post 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:
PC 1:AMD Athlon XP 2000,Geforce 2 MX400 64Mb, Windows 2000 :D
PC 2:Intel P3 1ghz, Nvidia Vanta 16Gb, Windows 2000 :)
Registered Purebasic User :D

PureBasic Game Creation Site
http://www.hypervox.co.uk/PureBasic/
SirCus
User
User
Posts: 12
Joined: Sat May 10, 2003 7:29 pm
Location: Germany
Contact:

Post by SirCus »

hello,

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

thx
hypervox
User
User
Posts: 48
Joined: Mon Apr 28, 2003 10:02 am
Location: UK
Contact:

Post 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
PC 1:AMD Athlon XP 2000,Geforce 2 MX400 64Mb, Windows 2000 :D
PC 2:Intel P3 1ghz, Nvidia Vanta 16Gb, Windows 2000 :)
Registered Purebasic User :D

PureBasic Game Creation Site
http://www.hypervox.co.uk/PureBasic/
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post 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
--Kale

Image
Post Reply