I’m currently working on a project that involves transferring scenes from Babylon.js to Blender, and I’m facing a bit of a challenge with accurately cloning camera settings from Babylon.js into Blender. I want to ensure that the camera’s position, rotation, field of view (FOV), and clipping planes are precisely replicated in Blender to maintain the same perspective and scene framing.
Here are the specific details and steps I’ve considered for this process:
Exporting Camera Data from Babylon.js: I understand that I need to get the camera’s properties from Babylon.js, such as position, rotation (or target if using a target camera), FOV, and near/far clipping planes. Is there a recommended method or script for exporting these properties efficiently?
Recreating the Camera in Blender: Given the exported properties, what’s the best approach to recreate the camera in Blender accurately? I’m familiar with Blender’s Python API but could use some advice on scripting this part, especially on converting rotation values correctly and adjusting for the different coordinate systems (Babylon.js uses a left-handed system, while Blender uses a right-handed system).
Adjustments and Considerations: Are there specific adjustments or considerations I should be aware of during this process, particularly regarding rotation conversion, coordinate system differences, and setting the FOV correctly in Blender?
I aim to automate as much of this process as possible to facilitate smooth transitions between Babylon.js and Blender in my workflow. If anyone has experience with this or can offer insights into the best practices for achieving an accurate camera clone, I would greatly appreciate your advice and examples.
The main issue I am facing is when I am trying to push camera data to Blender through the API, I cannot pass them in such a manner so they can get the render from the same angle direction. For more detail i am sharing my Json
I have attached the default camera in GLB. It is working fine, But the core issue I am facing is when I am changing the view in Babylon js and passing that data to Blender through the API to get the render it’s not working
I want to create an open-source library that can help to get real-time render from blender