![]() ![]() Then we set up the position of the 3D camera, in _camX and _camY. Var _projMat = matrix_build_projection_perspective_fov(camFov, camAsp, 3, 30000) įirst, we get the width and the height of our camera, in _camW and _camH. Var _viewMat = matrix_build_lookat(_camX, _camY, camDist, _camX, _camY, 0, 0, 1, 0) Var _camY = camera_get_view_y(camera) + _camH / 2 ![]() Var _camX = camera_get_view_x(camera) + _camW / 2 Var _camH = camera_get_view_height(camera) Var _camW = camera_get_view_width(camera) Why Draw Begin, you ask? Because it runs before the Draw events, and the 3D camera needs to be updated before anything else is drawn. Now the magic will happen in the Draw Begin event.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |