Topic: iB3D doesn't work

This is odd: iB3D compiled fine, runs without crashing, but doesn't actually render anything.  Regular Irrlicht is working just fine.  What do you think the problem is?

The only thing I like better than coffee and gaming is coding!  smile

Re: iB3D doesn't work

greetings smile  do you have some sample code?

3 (edited by ninjarat 2007-07-20 21:24:26)

Re: iB3D doesn't work

hello

Yeah, here:

Framework Irrlicht.B3D

ib3d_Graphics3D 640,480

cam:CAMERA=ib3d_CreateCamera()

lit:LIGHT=ib3d_CreateLight()
ib3d_RotateEntity lit,45,45,0

cube:PRIMITIVE=ib3d_CreateCube()
ib3d_PositionEntity cube,0,0,5

ib3d_TrackEntity cam,cube

Repeat
    ib3d_TurnEntity cube,.1,.2,.3
    
    ib3d_UpdateWorld
    ib3d_RenderWorld
Until ib3d_KeyDown(KEY_ESCAPE)

ib3d_EndGraphics
End

I swear to GOD I see nothing wrong with this code.  And, like I said, it's not an Irrlicht issue, because Irrlicht is working fine on it's own.  Thanks for helping.

The only thing I like better than coffee and gaming is coding!  smile

Re: iB3D doesn't work

greetings smile  your camera is inside of your cube (cube size default is 10).  move the cube out to Z = 20 and you will see it smile  i will note that i need to match whatever B3D uses for its default cube size.

Re: iB3D doesn't work

B3D uses 1 for default cube size.  Thanks!  smile

The only thing I like better than coffee and gaming is coding!  smile