I’m currently having an issue trying to populate a LiDAR point cloud object with
new points at runtime. I couldn’t find any documentation on the ‘point’ object.
I created an example project four you. There are currently bugs with LiDAr or maybe some of the functions are intendend for another use I was not capable of to find out.
E.g.
InsertPoints or InsertPoint do add points but without color. Maybe you have to initialize the PointCloud again after that, but didn’t work
A imported PointCloud always told me about changes and had to remove everything or kept the points but they were then all over the place, without me changing anything. A “feature” I don’t like
You can not connect a multiply node to a MakeLidarPointCloudPoint node
So here is the project. 2 blueprints called BP_PointCloudV1 and BP_PointCloudV2. V1 lets you change a PointCloud with new points. V2 lets you create a totally new PointCloud.
EDIT: I am getting an error ‘provided bounds are incorrect X=999, Y=999, Z=0’
I’ve changed my code to match your object hierarchy and structure as much as possible.
I am now casting instead to a seperate actor that resembles the one provided in the file you gave me.
Hey @GIS_UE5 ,
sorry for replying so late. Do you have only points in the X Y plane? Because then the point cloud has no depth and that maybe causes the error? Did my example project work for you?
I used lidar point cloud actor. Created lidar from file, (restored original coordinates - optional) and then set point cloud component from imported point cloud.