• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM 3D models with lighting in a 2D environment?

D

DIYDamian

Guest
Hello. Is it possible to draw a 3d model with lighting in a 2d environment? What I'm imagining would work is that in the draw event, I enable d3d, draw the model, setup the light, then disable d3d. Is that correct?
 
F

Fishman1175

Guest
Yes, mixing 2D with 3D is possible. If you don’t want your 3D to be viewed with perspective then I’m not sure you even need to d3d_enable() before drawing. If you want perspective then you need to set a perspective projection for the 3D and an orthographic projection for the 2D.
 
Top