Posted 16 June 2012 - 01:06 AM
In the Create Event are two files:
I just get two of the same object. I am uncertain how to use the code outside of the GMModelEx program. I tried using one of the script functions in the Create Event but created errors(sample below). Any help would be awesome!. Thanks. pac1
f = get_open_filename("OBJ Models|*.obj","*.obj");
if (f <> "")
var m; m = GMModelEx_ModelImport(f,0);
modelex = m;
show_message("Failed to load the model")
//To avoid opening up a window in the start of the game, tried to change from > f = get_open_filename("OBJ Models|*.obj","*.obj"); to
f = ("dinHead.obj,""*.obj") and left the rest alone but that didn't work.
Posted 17 June 2012 - 02:17 AM
I used GMModex to convert the obj model to d3d then I used Model Creator.exe and created GML script and selected "GML model functions? and for Output "Show in Textbox". I copied the create script and made a script name to create the d3d model, then copied and pasted the draw_event code in the textbox and created the second draw script. Then just using like so made the model load superfast and is much better than a wavefront obj that takes longer to load. Note on the fourth line that reads "dinBkleg_draw();" is where I put the script. Hope this helps someone else. I can also reuse the same script repeatedly to duplicate the model. So wish I found this out sooner!
Posted 17 June 2012 - 04:49 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users