All posts tagged addon

Today, I released the first update to gamemaker-3d-io, a Blender addon I created to help get 3D models from Blender into GameMaker Studio 2.

This update brings some new functionality to the addon: in addition to triangle lists, it can now also export line lists and point lists. Some neat effects can now be achieved!

I also refactored the addon a bit, splitting out the data prep and output-building functions into their own modules. And I cleaned up the export menu to be more organized in a better way.

Get the addon at the link above, or at Github. If you happen to use this addon for your game, be sure to leave me a note and let me know what you think!

680 99 0

Blender addon update

Martin · 2 years

It's been out for a few days, but in case you haven't seen it, I've finally updated my addon for Blender, which allows you to output 3D models to GameMaker Studio 2. The latest iteration of the addon will output models to GameMaker's vertex buffer format, so you can load the files natively, without including a bunch of scripts in the game.

You can read more about the addon here: https://martincrownover.com/blender-addon-gm-vertex-buffers/

Or you can go straight to the Github page, here: https://github.com/massivecatapult/gamemaker-3d-io

616 98 0

I spent some time experimenting with my Blender addon and GameMaker's 3D the other night, and I realized that the models it was creating were not entirely how they should be. It seemed that if you used the option to flip the object's Y axis on export, which is often necessary because GameMaker and Blender's world axes are different, then the model's normals would be flipped.

This wasn't immediately obvious to me, since the correct orientation of GameMaker's built-in models has always been kind of ambiguous, in my opinion. After following the code in the manual to make some of the primitive shapes however, I compared the results to what my Blender addon was creating, and came to the conclusion that the output from my addon was not quite correct.

So after a lot of tinkering (Python and Blender API are not my strong suits) I believe I've finally got the addon updated to export models that are oriented correctly and which should always have correct normals. Additionally, I added a feature which a friend of mine had built into his own version of the addon, which will let you output the model script in an alternative way, to more easily allow you to add it to an existing model in your game.

You can download the updated version of my Blender addon at the original page, which I've changed to include the newly updated addon. That will always be the place to go for the most recent version.