Hi, I’m not much familier with threejs. I’m facing a problem now. I have a model I’ve loaded. The position of the camera is fixed with some values for this specific model. But what I want is to set dynamic camera position for different model. Suppose I have 2 models and I’m selecting a model from my react component. For model 1 I have fixed the position of the camera. But when I select model 2 the model and the camera position is looking horrible because the camera position was set for the model 1 and model 1 and 2 is different in height and width. How can I resolve this problem? I’m using react three fiber. Thanks
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
How to dynamically adjust the camera for different models? | 3 | 1584 | April 25, 2022 | |
How to update camera by giving a position | 0 | 546 | April 13, 2021 | |
Camera position not updating when animating | 1 | 1466 | February 6, 2022 | |
React Three fiber Camera Orientation ( Camera Controls ) | 0 | 301 | January 31, 2024 | |
How to dynamically adjust the camera in three js | 3 | 8215 | June 10, 2020 |