I have a simple 3D engine and I want to make a isometric(dimetric) game, but where tiles are not real 3D planes, but 2D images like this one:
As I understand this tile is drawn in dimetric 1:2 projection
But I can't get right camera angles in order to have view, where all given tiles would fit perfectly by pixel.
After reading this page
I've tried rotating camera relatively to itself by x=26.565deg y=45deg but that gave me bad result.
It's clearly visible, that tiles don't fit together nicely.
I've tried different value, by just handpicking them, and the closes one was x:30deg y:45deg angles.
But there is a problem with gaps between tiles. It maybe somehow related to problem, that I don't know how to calculate length of one tile edge in world space, currently when I put tiles in scene I space them by 45units, which also is a handpicked value.
You would ask, "Why do I try to do this in 3D engine?". I want to mix 2D tile and object sprites with simple 3D objects in one game. I've already did isometric terrain with 2D engine, where everything can be simply calculated and doesn't need to position a camera.
arctan(sin(45°))
\$\endgroup\$