|
d3d_start() |
|
Note: All 3D functions are restricted to registered users only.
This function switches game maker to "3D mode". It changes some internal elements of GM we really don't need to go in to here to allow it to draw things correctly in 3D. Its counter-part is the function d3d_end().
There are some things you do need to be aware though. Firstly, the y co-ordinate is now reversed. Most of the time you will be blissfully unaware of this, because everything is relative anyway, but if you were to add the d3d_start to a normal 2d game, you will notice everything is upside down.
Example
Also, hidden surface removal and perspective projection are turned on by default when you use the d3d_start() function.
monkey dude - Revision #1 |