D
Dengar
Guest
im using gamemaker studio 1.4 and blender models using this addon for blender http://martincrownover.com/blender-addon-gm3d/ to convert the model into a .txt file that I'm using as a script. everything looks right to me but nothing is showing up ingame.
below is the code im using
theres something like 5k lines of d3d_model_vertex_normal so Im just showing the beginning and end of the script.
the camera is controlled by another object and everything works ingame except this model doesn't show up. I'm using walls and blocks right now. theres no errors,i'm just not seeing the model ingame. any help would be appreciated. a friend of mine is doing the modeling, im just the programmer.
below is the code im using
Code:
//create event
model[0] = test_model();
Code:
//draw
d3d_model_draw(model[0], x, y, 0, sprite_get_texture(spr_Wall,0));
Code:
//test_model() script
var temp = d3d_model_create();
d3d_model_primitive_begin(temp,pr_trianglelist);
d3d_model_vertex_normal(temp, -1.000000, 0.602819, -0.011654, -0.577349, 0.577349, -0.577349);
d3d_model_vertex_normal(temp, -1.000000,
.......
d3d_model_vertex_normal(temp, 0.087392, -0.839538, 1.039895, 0.574999, -0.564165, 0.592486);
d3d_model_primitive_end(temp);
return temp;
the camera is controlled by another object and everything works ingame except this model doesn't show up. I'm using walls and blocks right now. theres no errors,i'm just not seeing the model ingame. any help would be appreciated. a friend of mine is doing the modeling, im just the programmer.