hlrs-vis / covise

Collaborative Visualization and Simulation Environment, OpenCOVER and OddLOT
http://www.hlrs.de/covise/
186 stars 88 forks source link

Could oddlot load points #83

Closed zqian4321 closed 1 year ago

zqian4321 commented 1 year ago

I want to know whether oddlot supports load .txt file only containts points(xyz or xyzrgb).

uwewoessner commented 1 year ago

neighter of the two, OddLot can import Intermap Road files, csv tables of lat, lon, height tripples, car maker road files and OpenStreetMap files. Did you mean OpenCOVER and it's PointCloud plugin? This can read and render xyzrgb files.

zqian4321 commented 1 year ago

Ok, got it. Is there Oddlot`s PointCloud plugin?

uwewoessner commented 1 year ago

OddLot does not support PointCloulds so far. What you could do is use the OpenCOVER link. You could load the PointCloud in OpenCOVER and then link Oddlot to OpenCOVER. This would render the PointCloud as background in Oddlot, so that you can model a street according to the pointcloud. The easiest way to do that is to convert the xyz or pts or ptx file to .ptsb with the PointConvert Application. PointSort can then be used to improve Performance of rendering the ptsb file. Then load the ptsb file in OpenCOVER and load the OddlotLink plugin: opencover test.ptsb opencover://plugin/OddlotLink

zqian4321 commented 1 year ago

OK, much thanks!

zqian4321 commented 1 year ago

Is there any tutorials of how to load the PointCloud in OpenCOVER and then link Oddlot to OpenCOVER. It seems that there is few tutorials about this.

uwewoessner commented 1 year ago

No, there is no totorial about this topic but I can help if you have specific questions.

zqian4321 commented 1 year ago

I have installed the latest covise in Windows. But when i open .ply file in OpenCover, it seems nothing happened. So how to load and render PointCloulds. By the way, i find that ODDLot could import CSV Road, what is the format of CSV Road?

uwewoessner commented 1 year ago

OpenCOVER can't load pointclouds in ply format, only polygons. You can convert your ply file to .e57 (or ptx or pts) then you can load the pointcloud.

Regarding CSV files: it is a simple road centerline in lat; lon; alt; ProjectWidget::importCSVRoadFile(const QString &fileName) int num = sscanf(line.toUtf8(), "%lf; %lf; %lf", &longitude, &latitude, &alt);

Regards, Uwe

zqian4321 commented 1 year ago

Thank you for your patient help. I open 111.pts in opencover, it still seems that nothing happened. The covise console outputs as follow:

PlugIn.PointCloud: call PointCloudInteractor() PlugIn.PointCloud: call PointCloudInteractor() ui::Owner: invalid name C:/Users/ASUS/Desktop/111.pts failed to get line Total num of points is 1785790 failed 2 to get line Total num of valid points is 1785790 closing the file avg fps: 0.0548246, min fps: 0.0548246

Why is this? Was .pts file loaded successful?

uwewoessner commented 1 year ago

Do you have time for a chat? You can reach me here: https://unistuttgart.webex.com/meet/uwe.woessner