Exporting cameras to blender
Has anyone managed to reliably export daz cameras to blender? The only way I can see to do it is to use .fbx which sort of works, but the focal length or sensor size is wrong. For example, a daz camera with 120mm focal length and 36mm frame width at 1800x1200; I exported it to .fbx and then imported that into blender, which gave me a camera with the correct position/orientation and correct focal length value, but the sensor width came in as 20.7264mm and the lineup is wrong. If I set the sensor width to 36mm to match the daz setting, the lineup is still wrong. However, if I then set the focal length to 80mm the scene lines up perfectly. Am I missing something here? Or is there a bug in the daz .fbx exporter? Or is the focal length in daz just completely wrong? I've tried with different .fbx versions and different blender versions and still have this issue.
Comments
Alternatively, in the above example, a blender setting of 120mm focal length and sensor width of 54mm also gives the correct lineup.
diffeomorphic can correcty import daz cameras
DDI ~
Thanks, I tried installing diffeomorphic but it doesn't work at all for me in blender. I just get a blank UI, and a missing "DAZ Importer" tab. I tried v1.7.0 and v1.7.1 and blender v2.93 and v3.3 and get the same issue. I'm sure I've done something wrong, but the diffeomorphic install documentation seems very out of date and the website is extremely disorienting to navigate. I don't see any issue tracker on the bitbucker so I have no idea how to proceed. Any suggestions?
Get latest ver. from here - https://bitbucket.org/Diffeomorphic/import_daz/downloads/
Install and activate the add-on in Blender. Remember to copy 'to_daz_studio' - Scripts folder from ZIP file to your Daz Library.
Yes, it's already installed and activated, but there is only one tab showing, and it's empty. The installation instructions say to install the blender plugin from the .zip file, but the .zip file contains all three components (blender plugin, daz plugin, and MHX runtime) as unzipped folders. I improvised by zipping up just the blender plugin and installing from that, which resulted in the broken plugin as shown in the attached image above. I don't know what I am missing.
-- EDIT: Never mind, I got it to work by just unzipping the whole thing into the AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons folder.
If it's helpful to others, I found the key piece of information in the diffeomorphic code. To have your .fbx camera lined up correctly in Blender, you need to make sure you have:
* The same render dimensions as the DAZ scene.
* The same focal length.
* "Sensor Fit" must be set to "Vertical" and the sensor "Height" set to the same value as "Frame Width" in the DAZ scene.