PanoCam importer (PCi)
Blender Addon:
PCi is a Blender Addon for generating PCA-PanoCams from JSON data.
The values for position and rotation can be used to perform simple mathematical operations and it is possible to change the order.
This should make it possible to create PanoCams with values from other programs.
The PanoCams can then be used with the PanoCamAdder to output the values for krpano, for example.
PCi JSON:
The JSON must have the following entries:
- pano = string (imagefile name)
- location = [number, number, number]
- rotation= [number, number, number]
Example:
[
{
"pano": "lorem.jpg",
"location": [
2.23532,
4.56765,
1.32
],
"rotation": [
-30.8666,
-0.0,
76.8967
]
},
{
"pano": "ipsum.jpg",
"location": [
2.4988,
3.06515,
1.32
],
"rotation": [
62.0424,
0.614835,
314.872
]
}
]
Display More
PCi-JSON Converter:
If you have image files, position and rotation data in CSV or JSON format, you can convert them into the required format using the online PCi-JSON converter.
How it works:
- Load in your 3D-model
- Load JSON: Click the Load JSON button to load a PCi JSON file. The buttons for generating the PanoCams appear as soon as valid data has been loaded.
- Degrees/Radians: In the rotation field, select whether the values are in degrees or radians.
- Optional:
- Change the order of the axes.
- Calculate with the values.
- Create PanoCam(s): You can generate individual panoramas or all at once. If the model is selected, the corresponding Pano_Material is assigned to the model. This allows you to quickly see whether the position and rotation values are correct. If a PanoCam already exists, only the position and rotation are updated for it.
Testing:
I have only tested the addon with Blender values so far, and of course it works as expected.
You will probably have to find out by trial and error how to place the PanoCams appropriately based on your data..
If you have found a way, you are welcome to share it here so that other users can also use it.
Tips:
- The Y and Z axes are often reversed.
- Or the axes run in the opposite direction. Then calculate “* -1”.
- Try +/- 90° around the vertical axis.
- If the model has a different size, multiply or divide the position values.
I think this is helpful for integrating panoramas, models and scans from other programs into Blender and Krpano.
If you notice a bug or wish for another feature, please let me know!
Get the PanoCam importer addon:
You can get the addon from Gumroad. You can determine the price yourself (enter “0” if you want it for free).
I wish you happy holidays and all the best for the coming year!
Best regards, Mische!