1. Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice
  2. NOTICE: We will be applying a Xenforo update on Tuesday 25th of February. This means that from approximately 10:00 to 14:00 BST the forums will be offline (or possibly longer). Sorry for the inconvenience! Official Announcement here.

Job Offer - Programmer {PAID} 3D programmer

Discussion in 'Collaboration' started by cliftonbazaar, Feb 10, 2020.

Tags:
  1. cliftonbazaar

    cliftonbazaar Member

    Joined:
    Dec 15, 2019
    Posts:
    25
    Need a simple script for a 3D aspect of a game I am starting; note that this will be SIMPLE for someone who has programmed in 3D in GMS2.

    I have made a dungeon crawler in 3D in GMS1.4 but when it was imported to GMS2 the compatibility scripts confused me so I just want it started again.

    Please contact me with any 3D work you have previously done in GMS2.
     
  2. Joe Ellis

    Joe Ellis Member

    Joined:
    Aug 30, 2016
    Posts:
    1,107
    You just need to set the view & projection matrices abit more manually:

    Code:
    //in create event
    
    global.projection_matrix = matrix_build_projection_perspective_fov(60, screen_width \ screen_height, 1, 10000)
    
    //in step event
    global.view_matrix = matrix_build_lookat(global.view_x, global.view_y, global.view_z, global.view_x2, global.view_y2, global.view_z2, 0, 0, -1)
    
    //in draw event
    
    matrix_set(matrix_view, global.view_matrix)
    matrix_set(matrix_projection, global.projection_matrix)
    
    //then draw stuff
     

Share This Page