Lidar Data - Batch import .laz files

   2598   8   1
User Avatar
Member
56 posts
Joined: March 2022
Offline
Hello,

I need to import around 100 .laz files and I was wondering if there is a way to load them in all at once. I'd like to avoid having 100 lidar import nodes piping into a 1 merge node. It's time consuming and messy. See my image attached where I've made a start.

Is there a fast smart and clean way to do this?

Please let me know if you know!!

Thanks!

P.S if you have any other hot tips or LiDAR art reference please share them with me

Edited by R_Stewart - Nov. 10, 2022 04:39:44

Attachments:
LidarHoudini.JPG (905.1 KB)

User Avatar
Member
8535 posts
Joined: July 2007
Offline
you can use TOP Geometry SOP
then utilize TOPs to load geometry from all your files (File Pattern TOP -> Lidar Import SOP -> Geometry Import TOP)
just make sure you pass the geo as Geometry attributes rather than Files to avoid polluting your disk space

here is example loading all houdini's default .bgeo files
Edited by tamte - Nov. 10, 2022 12:09:15

Attachments:
ts_tops_merge_geometry_files.hipnc (115.1 KB)

Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
56 posts
Joined: March 2022
Offline
Hi Tamte,

I'm just coming back to this now.

Sorry I'm very new to TOPs, I might need my hand held a little bit on this one.

I tried swapping the path and the file type in the "Pattern" section of the filepattern1 node but it seems to have broken. I'm not sure what you mean about passing the geo as geometry attributes rather than Files. I played around with a few of the settings but I couldn't get it to work.

Any idea what I'm doing wrong?

Thanks!

I really appreciate your help.

Attachments:
OriginalFile.JPG (322.3 KB)
PathChangedToLidarFiles.JPG (161.8 KB)

User Avatar
Member
8535 posts
Joined: July 2007
Offline
the example I posted is loading standard bgeo files using File SOP
it was an example of a setup from technical point of view, and also I didnt have .laz files laying around

to make it work for .laz files your pattern should be fine, but you need to use Lidar Import SOP instead of File SOP
so replace this:
/obj/geo1/topgeometry1/sopnet1/file1
with a fresh Lidar Import
and put the same `@pdg_input`in the File parm and adjust other parms or the sopnet accordingly to however you want the lidar to be processed after loading before its merged with others
Edited by tamte - Feb. 5, 2023 22:08:10
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
159 posts
Joined: Feb. 2016
Offline
If you want every lidar live in the scene I would approach this a bit differently:
  1. Get the files with a `file pattern` TOP
  2. Store file paths on points in SOP's
  3. Create a for-each loop looping over all the top workitem points (Can be compiled for more speed? probably/maybe)
  4. Reference the file path from each point `points(-1, "filepath", 0)`
You'd just need to replace the file node with a lidar node
Edited by AslakKS - Feb. 6, 2023 03:33:14

Attachments:
hindie_kAfGDaFoLD.png (1.3 MB)
load_lots_of_pdg_files_v001.hiplc (152.9 KB)

User Avatar
Member
56 posts
Joined: March 2022
Offline
Thanks so much for the help guys, unfortunately I can't get it to work on either file.

There are a few parameters on the LiDAR node that I need to tweak so having on node to control all would be amazing.


I've uploaded 3 LiDAR files here [drive.google.com]




Sorry to be a pain! There are 100's of files I need to load and the numbers get a bit random so it's really hard for me.


Thanks again


RS
User Avatar
Member
8535 posts
Joined: July 2007
Offline
here is modified file to load .laz files



to edit your settings dive in here /obj/geo1/load_lidar_files
select one of the workitems on geometryimport node
then dive one more level into /obj/geo1/load_lidar_files/load_an_process_individual_files_here
and edit the parms on lidarimport1
Edited by tamte - Feb. 6, 2023 23:30:04

Attachments:
ts_tops_merge_laz_files.hipnc (151.8 KB)
ts_tops_merge_laz_files.gif (21.0 KB)

Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
56 posts
Joined: March 2022
Offline
Hi Tamte,

I really appreciate your efforts mate but unfortunately I can't get this to work on my end. I thought all I would need to do is swap the paths over and the files would load in. Can you see any issue with my file path?

I give up

Attachments:
Path.JPG (25.8 KB)

User Avatar
Member
8535 posts
Joined: July 2007
Offline
are you seeing errors or something?
maybe also look into TOPs in general, you may be missing having your Current Workitem selected when tweaking per workitem SOPnet or something similar

but outside of TOPnet it should cook all workitems automatically and output the merged geo
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links