VerdeBoss
Member
So I was trying to achieve a 3d scrolling background floor however I have stumbled across this problem where I try to apply a 3d on a surface, it still looks flat. I have tried ways to manuever around this problem, but little to no avail.
GML:
if !surface_exists(floor)
floor = surface_create( room_width, room_height );
surface_set_target(floor);
draw_clear_alpha( c_black, 0 );
draw_set_color(c_white);
d3d_start();
d3d_set_perspective(1);
texture_set_interpolation(1);
d3d_set_projection_ext(0, 0, 512, -0.00, -0.39, 332.00, 0, 0, 1, 45, 3.60, 1, 3200);
d3d_draw_floor(-room_width, (room_height / 2), 0, room_width, (room_height + 32), 0, background_get_texture(tex_floor), room_height / 32, 1);
d3d_end();
surface_reset_target();
draw_surface( floor, 0, 0);
texture_set_interpolation(0);