Phantom107 Forum

Phantom107's Forum. Discuss about games, GML, 3d, game design here. Enjoy your stay ;)
 
HomeFAQSearchRegisterMemberlistUsergroupsLog in

Share | 
 

 My model is only half done.

Go down 
AuthorMessage
slayer64
Heavy Poster
avatar

Posts : 143
Join date : 2008-01-05

PostSubject: My model is only half done.   Wed Feb 06, 2008 5:12 am

here is the game im working on. the model stops for some reason. it makes a model from all the objects positions.

http://host-a.net/slayer64/another%20game.zip

there's only half a model.
why is this happening? game makers triangle limit on models must be higher because "terrain system" makes a huge model and it looks fine.

maybe its my computer. i dunnno.
phantom. use your MaGiC 3d pOweRs!

for(i=0;i<99999;i+=1)
{
WTFWTFWTWFTWFWTFWWFWTTWWFWFFWTWWFFWFTWTFWTFWTWFF WTF! Evil or Very Mad
}
Back to top Go down
View user profile
Watever742
Active Member
avatar

Posts : 39
Join date : 2008-01-21

PostSubject: Re: My model is only half done.   Wed Feb 06, 2008 6:45 am

thats not a model........

thats a d3d_vertex which isn't a model
Back to top Go down
View user profile
Phantom107
Admin
avatar

Posts : 206
Join date : 2008-01-03
Location : The Netherlands

PostSubject: Re: My model is only half done.   Wed Feb 06, 2008 3:55 pm

Awww it's a gmk sorry I can't open those; I work with GM6.1, not GM7

PS

From own experience GM can hold ~300 triangles per model
Back to top Go down
View user profile http://phantom107.actieforum.com
slayer64
Heavy Poster
avatar

Posts : 143
Join date : 2008-01-05

PostSubject: Re: My model is only half done.   Wed Feb 06, 2008 5:22 pm

never mind. i figured it out. and models in gm7 can hold WAY more triangles than 300. i dunno about gm6.
Back to top Go down
View user profile
Phantom107
Admin
avatar

Posts : 206
Join date : 2008-01-03
Location : The Netherlands

PostSubject: Re: My model is only half done.   Wed Feb 06, 2008 6:46 pm

Really? Can you find out how many it can hold? Also, does GM7 have d3d functions GM6.1 doesn't have?
Back to top Go down
View user profile http://phantom107.actieforum.com
slayer64
Heavy Poster
avatar

Posts : 143
Join date : 2008-01-05

PostSubject: Re: My model is only half done.   Wed Feb 06, 2008 11:07 pm

here is how you made the models in your engine. right? you made a loop and made a model from it.

Code:
d3d_model_primitive_begin(obj_Controller.model_Terrain01,pr_trianglelist);
with (obj_Terrain01_s01)
{
//vertex code
}
d3d_model_primitive_end(obj_Controller.model_Terrain01);

you started a primitive, then added all the vertex's and ended it. makes perfect sense, i did the same thing, but...
the model can only be so big.

I tried this and now i can make a model as big as i want.

Code:
with (obj_Terrain01_s01)
{
      d3d_model_primitive_begin(obj_Controller.model_Terrain01,pr_trianglelist);
      //vertex code
      d3d_model_primitive_end(obj_Controller.model_Terrain01);
}

this code allows the model to be as LARGE as i want. i think you can make a LARGE model in gm6 also.
this was the problem i was having. you apparently did the same thing. lol.
Very Happy

so now we can all make really big models.

to answer your 2nd question, no. i dont think gm7 has more d3d functions than gm6. if you ask me gm7 is basically the same except for the extensions one can install to improve gm7. but nothing can be done in gm7 that cant be done in gm6.

except gm7 can work on Windows Vista. Wink
Back to top Go down
View user profile
Phantom107
Admin
avatar

Posts : 206
Join date : 2008-01-03
Location : The Netherlands

PostSubject: Re: My model is only half done.   Thu Feb 07, 2008 12:21 am

Ooooh ofcourse! I can't believe I didn't realise this earlier! Models can hold an unlimited amount of polys, but each primitive can hold a fixed number of polys. (well actually models hold primitives but in theory that doesn't matter really)
I still recommend using a single primitive in the loop
, since that single primitive is WAY faster to draw (and thus more efficient) than a big bunch of primitives. The only problem is to keep the number of polys generated in the loop under the max number a primitive can hold.
Back to top Go down
View user profile http://phantom107.actieforum.com
Sponsored content




PostSubject: Re: My model is only half done.   

Back to top Go down
 
My model is only half done.
Back to top 
Page 1 of 1
 Similar topics
-
» Page Object Model
» FlipSize Model Contest
» Flying and headaches
» Holy Cow! I may have found a triptan that works for me...RELPAX
» FlipSize Model Contest

Permissions in this forum:You cannot reply to topics in this forum
Phantom107 Forum :: Questions and Answers-
Jump to: