Closed hokiespurs closed 6 years ago
|-- http://research.engr.oregonstate.edu/lidar/pointcloud/*DATANAME*
|-- index.html
|-- assets
| |-- cameras.js
| |-- cloud.js
| |-- sources.json
| |-- 01_IMAGES
| | |-- all undistorted images
| |-- 02_THUMBNAILS
| | |-- all thumbnail images
| |-- 03_POSES
| | |-- opk.txt
| |-- 04_POINTCLOUD
| | |-- data.las
| |-- 05_POTREEDATA
| |-- potree organized data structure
|-- css
| |-- main.css
|-- doc
| |-- img
|-- js
| |-- potreepointcloud.js
| |-- sfmcameras.js
|-- libs
|-- all javascript and css libraries
|-- githubname
|-- index.html
|-- assets
| |-- cameras.js
| |-- cloud.js
| |-- sources.json
|-- css
| |-- main.css
|-- doc
| |-- img
|-- js
| |-- potreepointcloud.js
| |-- sfmcameras.js
|-- libs
|-- all javascript and css library dependencies
let measuringTool = new Potree.MeasuringTool(viewer);
let measurement = measuringTool.startInsertion({
showDistances: false,
showAngles: true,
showArea: false,
closed: true,
maxMarkers: 3,
name: 'Angle'});
1) If images have duplicate names, rename them using the following script in the console
chunk = PhotoScan.app.document.chunk
i=0
for camera in chunk.cameras:
camera.label='Undist_' + str(i).zfill(4) + '.JPG'
i=i+1
2) File -> Export -> Undistort Photos
{filename}.{ext}
with {camera}
in the GUI
3) File -> Export -> Cameras as omega phi kappa
into 03_POSES/opk.txt' 4) Tools -> Camera Calibration -> Calibrated -> Saveas ->
03_POSES/camcal.xml`
5) Shrink Image to make thumbnail, and resize the image so its a power of 201_IMAGES
, then run shrinkImages.m
SMALLSIZE
and BIGSIZE
depending on preference
6) Convert OPK into RPY and save as javascript file convertOPK2RPY.m
FNAME = 'G:\www_lidar\pointcloud\divicarina\assets\03_POSES\opk.txt';
IMAGELOCATION = 'http://research.engr.oregonstate.edu/lidar/pointcloud/divicarina/assets/';
FOCAL = 3093.95123;
IMAGEDIM = [4000 3000];
7) Edit index.html to change title, attribution, logos, and info
8) Process Data with PotreeConverter into 05_POTREEDATA
9) Edit cloud.js
so the full filepath is in there
{
"version": "1.7",
"octreeDir": "data",
"projection": "+proj=utm +zone=20 +ellps=GRS80 +datum=NAD83 +units=m +no_defs",
"points": 26829344,
...
{
"version": "1.7",
"octreeDir": "http://research.engr.oregonstate.edu/lidar/pointcloud/solarpanels/assets/05_POTREEDATA/pointclouds/index/data",
"projection": "+proj=utm +zone=20 +ellps=GRS80 +datum=NAD83 +units=m +no_defs",
"points": 26829344,
...
10) Add a file .htaccess
to the assets
folder
CheckSpelling Off
Header set Access-Control-Allow-Origin "*"
scene.pointclouds.forEach( pc => pc.material.pointColorType = Potree.PointColorType.RGB );
scene.pointclouds.forEach( pc => pc.material.pointColorType = Potree.PointColorType.ELEVATION );
scene.pointclouds.forEach( pc => pc.material.pointColorType = Potree.PointColorType.RGB_HEIGHT );
viewer.scene.pointclouds[0].material.elevationRange = [minZ, maxZ];
viewer.scene.pointclouds[0].material.weightElevation = weightZ;
viewer.scene.pointclouds[0].material.weightRGB = weightRGB;
viewer.scene.pointclouds[0].material.elevationRange
LAYOUT
- map, toolbar, 3d scene
IMAGE PYRAMIDS
- image pyramids represent where an image was taken
SIMPLIFY THE LAYOUT
- toggle images
- toggle map
NAVIGATION
- Scroll Zoom
- Left Mouse to Orbit
- Right Mouse to Translate
- Double click to zoom to a point
NAVIGATION TO LOOK-THROUGH
- Two ways to enter pyramid mode
1) Click pyramid
2) Click Arrow Key to get the previous or next image
NAVIGATION IN LOOK-THROUGH MODE
- Left mouse looks around
- Scroll wheel zooms
- Right mouse translates and exits the view
MAP LAYOUT
- blue is current camera youre looking through
- orange is the rendering camera
- dot is for rendering camera position
MEASURE BUTTONS
APPEARANCE TOOLS
DOWNLOAD BUTTON
consolidated into wiki and readme.md
potree_map
toggle button