Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - ivan.mdn

Pages: [1]
Python and Java API / Model rotated when exporting as .obj
« on: October 31, 2014, 03:53:51 PM »
I'm trying to export a model through the python API using the following code:
Code: [Select]
crs = PhotoScan.CoordinateSystem('LOCAL_CS["Local CS",LOCAL_DATUM["Local Datum",0],UNIT["metre",1]]')
chunk.exportModel(arqExpModel, format='obj',projection=crs):
But when I try to open the .obj file on another 3d software (like Blender) is appears rotated 90ยบ around the x axis. How can i fix this? It only happens with the .obj format, but unfortunately I can not use a different one on this particular project.

Python and Java API / Marker projections
« on: October 22, 2014, 12:21:35 AM »
I am creating a marker using a python script and setting its projection on one of the photos using the following:
Code: [Select]
chunk.markers[j].projections[chunk.cameras[i]] = (x,y)I would like to see the marker on the 3d model (already generated) but i dont have the coordinates of the marker on the others photos. Is there a way to generate them automatically through the python api?
I am asking this because when I add the marker through the gui (right click on the photo -> create marker) it automatically projects the marker on the others photos.

General / Coordinates of a point from the 2d photo on the 3d model
« on: October 17, 2014, 09:39:05 PM »
Is there a tool to get the coordinates from the model (x,y,z) given a coordinate (x,y) from one of the 2d photos used to generate it?

Pages: [1]