Jump to content


Photo

Blender/3DMAX7 Animations to GM


  • Please log in to reply
29 replies to this topic

#1 The Scorpion

The Scorpion

    GMC Member

  • GMC Member
  • 416 posts
  • Version:GM8

Posted 21 July 2011 - 05:06 PM

Blender/3DMAX7 Animations to GM

Hello Every One, I've been able to parse an interresting animation file format (.G3D)
(more precisely Glest3D file)

So what ?
The most important thing, is that this program provide 2 exporter plugIn for Blender and 3DMax7

Why G3D?
-I made a script to fastly import G3D files to GM! see your self :)
-G3D support Static and animated objects (even support multiple objects)
-G3D saves Vertices,Normals, and UV's!
- I used GMBin.dll to speed up the Import!

Download Link :
link

Screen Shot :)
Posted Image


I hope it Helps! :D
  • 1

#2 regular

regular

    GMC Member

  • New Member
  • 399 posts

Posted 24 July 2011 - 01:44 PM

Does it use d3d_transform_* functions or does it draw seperate models?
  • 0

#3 link3000

link3000

    Link3000

  • GMC Member
  • 1129 posts
  • Version:GM8

Posted 25 July 2011 - 02:40 AM

This is nice, though I'm not sure if it'll beat out the .md2 importer :P

@Regular - You should be able to use the new draw function just like d3d_model_draw(..);
  • 0

#4 The Scorpion

The Scorpion

    GMC Member

  • GMC Member
  • 416 posts
  • Version:GM8

Posted 27 July 2011 - 09:47 AM

This is nice, though I'm not sure if it'll beat out the .md2 importer :P

Well, to me it does, as G3D files are more detailed, and loads FASTER :D

Edited by The Scorpion, 27 July 2011 - 09:49 AM.

  • 0

#5 Markolainen

Markolainen

    GMC Member

  • New Member
  • 426 posts

Posted 24 August 2011 - 12:19 PM

What are the benefits of using this instead of using separate d3d models and animating them in an array?
I myself have had serious problems setting up the scripts for blender since there aren't any for max 2011. Is it possible for you to make fluid animations instead of frame animations?
  • 0

#6 amiel

amiel

    GMC Member

  • GMC Member
  • 1117 posts
  • Version:Unknown

Posted 10 October 2011 - 04:17 AM

thanks
Posted Image

Edited by amiel, 03 March 2013 - 06:31 PM.

  • 0

#7 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • Global Moderators
  • 14385 posts
  • Version:GM:Studio

Posted 10 October 2011 - 05:45 AM

Cool, I missed it when the topic started...

You really should not be using arrays though
  • 0

#8 loverock125

loverock125

    GMC Member

  • GMC Member
  • 1597 posts
  • Version:GM8

Posted 12 October 2011 - 06:04 PM

This looks great! Though basically you are importing a model for each animation frame and that doesn't sound very efficient. Edit: However I suppose there's no other way to import animations to game maker other than transformations :P

Great work!


@icuurd12b42
Why not?

Edited by loverock125, 12 October 2011 - 06:08 PM.

  • 0

#9 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • Global Moderators
  • 14385 posts
  • Version:GM:Studio

Posted 12 October 2011 - 06:14 PM

This looks great! Though basically you are importing a model for each animation frame and that doesn't sound very efficient. Edit: However I suppose there's no other way to import animations to game maker other than transformations :P

Great work!


@icuurd12b42
Why not?


Arrays are limited to 32k... 2d array is limited to 32k/2 2d entries. Large models could possibly not work. I think you use the array to store the vertices index.

[edit]
Also, I would convert this to a tool to generate a series of d3d models so people can pre-convert their animation and use them in GM without the need to use any dll.
  • 0

#10 The Scorpion

The Scorpion

    GMC Member

  • GMC Member
  • 416 posts
  • Version:GM8

Posted 16 October 2011 - 11:10 AM


This looks great! Though basically you are importing a model for each animation frame and that doesn't sound very efficient. Edit: However I suppose there's no other way to import animations to game maker other than transformations :P

Great work!


@icuurd12b42
Why not?


Arrays are limited to 32k... 2d array is limited to 32k/2 2d entries. Large models could possibly not work. I think you use the array to store the vertices index.

[edit]
Also, I would convert this to a tool to generate a series of d3d models so people can pre-convert their animation and use them in GM without the need to use any dll.



actually I'm not using arrays to store vertices!
1st index = animation index!
2nd index = frame index !
I won't imagine over 32000 animation in a game! or a 32000 frames animation O.o

well that tool would get rid of the Dll! but I like the animationfiles to be compact! (one file) and that way others can't use your models ;) thx for the reply!
it's been a while since I haven't visited GM :)
  • 0

#11 Nebuer

Nebuer

    GMC Member

  • GMC Member
  • 21 posts

Posted 16 October 2011 - 03:06 PM

This is probably the best implementation of animation in gamemaker i've seen (ogre/ultimate3d dont count as GM imo)

I made sort of a stress/speed test,
60 frames of animation, on a 2200 poly model, takes about 5-10 seconds to load, in a more large scale production; not ideal. although once loaded you can have several instances of the same animation at once keeping a nice frame rate.


Posted Image
http://img15.imagesh...5/6929/ron4.png

download. left click spawns a zombie, space clears all zombies.
http://www.mediafire...w12fe18g46u7l2p
with a better animator than me, and a better AI programmer this has alot of potential

Edited by Nebuer, 16 October 2011 - 03:08 PM.

  • 0

#12 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • Global Moderators
  • 14385 posts
  • Version:GM:Studio

Posted 16 October 2011 - 03:12 PM

^^ Neat!
  • 0

#13 eafg2

eafg2

    GMC Member

  • GMC Member
  • 166 posts

Posted 17 October 2011 - 03:59 PM

Can't get the Blender exporter to work, have tried to zip it and load it, I tested to import it through folders and it didn't work. Anyone know what version the plug-in was made for, or have a build version?
  • 0

#14 jsorgeagames

jsorgeagames

    GMC Member

  • GMC Member
  • 620 posts
  • Version:GM8.1

Posted 17 October 2011 - 09:55 PM

Can't get the Blender exporter to work, have tried to zip it and load it, I tested to import it through folders and it didn't work. Anyone know what version the plug-in was made for, or have a build version?

I can't get it to work either. I even tried importing it through the Add-ons menu but it won't show up. I'm assuming the plugin is for a pre-2.5 version of Blender because it says to install it in the .blender folder, which I think was only 2.4 and before.
  • 0

#15 Nebuer

Nebuer

    GMC Member

  • GMC Member
  • 21 posts

Posted 18 October 2011 - 04:22 AM

i can use it 2.49b just fine
  • 0

#16 eafg2

eafg2

    GMC Member

  • GMC Member
  • 166 posts

Posted 18 October 2011 - 06:22 AM

i can use it 2.49b just fine

Thank you, this script needs to be updated.
  • 0

#17 The Scorpion

The Scorpion

    GMC Member

  • GMC Member
  • 416 posts
  • Version:GM8

Posted 21 October 2011 - 07:13 PM

This is probably the best implementation of animation in gamemaker i've seen (ogre/ultimate3d dont count as GM imo)

I made sort of a stress/speed test,
60 frames of animation, on a 2200 poly model, takes about 5-10 seconds to load, in a more large scale production; not ideal. although once loaded you can have several instances of the same animation at once keeping a nice frame rate.


Posted Image
http://img15.imagesh...5/6929/ron4.png

download. left click spawns a zombie, space clears all zombies.
http://www.mediafire...w12fe18g46u7l2p
with a better animator than me, and a better AI programmer this has alot of potential


I admit, Nice work done over there ;) well, thx ! it's indeed it's a nice tool! took time so that people recognize that but Neever late than NEVER

EDIT I've been able to speed up the Exemple! write your transformation code then use my g3d_draw() script! it's way faster that way! the way you wrote it, transformaton is done for every single part of the animation ! in the (For) loop

Thank you, this script needs to be updated.


What script ?
By the way, I had also problems to use Blender PluggIn at first! But if you flollw instructions you will find out how :) (as blender has tricky ways for installing plugIns)

Edited by The Scorpion, 22 October 2011 - 07:34 AM.

  • 0

#18 jsorgeagames

jsorgeagames

    GMC Member

  • GMC Member
  • 620 posts
  • Version:GM8.1

Posted 21 October 2011 - 07:19 PM

What script ?

The Blender G3D exporter needs to be updated.
  • 0

#19 The Scorpion

The Scorpion

    GMC Member

  • GMC Member
  • 416 posts
  • Version:GM8

Posted 21 October 2011 - 07:21 PM


What script ?

The Blender G3D exporter needs to be updated.

Well I didn't make it! I don't know how :(

Edited by The Scorpion, 21 October 2011 - 07:29 PM.

  • 0

#20 eafg2

eafg2

    GMC Member

  • GMC Member
  • 166 posts

Posted 22 October 2011 - 01:48 PM



What script ?

The Blender G3D exporter needs to be updated.

Well I didn't make it! I don't know how :(

You didn't wrote this?
Anyway I can't even get the this to work on Blender 2.49
When I was testing if this would work with Shapekeys.
From Blender
To G3D

After that I made an other test with Armature:
G3D Test

After that I made an other test with out triangels, but nothing changed.
With out Triangels

The conclusion: The exporter is broken.
BTW I used your example I only switched the file.

Also all the files can you
download here

Edited by eafg2, 22 October 2011 - 01:55 PM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users