aardgoose / CaveView.js

Web native 3d cave survey viewer
https://aardgoose.github.io/CaveView.js/
MIT License
44 stars 11 forks source link

Station comments #16

Open vldgeorgiev opened 5 years ago

vldgeorgiev commented 5 years ago

Is there an option to show station comments, like the one that are shown in the Loch viewer for .lox files? There is a way to show entrances, or to show all station names, but I didn't see if it is possible to display station comments. This is very useful for looking at complex caves and identifying which gallery is which. If it is not available, would it be hard to implement?

Here is what I mean in Loch. image

aardgoose commented 5 years ago

Hi,

Not currently.

Are those station comments or survey titles, I can add both.

Could you send me an example. I would need to add better character set support too.

vldgeorgiev commented 5 years ago

I meant the station comments. The Therion syntax is below. Probably Survex uses the same or very similar one. The syntax in the source files is station <station name> "<station comment>". In the ones below the comments are in Cyrillic. entrance marks the station as an entrance, but I think you already show these.

  centerline
    date 2017.05.25 

    station V1.32 "Ел Сагуаро" entrance
    station V1.0 "Първо разклонение"

    units length meters
    units compass clino degrees
    data normal from to length compass clino
    V1.0 V1.1 4.62 40.6 4.4
    V1.1 - 1.96 347.9 14.3
    V1.1 - 0.78 111.2 25.6
    V1.1 - 0.76 17.1 80.9
    V1.1 - 0.46 291.2 -86.2
    V1.1 V1.2 3.33 42.1 15.6
    V1.2 - 0.48 325.1 -15.1
    V1.2 - 0.40 142.1 8.2

Here are sample LOX and 3D files produced with Therion that show some comments. The LOX one shows them for sure, but I don't know about the 3D. ElSaguaro_3D.zip

Let me know if you need any other samples.

aardgoose commented 5 years ago

Thanks for the example, it was very helpful.

This is what it looks like now.

I have used the ratio of stations with comments / total stations to automatically display comments at greater distances from the view point than stations with names only. I only display station names near the 'camera' , rather than all station names as Loch does, because it would probably stall or crash the web browser.

I've also corrected the text decoding from .lox files and added support for other alphabets, so Cyrillic text should display correctly. .3d files don't handle comments.

annotation 2019-02-04 203614

vldgeorgiev commented 5 years ago

This is exactly what I had in mind, thanks. I will test it with some caves. Btw, do you regularly update the fulldemo page? E.g. can I use it for testing.

aardgoose commented 5 years ago

I'll try to update it tomorrow, or at least a test copy.

damjang commented 2 years ago

I try to load ElSaguaro.lox file, but didn't find comments nor ability to enable it. Are comments supported in v2.4.0?

aardgoose commented 2 years ago

Hi, It should but was broken. Fix made for next version. Thanks for the report.