Hi, I’m currently working on RPG games using pre-rendered BG like old JRPG in PS1; FF, Dragoon, Chrono Cross, etc.
I encounter a problem as to how to pan the camera to follow character movement. The camera stays on certain position to keep the pre-rendered BG perspective match the colliders, only pan around to follow character.
This is what I want to achieve: Final Fantasy 9 Gameplay Walkthrough Part 1 - Tantalus and Vivi Arrive in Alexandria (PS3) - YouTube
I’ve tried several methods:
- OffsetVanishingPoint : this is almost perfect except I can’t convert player position to projection matrix of the camera, not so feasible.
- This answer : is using GUITexture which is not really good technique because it needs huge resolution to keep the quality, also I don’t really see how to pan around the GUI to track player movement using this technique.
- Right now, I use RenderTexture to capture all 3d colliders and background, and put them into one plane with RenderTexture’s material attached to it, so I can move around the camera looking straight into this plane without making any perspective mismatch. But then again, I don’t know how to convert my real 3d character’s world position to the RenderTexture’s position.
Any idea how can I solve this? I’ve been looking workarounds since forever and can’t really seem to find the right solution.
Thanks.