GM: d3d set perspective

From GMpedia.org Wiki

Jump to: navigation, search
The correct title of this article is d3d_set_perspective(enable). It appears incorrectly here because of technical restrictions.
The correct title of this article is d3d_set_perspective(). It appears incorrectly here because of technical restrictions.


Arguments

enable = True / False

Limitations

Registered

Note: Please remove limitations and port them in the "Remarks" section at the end of the article.

This sounds like that when it is disabled, you will get an orthographic projection (no vanishing point, parallel lines keep the same distance apart) however this is not the purpose of this function. Normally in a 2d game, the depth will not affect the size of the image, just the order in which they are drawn. When this is turned on however, the depth does affect the size of the image. A larger depth will result in a smaller (ie further away) image.

This article was originally found at the Game Maker Knowledge Base, contributed by monkey dude.
See the talk page for details
Personal tools