Phantom107 Forum

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

Share | 
 

 Models?

Go down 
AuthorMessage
stewrat
Loyal Poster
avatar

Posts : 78
Join date : 2008-01-04

PostSubject: Models?   Thu Jan 17, 2008 10:24 pm

What is the difference between d3d_model functions and just drawing with d3d_draw functions?
Back to top Go down
View user profile http://www.yogamerclub.piczo.com
slayer64
Heavy Poster
avatar

Posts : 143
Join date : 2008-01-05

PostSubject: Re: Models?   Fri Jan 18, 2008 12:17 am

Code:
model=d3d_model_create();
d3d_model_block(model,blah....

it draws the block to the model. for some reason models are faster to draw than d3d_draw_block( so that's the difference.
Back to top Go down
View user profile
stewrat
Loyal Poster
avatar

Posts : 78
Join date : 2008-01-04

PostSubject: Re: Models?   Fri Jan 18, 2008 12:31 am

Does d3d_model stuff have all the shapes that that d3d_draw has? Where do you say d3d_model_create? Is it in Draw like d3d_draw?
Back to top Go down
View user profile http://www.yogamerclub.piczo.com
Phantom107
Admin
avatar

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

PostSubject: Re: Models?   Fri Jan 18, 2008 2:41 am

slayer64 wrote:

it draws the block to the model. for some reason models are faster to draw than d3d_draw_block( so that's the difference.

Speed Techniques Topic wrote:

Technique 4
Always use models. When using models Gamemaker only needs to draw them. When using d3d_draw... functions Gamemaker needs to construct the model first, and then draw it on the screen. This will cause a big loss of drawing performance. Also, keep in mind that the lesser polygons in your model, the lesser they consume.

read..

stewrat wrote:
Does d3d_model stuff have all the shapes that that d3d_draw has? Where do you say d3d_model_create? Is it in Draw like d3d_draw?

Ofcourse it does. Just a matter of looking it up in the GM manual? (that's your bible from now on). d3d_model_create(...) is executed in the create event and d3d_model_draw(...) in the draw event. Makes perfect sense, dont you think?
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: Models?   Fri Jan 18, 2008 5:22 pm

well said phantom. i create my models in the room start event.
Back to top Go down
View user profile
stewrat
Loyal Poster
avatar

Posts : 78
Join date : 2008-01-04

PostSubject: Re: Models?   Mon Jan 21, 2008 6:41 am

UUUUUUUH. Well, I must not have done it right. It was really really slow. I put the d3d_model_create in the create event and the d3d_draw_model event in the draw event. Where am I supposed to actually do the drawing of the model? i.e. draw the cones and cylinders and stuff?
Back to top Go down
View user profile http://www.yogamerclub.piczo.com
stewrat
Loyal Poster
avatar

Posts : 78
Join date : 2008-01-04

PostSubject: Re: Models?   Mon Jan 21, 2008 6:42 am

If you could check out the WW2 example and give me more stuff on speed. Very Happy
Back to top Go down
View user profile http://www.yogamerclub.piczo.com
Sponsored content




PostSubject: Re: Models?   

Back to top Go down
 
Models?
Back to top 
Page 1 of 1
 Similar topics
-
» Review: Mario And Luigi: Superstar Saga (Wii U VC)

Permissions in this forum:You cannot reply to topics in this forum
Phantom107 Forum :: Graphics-
Jump to: