can someone test this model animation in blitz
Blitz3D Forums/Blitz3D Programming/can someone test this model animation in blitz
| ||
I can't get this model to animate in Blitz3d. It's b3d format and model animates correctly when using Blitz B3d export plugin Viewer for 3ds Max. Before you export you can preview the model and all animation in Blitz3d directly, so when I check there animations work. But then I want to do that in blitz in code and can't get model to move. I import it with anim_mesh = LoadAnimMesh("model") and animate it with Animate anim_mesh, 2 and nothing happens, someone else that is experienced with blitz tried it and couldn't get it to move. How can Blitz preview exe for 3ds max exporter animate it and I can't even though I am using Blitz??? Can you test this animation in your blitz: http://www.tridinaut.com/mesh.b3d If it works then plz let me know. Btw I'm using Blitz 1.90, and I think this Previewer exe for plugin was compiled with 1.87, but I can't imagine that 1.90 update would have broken this great plugin or added something that makes the plugin not work for animations. If it is the case someone would have noticed something by now. Can you plz check if this animation works for you? |
| ||
. |
| ||
Doesn't animate for me in B3D 1.91 using the loadanimmesh example with the mesh.b3d |
| ||
Does not animate in an older version either (1.90) I suspect something is wrong with the .b3d file and not with blitz. some questions that may help. what is the animation? does it have a parent object? can you use findchild() and animate the child object? |
| ||
Blitz 1.87 version compiled exe plays it well. It's strange that 1.90 can't play it. It's a single mesh, and perhaps 7-8 bones animating it, around 100 frames of animation, nothing complicated. |
| ||
I took a look at it and it appears to have two sets of animation - one of them blank. Try this one re-exported from Fragmotion: http://www.playerfactory.co.uk/meshfragmo.b3d [EDIT: doesn't appear to work either - will investigate further] |
| ||
Wait one moment! They both animate fine. You just need to make sure you have an UpdateWorld in your code.Graphics3D 640,480 SetBuffer BackBuffer() camera=CreateCamera() MoveEntity camera,0,0,-19 mesh = LoadAnimMesh("mesh.b3d") Animate mesh While Not KeyDown( 1 ) RenderWorld UpdateWorld Flip Wend End |
| ||
Well your version that you exported from Fragmotion works, but not mine. In code you wrote *LoadAnimMesh("mesh.b3d")* Was this using fragmotion exported model or the one I supplied, since only Fragmotion one works for me. |
| ||
Both work for me in 1.91. If there is a problem with yours then it is probably down to the blank animation (or something similar). |
| ||
This works with the original mesh, you have a lot of redundant keys in your file b.t.wGraphics3D 640,480,32,2 SetBuffer BackBuffer() camera=CreateCamera() MoveEntity camera,0,0,-19 light=CreateLight(1) RotateEntity light,30,10,-20 mesh = LoadAnimMesh("mesh.b3d") ;The node with the 2nd set of animation child=FindChild(mesh,"mesh") a=ExtractAnimSeq(child,0,100,0) Animate child,1,1,a While Not KeyDown( 1 ) RenderWorld UpdateWorld Flip Wend End |
| ||
This works with the original mesh, you have a lot of redundant keys in your file b.t.wGraphics3D 640,480,32,2 SetBuffer BackBuffer() camera=CreateCamera() MoveEntity camera,0,0,-19 light=CreateLight(1) RotateEntity light,30,10,-20 mesh = LoadAnimMesh("mesh.b3d") ;The node with the 2nd set of animation child=FindChild(mesh,"mesh") a=ExtractAnimSeq(child,0,100,0) Animate child,1,1,a While Not KeyDown( 1 ) RenderWorld UpdateWorld Flip Wend End |
| ||
Thanks guys ;) What exactly do you mean with "you have a lot of redundant keys in your file b.t.w" Perhaps this has to do me not optimizing the animation, there is option to optimize it and I didn't use it for this mesh. |
| ||
Don't you usually have to extract animation sequences on non .md2 models? |
| ||
Nope. |