Jump to content


Ultra Fast Md2 Loader

  • Please log in to reply
5 replies to this topic

#1 ChaosMaker


    GMC Member

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

Posted 27 April 2012 - 03:54 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

Special Thanks to Snake_PL for gmapi

I hope this is useful for you! ^^

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

  • 0

#2 icuurd12b42


    Self Formed Sentient

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

Posted 27 April 2012 - 04:40 AM

Pretty good and nice trick with the ds lists
  • 0


ICU Live Tutoring Through Slack or Skype | My Tools Page follow.png

Now I'm squirming not to hit that reply button

#3 ChaosMaker


    GMC Member

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

Posted 30 April 2012 - 07:11 AM

Thank you!

yes ds_list was a nice trick. ^^

  • 0

#4 BillyTheCat128


    GMC Member

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

Posted 10 July 2012 - 07:44 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:47 PM.

  • 0

#5 michael pw

michael pw

    GMC Member

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

Posted 18 July 2012 - 05:26 PM

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

Known as MishMash on the internet, If only my username could be changed :D?

Posted Image

Working on Sharp Edge, a 3D Level designer which exports to GMMOD and textures, with a vast toolset, and fancy GUI. ( So far, software is only going to be distributed with my game, in the future, it will be up for public use and with the ability to customise the software using the Plugin System to suite your games needs.)
Also working on 3D Multiplayer FPS Global Anarchy Denied Operations.

#6 Mornedil


    GMC Member

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

Posted 15 March 2013 - 08:22 PM

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

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

~ Pause systems for your games ~

EasyPauseIcon.png                   icon_medium.png