First BMax B3dSDK app!

BlitzMax Forums/BlitzMax Programming/First BMax B3dSDK app!

SkyCube(Posted 2009) [#1]
Hi all,

I am new to the B3DSDK. I coded a simple example but can't get it to work. Perhaps I am missing something? here is my code:


Import blitz3d.blitz3dsdk

bbBeginBlitz3D


WaitKey()

bbEndBlitz3D()

cam = bbCreateCamera()

bbPositionEntity(cam,0,0,0)

plane = bbCreatePlane()


While Not KeyDown(KEY_ESCAPE)

bbUpdateWorld
bbRenderWorld
bbFlip

Wend



SkyCube(Posted 2009) [#2]
Hi I got it to work by adding the bbGraphics3D command, but now I have another question. Can the native KeyDown function be used, or do I need to use bbKeyHit()?


Filax(Posted 2009) [#3]
bbKeyhit & bbKeyDown (controls, screen, mouse etc begin by bb)


SkyCube(Posted 2009) [#4]
Hi... where can I a list of valid scan codes for use with B3DSDK. There is a link in the documentation to something called "bbKeyboardScancodes", but it directs me to the samples page.


Abrexxes(Posted 2009) [#5]
http://www.blitzforum.de/help/Scancodes

bye


SkyCube(Posted 2009) [#6]
Thanks, this will be quite useful!