Photo Match + Blender

I’m interested in photographic reconstruction, and have used SketchUp’s Photo Match utility. I would like to import the view or camera transform and other details into Blender to continue working on the model.

So far I have come up with this:
Exporting the Face Me components using the Kerkythea renderer plugin generates and XML file with the camera transform.

Is there a way to manually input this data into a camera in Blender, or is there a photomatch method in Blender that I could use?

Many thanks,


<Object Identifier="./Cameras/## Current View ##" Label="Pinhole Camera" Name="## Current View ##" Type="Camera">
<Parameter Name="Focal Length" Type="Real" Value="1.8946" />
<Parameter Name="Resolution" Type="String" Value="1024x668"/>
<Parameter Name="Frame" Type="Transform" Value="2.5150 -0.0078 -0.3553 0.8551
0.2944 -1.3767 2.1142 -3.6542
-0.1991 -2.1345 -1.3622 3.0067
"/>

I’ve been using GSU (free) alongside Blender lately. I’m sure you’ve exported to Google Earth 4 .kmz and extracted the .dae only to find it does not contain lens data. However, I’ve found the position and rotation to be correct so all I’ve had to do is dial in the lens until it looks right (after loading the original photomatched image into the background.)

I think the closest tool we have for using within Blender is the Camera Match script (I’ve not yet used this.) http://blendpolis.de/f/viewtopic.php?p=224897

If you have some success you should post your results.

The only sensible data I get relating to the camera is this:


            <LookAt>
                <longitude>-105.2829898444042</longitude>
                <latitude>40.01696710169836</latitude>
                <altitude>3.00672051622235</altitude>
                <range>4.996912808116684</range>
                <tilt>57.5673</tilt>
                <heading>350.459</heading>
            </LookAt>

(Apologies to Moderator if this appears as a cross-post. A previous thread has not appeared in the forum, which may have been an error on my part).

Does anyone know of a reliable method of converting SketchUp Camera’s to Blender types using the SU:Camera API: http://code.google.com/apis/sketchup/docs/developers_guide/index.html or something similar?

Thanks.