Jump to content


Photo

Ultra Fast Md2 Loader


  • Please log in to reply
5 replies to this topic

#1 ChaosMaker

ChaosMaker

    GMC Member

  • GMC Member
  • 289 posts
  • Version:GM:HTML5

Posted 27 April 2012 - 03:40 AM

Some should already know the MD2 model format is using the Quake games.
Fortunately some members of the GMC already developing scripts as the Omicron, which allows you to load these models.

however long it takes to load a simple model kbts 300.
so I decided to build a dll that loads these models is extreme speed.

I made several comparison tests.
Omicron's script takes 228 seconds to load a model with 199 frames.
and my dll takes 5.7 seconds to load the same model.

is very fast, no?

is still possible to make much faster, allowing load models with 400 frames in 1.9 seconds.
but unfortunately we have to wait the Snake_PL update the gmapi, to support 3D models.

Posted Image
Download

Special Thanks to Snake_PL for gmapi

I hope this is useful for you! ^^

Edited by ChaosMaker, 01 May 2012 - 12:39 PM.

  • 0

#2 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • GMC Elder
  • 16028 posts
  • Version:GM:Studio

Posted 27 April 2012 - 04:26 AM

Pretty good and nice trick with the ds lists
  • 0

#3 ChaosMaker

ChaosMaker

    GMC Member

  • GMC Member
  • 289 posts
  • Version:GM:HTML5

Posted 30 April 2012 - 06:57 AM

Thank you!

yes ds_list was a nice trick. ^^


  • 0

#4 BillyTheCat128

BillyTheCat128

    GMC Member

  • GMC Member
  • 29 posts
  • Version:GM:Studio

Posted 10 July 2012 - 07:30 PM

Great MD2 loader! =D
I even discovered that it loaded models it wouldn't normally load using the original MD2 GML script.
Definitly gonna use it for my game. X3

Only problem: When it grabs the texture it goes out from a 256x256 resolution texture.
Some of the textures on my models could only be fixed by resizing the canvas to 256x256 and allign the original sized texture to the top-left corner. =/
I didn't have that problem with the original script! >.>
(I'm using Qtip3.1 to export my models btw. ^^)

Edited by BillyTheCat128, 10 July 2012 - 07:33 PM.

  • 0

#5 michael pw

michael pw

    GMC Member

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

Posted 18 July 2012 - 05:12 PM

Will this ever work with Game Maker 8.1? I know the issue with GMAPI but this looks so pwn D:!
  • 0

#6 Pandaboy

Pandaboy

    GMC Member

  • GMC Member
  • 1155 posts
  • Version:GM:Studio

Posted 15 March 2013 - 08:08 PM

does this work for GM8.1 or Studio..?

If not, what's the fastest way to load md2 models into Studio?
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users