C
Christopher Rosa
Guest
I'm trying to draw a sprite behind a 3d object I can't figure it out, I found out how to draw a sprite behind all 3d objects but the clouds in the background is also a 3d ellipsoid so that wont work in this case. i draw the sprite as a 3d wall but i'd rather it be a sprite so all of the pixels are perfect because currently there some strange pixel placement because it's 3d instead of a sprite heres my code :
GML:
draw_set_alpha_test(true)
draw_set_alpha_test_ref_value(40)
d3d_transform_add_rotation_z(90);
d3d_transform_add_translation(x, y, z)
d3d_draw_wall(0,-1,1,0,1,-1,sprite_get_texture(spr_Emerald3dShine,0),1,1);
d3d_transform_set_identity();
draw_set_color(c_white);
d3d_transform_set_scaling(0.05,0.05,0.05);
d3d_transform_add_rotation_z(z+a);
d3d_transform_add_translation(x,y,z);
d3d_model_draw(Emerald_3d,0,0,0,sprite_get_texture(spr_Emerald3d_Tex,Emerald_3dAnim))
d3d_transform_set_identity();