Jump to content
Sign in to follow this  
sant0s81

From LiDAR (3D laser scanning) to UE4 (Game Engine)

Recommended Posts

Posted (edited)

Hi,
 

goal is to create a landscape based on LiDAR and use that in UE4 to finaly get a fulldome projection for a planetarium.
 

LiDAR files (scanned by GEO departments of a country for example) come in many cases with lots of usefull information like the position of vegetation, buildings, water and of course the ground.

https://en.wikipedia.org/wiki/Lidar
https://geodetics.com/lidar-point-clouds/

These classifications than can be used to feed heightfields with masks and finaly scatter vegetation on the "correct" position.



The screenshot shows an imported *.*las file from Slovenia with 5 different classes.
Right now the website seems to be down.
Anyway, here is a link that shows how to create DEMs from these LiDAR files - and hopefully the website will be back online soon:
http://paleoseismicity.org/tutorial-how-to-make-a-dem-from-the-slovenian-lidar-data/
http://gis.arso.gov.si/evode/profile.aspx?id=atlas_voda_Lidar@Arso&culture=en-US (currently offline )

LiDAR_point_class.thumb.jpg.da01be2bf16a7cbabece6d2be83c0206.jpg

 

 

The next screenshot shows the progress from LiDAR inside Houidin with ground and vegetation class, converted to Heightfield with scattered instances based on the LiDAR vegetation class points and finaly imported into UE4.

lidar_hf_ue4.thumb.jpg.d759ffce3f3fb36e784d82ae49abe012.jpg

 

And here the world map of that area (the projection and date are different, so just in case you wonder why it looks a little bit different, see https://en.wikipedia.org/wiki/Map_projection for more information about map projection):

bing_maps.thumb.jpg.c0b60da6389706245f6dc07e20bda04e.jpg

 

Here is a first try of importing a LiDAR based HDA into UE4.
There is VERY little erosion to keep the main shape of the LiDAR terrain, but you can see how detailed the shape of the landscape is just out of the box.
The trees are based on real positions (depends on the date the LiDAR was scanned of course).
You can even see streets/pathes and fundaments of the buildings just to show, how detailed LiDAR can be.
Its one heightfield with max resolution  8129 x 8129 (see the UE4 manual for landscapes: https://www.sidefx.com/docs/unreal/_landscapes.html#LandscapeSize ).
Depending on the points of the LiDAR file you could tile the heightfield to get even more details.

LiDAR_inside_UE4.thumb.jpg.2bd284118b1b49f675ede4ae3d644b20.jpg

 

And finaly a video running through the forest (its also from the Slovenia LiDAR files, but a part with way more forest since we made an animation with the GPS data of bears. The position is here: Google maps position of the UE Forest )
For fun I definitly wanna build in some animals, probably bears, just to feel the fear of a dark forest (and no, these animals are awesome and no danger to us, so dont be afraid - the chance to meet one of these beautiful animals is extremly rare and we are not part of there dinner plan). :D


Sry for jumping so much in the video, but since there are many micro elevations, the character stucks sometimes ( and to much quake3 in the past :P ).
To avoid that, you could use for example a HF resample and smooth out these little obstacles.

https://youtu.be/i_3SaAJ8lsM

 

I try to keep that post updated with my progress.
 

Cheers and thanks for all the amazing help here.

sant0s

 

Edited by sant0s81
  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)

Some more LiDAR tests in UE4.
Gonna write down some experience over the weekend.
Houdini to UE4 rocks, its awesome - but I was facing lots of problems and I think also some bugs that are quite annoying.

 

screen_01.thumb.jpg.bea49a7c3255e4bf5621aa63256e94c1.jpg

 

screen_02.thumb.jpg.cf1f6f4a8952564a5670162b303958b6.jpg

 

Thats a shot facing to the village Luetzeroda near Jena based on LiDAR + historical maps.
The Village is procedural but all the streets are based on the historical data.
With a cheap village generator (WIP, but works really nice for some quick background villages, here is the link: Village Generator ) I scattered points along the streets.
In UE4 the instances than where exchaged with building assets.
Nice is, that you only need one scatter sop and in UE4 you can add different buildings on the same scatter to get some randomization.
 

ScreenShot00004.thumb.jpg.7fc735d9382c29e2e4c2f7e4faaa3da0.jpg

Edited by sant0s81

Share this post


Link to post
Share on other sites
Posted (edited)

Still all in preview mode (light/shadow/models in bad quality), but based on real tree position (from LiDAR) and than scattered more plants around.

forest_jena.thumb.jpg.8308ec5e3133926d32331fa906b4aad0.jpg

Edited by sant0s81
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×