stewrat Loyal Poster
Posts : 78 Join date : 2008-01-04
| Subject: Models? Thu Jan 17, 2008 10:24 pm | |
| What is the difference between d3d_model functions and just drawing with d3d_draw functions? | |
|
slayer64 Heavy Poster
Posts : 143 Join date : 2008-01-05
| Subject: 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. | |
|
stewrat Loyal Poster
Posts : 78 Join date : 2008-01-04
| Subject: 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? | |
|
Phantom107 Admin
Posts : 206 Join date : 2008-01-03 Location : The Netherlands
| Subject: 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? | |
|
slayer64 Heavy Poster
Posts : 143 Join date : 2008-01-05
| Subject: Re: Models? Fri Jan 18, 2008 5:22 pm | |
| well said phantom. i create my models in the room start event. | |
|
stewrat Loyal Poster
Posts : 78 Join date : 2008-01-04
| Subject: 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? | |
|
stewrat Loyal Poster
Posts : 78 Join date : 2008-01-04
| Subject: Re: Models? Mon Jan 21, 2008 6:42 am | |
| If you could check out the WW2 example and give me more stuff on speed. | |
|