3D Q:views in 3d

Discussion in 'Programming' started by zendraw, Oct 11, 2017.

  1. zendraw

    zendraw Member

    Joined:
    Jun 20, 2016
    Posts:
    1,382
    so im fairly new with 3d and i was wondering can game maker have an orthagonal view or projection, while in 3d mode? like how it is in blender.
    [​IMG]
     
  2. The Sentient

    The Sentient Guest

    If you are good with Matrices, you can have any type of view that you can imagine.
     
  3. zendraw

    zendraw Member

    Joined:
    Jun 20, 2016
    Posts:
    1,382
    that rings no bells, but you can direct me to a source for me to check it out if its ok with you.
    but overall your sayng you cant do that with just using what game maker offers you?
     
  4. Ziphold

    Ziphold Member

    Joined:
    Jun 22, 2016
    Posts:
    103
  5. Binsk

    Binsk Member

    Joined:
    Jun 22, 2016
    Posts:
    650
    Not quite. While that is an ortho projection, GM limits it's usefulness.

    I think that this is more what is needed:
    d3d_set_perspective

    You can disable perspective rendering which should result in orthographic.
     
  6. zendraw

    zendraw Member

    Joined:
    Jun 20, 2016
    Posts:
    1,382
    so drom some testing, with what ziphold suggested, id have to calculate the rotations and etc to a specific angle. altho theyr flat, you have no 3d controll over the view.
    otherwise setting d3d set perspective doesnt seem to do anything, but the most close to the orthographic view from blend is just setting the angle to 45 in d3d set projection ext.
     
  7. zendraw

    zendraw Member

    Joined:
    Jun 20, 2016
    Posts:
    1,382
    so just to update, ive achived what i want by messing with the transform functions.
    these 2 create the desired effect for me
    Code:
        d3d_transform_set_rotation_axis(0, 0, 1, direction);
        d3d_transform_add_rotation_x(-45);
    basically they make the object rotate to the direction while being leaned back a bit.

    PS: this in combo with the ortho projection.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice