Using two cameras to blend regular 2D orthographic with 3D isometric orthographic elements
Hi there!
First of all, please don't mind the ripped tileset from Prison Architect, they are just my personal placeholders.
The site doesn't allow more than two attachments, so please check out the images at Imgur
I'm currently trying to blend 2D (X/Y plane) and 3D models using two cameras.
MainCamera is a 2D orthographic camera with default settings and renders everything besides the car, which is an actual 3D model. To match the orientation of the sprite images, I need to render the car in an orthogonal mode with the camera looking down on it at an angle of around 30deg. I can't rotate the car itself to simulate the 30deg angle on the MainCamera that is looking straight, because it would break the car's display if I needed rotation on the X axis. The orthogonal camera for 3D objects is matching the MainCamera's properties (Scale, Position with Offset) to show the exact same area of the game.
Now, my problem is that whenever I move my main camera, the car seems to translate a bit further than the background. I put this down to the two camera frustums not aligning perfectly, as seen in images 5 and 6, but am unsure how to fix it.
Does any of you have any idea for how to manage situations like these?
Cheers Philipp
Your answer
Follow this Question
Related Questions
cinemachine 2d look-ahead problem in respawn 2 Answers
How to zoom out orthographic camera so that the parts that aren't UI blocked remain the same. 1 Answer
3D click and drag Camera Movement is shaking rapidly 0 Answers
Trying to make a 2D Panning Camera 0 Answers
Third person Camera rotation problem 2 Answers