Forum

Author Topic: Potree Generation Information  (Read 8449 times)

s093294

  • Newbie
  • *
  • Posts: 23
    • View Profile
Potree Generation Information
« on: March 07, 2015, 09:43:19 PM »
I was not 100% sure where to post this question. Might not be directly related to python scripting but more general scripting.

I was amazed by the potree exports of photoscan and I have been trying to generate potree files myself (https://github.com/potree/potree) but have not been able to get similar details from my exported point clouds from photoscan.

Are you using the same tools to generate them as on the github? Would you be able to share alittle input on what kind of arguments is needed to get similar detailed results as coming out of photoscan directly.

Can we extract them from python also?

BarryReid

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Potree Generation Information
« Reply #1 on: May 14, 2015, 09:41:47 AM »
I would also like to know how to export potree in python

Dmitry Semyonov

  • Agisoft Technical Support
  • Full Member
  • *****
  • Posts: 200
    • View Profile
Re: Potree Generation Information
« Reply #2 on: May 14, 2015, 12:10:50 PM »
PhotoScan potree exporter is based on the following paper:
http://potree.org/downloads/converter_documentation.pdf
It is a built in PhotoScan feature, and not just a Python extension.

While the general tree construction approach is the same as suggested by original author, some implementation details might be different. Still I believe that PotreeConverter should provide similar outputs to the ones obtained in PhotoScan if octree depth and spacing are properly specified.

For dense point clouds exports we recommend to set spacing to the ground sampling resolution multiplied by the quality factor (1 for Ultra High, 2 for High, 4 for Medium, etc). Octree depth should be set to a minimum value, which provides specified spacing on the finest octree level.
With best regards,
Dmitry Semyonov
Agisoft

BarryReid

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Potree Generation Information
« Reply #3 on: May 15, 2015, 02:52:43 AM »
I am hitting the problem where the export from the GUI and the export from the Python API are not at all the same.

The GUI export has a folder in the zip file called "data" and is full of files that are then referenced in the JS file. However when you do an export using the Python API, you get no "data" folder in the zip file and the JS file has completely different data in it, only the structure is the same.

My Steps:
1. Open project file
2. Click "File", "Export Points", Type name and select "Potree" as file type, Click "Save"
3. Make sure "Dense cloud" is selected, Click "OK"
4. Export should start

5. Run the following line in the CLI "PhotoScan.app.document.chunk.exportPoints("/location/to/my/export/potree.zip", format="potree", source=PhotoScan.PointsSource.DensePoints)"

6. Compare outputs and they are not the same.

It seems that the script output is not generating any data, its kind of just a blank JS potree file.

Can anyone tell me what I might be missing or why this is happening.

Dmitry Semyonov

  • Agisoft Technical Support
  • Full Member
  • *****
  • Posts: 200
    • View Profile
Re: Potree Generation Information
« Reply #4 on: May 15, 2015, 01:18:14 PM »
Hello Barry,

We just tried to export potree from Python and it worked fine.

Are you using the latest PhotoScan version (1.1.6)?
What operating system are you using?
With best regards,
Dmitry Semyonov
Agisoft

BarryReid

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Potree Generation Information
« Reply #5 on: May 16, 2015, 01:14:35 AM »
Hi, I'm using version 1.1.6 on Ubuntu 15.04

BarryReid

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Potree Generation Information
« Reply #6 on: May 20, 2015, 02:46:13 AM »
Any Ideas? Still cat get it to work.

PhotoScan.app.document.chunk.exportPoints(location + projectName + "_potree.zip", format="potree", source=PhotoScan.DensePoints)

Exports pretty much a blank potree zip file with one js file in it and no data.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14854
    • View Profile
Re: Potree Generation Information
« Reply #7 on: May 20, 2015, 01:32:01 PM »
Hello Barry,

We've checked and compared GUI and Python based exports to potree on several OS variations and have not yet encountered any difference.

We've managed to get empty zip with a single js file, but only after removing all of the dense cloud points.
Best regards,
Alexey Pasumansky,
Agisoft LLC