You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using CloudCompare and Potree.exe in order to load multiple ply files into one LAS file and then convert it to potree format.
I have made a small modification on the fragment shader in order to be able to gpu pick the positions using vPosition that in the github files is only on the fragment shader and not in the vertex
basicallyI set in the vertexShader vPosition = position and gl_FragColor = vPosition on the fragmentShader.
I get the coordinates but they are displaced. I guess it is related to point organization?
The script I am using to convert files is this:
rem set OPENSSL_CONF=
set PATH=E:\AIRMOV3D\Sotfware\devel\CloudCompare_v2.12.alpha_bin_x64;E:\AIRMOV3D\Sotfware\Devel\PotreeConverter_2.0_windows_x64;%PATH%
rem echo *********************************************************************************
rem echo * start of ply2nxz.bat
rem echo * start of %0 %1 %2 %3 %4
rem echo *********************************************************************************
set cmdFolder=E:\AIRMOV3D\Code\Devel\cmd\
set inFolder=%1
set outFolder=%2
set format=%3
set format2=LAS
set base=%~n2
echo infile: %inFile%
echo outFolder: %outFolder%
echo base: %base%
echo format: %format%
echo "Step 1 --> convert to LAS"
rem call CloudCompare.exe -SILENT -O %inFolder%\%inFile% -AUTO_SAVE OFF -C_EXPORT_FMT %format2% -SAVE_CLOUDS FILE %outFolder%\%base%.%format%
rem SETLOCAL EnableDelayedExpansion
cd /D %inFolder%
set _filelist=
for /f "delims=|" %%f in ('dir /b "*.ply"') do (
set "_filelist=!_filelist! -O %%f"
)
set _filelist=%_filelist:,,=%
echo %_filelist% > filelist.txt
call CloudCompare.exe -silent %_filelist% -LOG_FILE .\log.txt -AUTO_SAVE off -MERGE_CLOUDS -C_EXPORT_FMT %format2% -SAVE_CLOUDS FILE %outFolder%\A400M.%format%
cd /D %cmdFolder%
rem PotreeConverter.exe %outFolder%\%base%.%format% -o %outFolder% --overwrite --output-format %format%
echo "Step 2 --> convert to POTREE"
:wait
if not exist "%outFolder%\A400M.%format%" (
echo "waiting..."
timeout /t 1 /nobreak > nul
goto wait
)
rem DIR "%outFolder%\%base%.%format%"
echo PotreeConverter.exe %outFolder%\A400M.%format% -o %outFolder% --overwrite -p myHomePage
call E:\AIRMOV3D\Sotfware\Devel\PotreeConverter_2.0_windows_x64\PotreeConverter.exe %outFolder%\A400M.%format% -o %outFolder%
echo "End"
Is there any way to get the original coordinates when gpu picking?
You want the original coordinates before any transformation correct?
What you can do is to raycast the scene and you will get both the position in world coordinates as well as the geometry data containing the raw point data.
Mind that after conversion point data might suffer some changes (rounding & quantization).
Hi
I am using CloudCompare and Potree.exe in order to load multiple ply files into one LAS file and then convert it to potree format.
I have made a small modification on the fragment shader in order to be able to gpu pick the positions using vPosition that in the github files is only on the fragment shader and not in the vertex
basicallyI set in the vertexShader vPosition = position and gl_FragColor = vPosition on the fragmentShader.
I get the coordinates but they are displaced. I guess it is related to point organization?
The script I am using to convert files is this:
Is there any way to get the original coordinates when gpu picking?
Here the function I use to gpupick
Best regards
The text was updated successfully, but these errors were encountered: