obj 3d models does not show up
#1
Posted 14 September 2012 - 03:39 PM
table=d3d_model_create()
d3d_model_load(table,"table.obj")
and in the draw event:
d3d_transform_set_identity()
d3d_transform_add_rotation_x(-90)
d3d_transform_add_translation(x,y,0)
d3d_model_draw(table,x,y,1,background_get_texture(tex_table))
d3d_transform_set_identity()
then i put the object in the room, then when i run the game, the game runs just fine without any errors, however, the model won't show up, what am i doing wrong?
#2
Posted 14 September 2012 - 06:11 PM
Gamemaker is unable to load .obj models so convrt it by the help of MODEL CREATOR v5 or Gm alter ego...both will convert your model in gamemaker model format...
\Edit/
also their are some scripts avilable to load .obj models without converting them...you will find them in script forum...
shubham
Edited by Mr.creator, 14 September 2012 - 06:14 PM.
#3
Posted 14 September 2012 - 07:30 PM
ok, so i converted the obj to d3d and switched from table.obj 2 table.d3d in gm just like u said but it still doesn't show up.You have to convert your model in *.gmmod,*.mod,*.d3d
Gamemaker is unable to load .obj models so convrt it by the help of MODEL CREATOR v5 or Gm alter ego...both will convert your model in gamemaker model format...
\Edit/
also their are some scripts avilable to load .obj models without converting them...you will find them in script forum...
shubham
#4
Posted 14 September 2012 - 09:20 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











