.B3D in Blitz3d

Blitz3D Forums/Blitz3D Programming/.B3D in Blitz3d

Kryzon(Posted 2004) [#1]
hi all,

I've downloaded the demo version of MilkShape, animated my model with the Joint tool and exported as a .B3D file.
but when i load it in Blitz3d with LoadAnimMesh() and
animate it with Animate(), it doesn't animate....
please help me : what do i need to do?

here's the code that i'm using to animate my model:

Graphics3D 640,480

SetBuffer BackBuffer()

Global test = LoadAnimMesh("anim.b3d") 

MoveEntity test,.2,.05,25
light = CreateLight(2)
PositionEntity light,3,10,30
LightColor light,255,250,250
LightRange light,14
AmbientLight 200,200,200
ScaleEntity test,.25,.25,.25
camera = CreateCamera()

Animate(test,1,.47,0,3)

While Not KeyHit(1)


TurnEntity test,0,.15,0

RenderWorld()
UpdateWorld()

Flip
Wend

FreeEntity test
FreeEntity camera
FreeEntity light 
End 



Kryzon(Posted 2004) [#2]
oh, and the model doesn't appear at all....
it gives a runtimeerror: "Entity does not exist"


IPete2(Posted 2004) [#3]
Well thats possibly the problem!

You need to have the model and the textures and the b3d programme in the same directory.

If you cant see the model then, move the camera back a little bit as it may be the model is behind the camera, or the camera is appearing inside the model.

IPete2.


Kryzon(Posted 2004) [#4]
I exported the model as a MD2 and it worked fine.
I guess then my Blitz version is a little old, because
it can't load .B3D format.


jhocking(Posted 2004) [#5]
Get the latest update to Blitz3D by clicking on the Account tab at the top of this page.


cermit(Posted 2004) [#6]
I dunno if that is the problem, but you should update Blitz3D.. click the account button (top of the page) and
register product to have acces to the updates (where you find on the Account page too)


Kryzon(Posted 2004) [#7]
yeah.... i did that and when i execute Blitz,
the program crashes and the following error occur:
"Blitzpath environment variable not found"


cermit(Posted 2004) [#8]
Make sure to give the excact path where you installed blitz when you install the updates. i dont think the Blitz2D update is needed though, it can couse problems with Blitz3D.


Kryzon(Posted 2004) [#9]
Hi again,
the versions 1.85 and 1.86 didn't worked, but i
succesfully loaded the animation with the version 1.83.
thanks for helping me.


jhocking(Posted 2004) [#10]
That installation error is one I can't believe hasn't been fixed yet. It's just a color/bit depth problem with the icon graphics for the IDE, and the problem happens on certain versions of Windows. I don't have a link for you (sorry) but the fix was just to replace one file with another somebody posted.


big10p(Posted 2004) [#11]
Talking of those new icon graphics, is it just me or are they horrible!? I want the old set back. Anyone know how?


CodeOrc(Posted 2004) [#12]
You can make your own toolbar icons, but it's a bit tricky in that you have to keep them 16x16 and in 16 colours, and they are all part of 1 long image strip.

Put the ide_toolbar.bmp image into Photoshop or Paint and have at it, but be sure to back up the /cfg directory before you start hacking away at the images.

Do this at your own risk!


Kryzon(Posted 2004) [#13]
aha!
I changed the toolbar icons from 8 bit to 24 bit and now
the updated versions are working fine.
thanks for all the help. :)


CodeOrc(Posted 2004) [#14]
Hi All,

For fun I reworked my IDE Toolbar, download and use it if you want.

http://www.xmatter.com/b3d/ide_toolbar.bmp

Have Fun