• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker [3D Tutorial] Importing .obj models in Game Maker Studio 2

MilesThatch

Member
GM Version: GM:S2
Target Platform: Windows
Download: OBJ Importer Project file.
Links: N/A

Summary:
You will learn the structure of an OBJ 3D file.
We will go over each line of code of the included OBJ importer.
We will make a custom 3D model, texture it, convert it using our importer and use it in a blank 3D GM:S2 project.

By the end of this tutorial, You will know how Game Maker Studio 2 handles 3D objects and you will be able to code your own obj importer that can be built straight into your game.

Tutorial:
 
Last edited:

slojanko

Member
This is great, will definitely finish watching the whole tutorial when I have some spare time. GMS needed a proper tutorial for obj models.
Thanks
 
N

Nadder

Guest
This was a very well put together tutorial :) Thanks for sharing.

Just so you know, string addition in GMS 1.4 is as simple as

str = "Hello";
str += " World";

I doubt it's changed between 1.4 and GMS 2?

EDIT: Typo in the code...
 
Last edited by a moderator:

lost

Member
real(value) fails because value is a string of ""

GML:
___________________________________________
############################################################################################
ERROR in
action number 1
of  Step Event0
for object obj_handler:

unable to convert string "" to number
at gml_Object_obj_handler_Step_0 (line 200) -                                                                pick_uv = real(value);
############################################################################################
gml_Object_obj_handler_Step_0 (line 200)
the model was https://free3d.com/3d-model/abandoned-cottage-house-825251.html


tried again with https://free3d.com/3d-model/wooden-house-752597.html

seemed to load but never drew in the frame
 
Last edited:
Top