Datky
Member
Howdy,
I'm currently doing a first-person game in GameMaker 1.4, and want to add lights to make it look better. The thing is the 3d view is drawn on a corner of the screen with a surface, I use the remaining space to drawp sprites(with the DrawGUI event). If I try to set lighting, the whole screen becomes dark. If I set lighting to false, well the light isn't working anymore.
The code in the obj_light is something like that :
If i put "d3d_set_lighting(false);" after that, there's no light in the room.
Has anyone here worked with 3d lighting ? Could you guys please help me ?
Thanks.
I'm currently doing a first-person game in GameMaker 1.4, and want to add lights to make it look better. The thing is the 3d view is drawn on a corner of the screen with a surface, I use the remaining space to drawp sprites(with the DrawGUI event). If I try to set lighting, the whole screen becomes dark. If I set lighting to false, well the light isn't working anymore.
The code in the obj_light is something like that :
Code:
d3d_set_lighting(true);
d3d_light_define_point("light1", x, y, z, 200, c_white);
d3d_light_enable("light1", true);
Has anyone here worked with 3d lighting ? Could you guys please help me ?
Thanks.