Posted 08 August 2012 - 07:33 PM
I've tried rotating along the z axis' by varying amounts based on camera position; it somewhat fixes the problem, but the sprites then begin to skew vertically.
I've tried turning off Perspective, it works, but other objects that I wish to have perspective (Walls, floor textures) will no longer work or rotate with the camera.
Is there a way to fix or correct the skewing in a perspective angled view? Or will I have to live with it or find a different way of displaying the game?
Posted 17 August 2012 - 08:44 PM
d3d_set_projection (0,0,0, 1,0,0, 0,0,1);
d3d_transform_add_rotation_z (-point_direction (camx,camy, charx,chary));
d3d_transform_add_skew_x (0, -(charz-camz)/point_distance (camx,camy, charx,chary));
See my signature for d3d_transform_add_skew_x.
Posted 21 August 2012 - 01:21 AM
d3d_transform_add_rotation_x(90 + point_direction(0, 0, point_distance(x, y, camx camy), z - camz)) d3d_transform_add_rotation_z(point_direction(camx, camy, x, y) - 90) d3d_transform_add_translation(x, y, z) draw_sprite(sprite, image_index, 0, 0) d3d_set_identity()
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users