Ooops
November 29, 2020, 04:38:34 PM

Author Topic: How to import animations into Blitz3D  (Read 2099 times)

Offline Borislav

  • Jr. Member
  • **
  • Posts: 42
How to import animations into Blitz3D
« on: May 17, 2018, 08:28:41 PM »
I can't understand how to animate .MD2 files and how to export .B3D files.
This topic seems to be badly documented and I don't know any program that exports .MD2 or .B3D files.
I tried using .MD2 files but it turned out to only animate 1 part of the character, I didn't use a skeleton since my character is kind of blocky at the moment(modelling a character is a pain in the arse).
Can you please help(I am using blender)?  ;D

Offline markcwm

  • Sr. Member
  • ****
  • Posts: 480
Re: How to import animations into Blitz3D
« Reply #1 on: May 17, 2018, 08:37:51 PM »
I haven't tried but I think you use ExtractAnimSeq for MD2, this should convert animations so you can use SetAnimTime or Animate:
https://www.syntaxbomb.com/index.php/topic,4532.0.html

For exporting B3D in Blender see my post in this thread, Gandaldf's exporter only works with <2.5 Blender, so try Joric's exporter:
https://www.blitzcoder.org/forum/topic.php?id=116

Offline RemiD

  • Hero Member
  • *****
  • Posts: 1077
Re: How to import animations into Blitz3D
« Reply #2 on: May 19, 2018, 08:44:30 PM »
To create a mesh, and then joints (="bones"), and then set the influences (weights) of some joints over some vertices, i use Fragmotion, you can export in .b3d and the exported file is "clean".

To animate a rigged skinned mesh in Blitz3d, there are 2 ways :
->use extractanimseq() and then animate()
->use a variable to keep track of the current frame and then use setanimkey()

i prefer to use the 2nd method for the reasons mentionned here :
https://www.syntaxbomb.com/index.php/topic,4353.0.html
(there is a code example and a b3d rigged skinned mesh + a test animation)
DualCore AMD E-450, 1646 MHz - 6 Go DDR3 1333 SDRAM - AMD Radeon HD 6320 Graphics (384 Mo) - Windows 7 Home Premium - DirectX 11.0

Offline MagosDomina

  • Full Member
  • ***
  • Posts: 121
    • Aspiring game developer website.
Re: How to import animations into Blitz3D
« Reply #3 on: May 20, 2018, 02:11:42 PM »
Borislav what CAD software are you using to create animations?
Central hub for my Game Design related activities.
http://www.magosdomina.com/

Windows 7 PRO 64-bit, 48Gb RAM, CPU: Dual Hexacore Intel Xeon 3.33 GHZ, Nvidia Quadro 5800FX 4Gb x 2 SLI.

Offline Borislav

  • Jr. Member
  • **
  • Posts: 42
Re: How to import animations into Blitz3D
« Reply #4 on: May 22, 2018, 03:34:19 PM »
Borislav what CAD software are you using to create animations?
Isn't CAD software for designing electronics, mechanics, buildings but not games?
I use a program named Blender as I've stated in my question.
 :)

Offline MagosDomina

  • Full Member
  • ***
  • Posts: 121
    • Aspiring game developer website.
Re: How to import animations into Blitz3D
« Reply #5 on: May 22, 2018, 10:12:06 PM »
CAD = Computer Aided Design. I prefer the term Computer Aided Drafting when describing anything related to mechanical engineering.

Sorry I missed your first post about Blender.

Central hub for my Game Design related activities.
http://www.magosdomina.com/

Windows 7 PRO 64-bit, 48Gb RAM, CPU: Dual Hexacore Intel Xeon 3.33 GHZ, Nvidia Quadro 5800FX 4Gb x 2 SLI.

Offline RemiD

  • Hero Member
  • *****
  • Posts: 1077
Re: How to import animations into Blitz3D
« Reply #6 on: May 23, 2018, 02:02:35 PM »
Why do you want to use md2 meshes ? it is fast to animate rigged skinned b3d meshes nowadays...
DualCore AMD E-450, 1646 MHz - 6 Go DDR3 1333 SDRAM - AMD Radeon HD 6320 Graphics (384 Mo) - Windows 7 Home Premium - DirectX 11.0

Offline 3DzForMe

  • Hero Member
  • *****
  • Posts: 1136
Re: How to import animations into Blitz3D
« Reply #7 on: May 28, 2018, 05:46:26 AM »
RemiD, what do you advise to animate rigged skinned B3D meshes? Do you use milkshape at all?

Offline RemiD

  • Hero Member
  • *****
  • Posts: 1077
Re: How to import animations into Blitz3D
« Reply #8 on: May 30, 2018, 07:51:22 PM »
@3DzForMe>>i have tested anim8or, milkshape, pacemaker, fragmotion, blender, and fragmotion is the best ! (most easy to understand and to use, and the .b3d export is clean)
DualCore AMD E-450, 1646 MHz - 6 Go DDR3 1333 SDRAM - AMD Radeon HD 6320 Graphics (384 Mo) - Windows 7 Home Premium - DirectX 11.0

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal