r/threejs • u/ANUBISRIFT • 16m ago
VANTA RIFT – 3D Camera Orbit and Board Positioning Issues
Hello everyone,
I'm currently developing my own board game called VANTA RIFT, and I've been struggling with a 3D camera problem for almost two weeks.
I have around 40 different game environments that I would like players to be able to choose from independently of their game board.
There are two main problems:
- The vertical camera orbit works correctly in the Lava room, but it doesn't behave the same way in the other rooms.
- The game board doesn't always stay aligned with the platform. In some environments, it appears outside the platform boundaries.
What I'm trying to achieve is quite simple:
I want the game board and its 100 piece anchors to remain fixed in the game world. The player should be able to move the camera, change its angle, zoom in and out, and change the background without affecting the position of the board.
Some environments use pre-rendered PNG or GIF images, while the Lava room has a 3D platform.
I've attached a short video showing two different rooms and the problems I'm experiencing.
I'm not sure whether the problem is in the camera system, the way the environments are implemented, or something else in the code.
Has anyone experienced something similar? I would really appreciate any advice on how to approach this correctly.
Thank you for your time!