Phantom107 Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Phantom107 Forum

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

 

 Models?

Go down 
3 posters
AuthorMessage
stewrat
Loyal Poster
stewrat


Posts : 78
Join date : 2008-01-04

Models? Empty
PostSubject: Models?   Models? Icon_minitimeThu 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
http://www.yogamerclub.piczo.com
slayer64
Heavy Poster
slayer64


Posts : 143
Join date : 2008-01-05

Models? Empty
PostSubject: Re: Models?   Models? Icon_minitimeFri 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
stewrat
Loyal Poster
stewrat


Posts : 78
Join date : 2008-01-04

Models? Empty
PostSubject: Re: Models?   Models? Icon_minitimeFri 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
http://www.yogamerclub.piczo.com
Phantom107
Admin
Phantom107


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

Models? Empty
PostSubject: Re: Models?   Models? Icon_minitimeFri 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
https://phantom107.actieforum.com
slayer64
Heavy Poster
slayer64


Posts : 143
Join date : 2008-01-05

Models? Empty
PostSubject: Re: Models?   Models? Icon_minitimeFri Jan 18, 2008 5:22 pm

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


Posts : 78
Join date : 2008-01-04

Models? Empty
PostSubject: Re: Models?   Models? Icon_minitimeMon 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
http://www.yogamerclub.piczo.com
stewrat
Loyal Poster
stewrat


Posts : 78
Join date : 2008-01-04

Models? Empty
PostSubject: Re: Models?   Models? Icon_minitimeMon 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
http://www.yogamerclub.piczo.com
Sponsored content





Models? Empty
PostSubject: Re: Models?   Models? Icon_minitime

Back to top Go down
 
Models?
Back to top 
Page 1 of 1
 Similar topics
-
» gun models
» Models
» Splitting up a model in different models

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