Closed liuxi150 closed 2 months ago
The recent changes introduce a field of view (FOV) scaling ratio to the camera components across various parts of the codebase. This enhancement adds greater flexibility and precision to camera manipulations by allowing for scalable adjustments to the camera's field of view. The updates span from camera perspective calculations to scene updates, ensuring that this new parameter is consistently applied throughout relevant functionalities.
File Path | Change Summary |
---|---|
plugin-packages/model/src/plugin/model-plugin.ts |
Added fovScaleRatio parameter to ModelPluginComponent ’s updateSceneCamera method. |
plugin-packages/model/src/runtime/camera.ts |
Introduced fovScaleRatio with default value and updated several methods to incorporate it in PCamera . |
plugin-packages/model/src/runtime/scene.ts |
Modified PSceneManager ’s updateDefaultCamera to accept and pass fovScaleRatio . |
In the field of virtual sight,
Our cameras now take flight,
With a scale ratio so grand,
They view more of the land,
Precision in every glance,
Enhancing the scene’s great dance.
🌟📸🖥️
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
fovScaleRatio
parameter to enhance camera field-of-view adjustments.Improvements