I believe the menu bar is linked to the existence of the file /build/terrain/tileSets.json. I grabbed a copy from the Full UI demo https://aardgoose.github.io/CaveView.js/terrain//tileSets.json Henry From: Therion [mailto:therion-bounces@speleo.sk] On Behalf Of Bill Gee via Therion Sent: 28 July 2017 03:04 To: therion@speleo.sk Cc: Bill Gee <bgee@campercaver.net>; Xavier Robert via Therion <therion@speleo.sk> Subject: Re: [Therion] CaveView a 3D web viewer Hi Xavier - I think I got it ... I downloaded the new ZIP file and exploded to my server, replacing all of the existing CaveView subdirectory. Note that this file does NOT contain the entire application. On initial start it gave the same error as you were getting. I am using Firefox running in Fedora 26. I modified the index.html file in the first line of the onload() function. The directory names in that line have slash characters both before and after. I removed the leading slash characters and now it works! The revised line looks like this: CV.UI.init( "scene", { terrainDirectory: "terrain/", surveyDirectory: "surveys/", home: "CaveView/" The leading slash characters were forcing absolute paths instead of relative paths. There is still a problem. I don't get the full user interface. I get a rendered cave map which I can rotate, spin and zoom. But there is no menu bar on the left side. We're getting closer, but still some work to be done. Bill Gee On Thursday, July 27, 2017 5:08:18 PM CDT Xavier Robert via Therion wrote:
Hi all,
I have work on that a bit more on that.
1) The developper has updated the code. See
2) I downloaded the missing files and the updates. I still have the same
problem in my browser (Safari 10.1.2) : « failed loading cave information
» In the debugger, I have the error : « XMLHttpRequest cannot load file […]
Cross origin request are only supported for https » A quick googling points
that this is because I am working with Safari in local… I moved to Firefox,
and that’s working. —> For mac Users, do not use Safari to test with local
files !
Cheers,
Xavier
Le 27 juil. 2017 à 15:43, Владимир Георгиев via Therion
<therion@speleo.sk<mailto:therion@speleo.sk>> a écrit :
Hi
The CaveView project is really nice, and one of the especially good things
is that it is actively developed :) I have used it on our club's server
to test and show the models of some recent surveys.
It is very useful for uploading the models of the caves and demonstrating
them without the need to have Survex, Therion or another tool installed,
because it runs in any browser without the need for plugins. CaveView
also has some nice features like highlighting a specific height level, by
specific survey section, etc. When working with maps or demonstrating on
my own PC I still use Loch or Aven because I am used to them and they
don't require setting up JS files, copying of the generated LOX or 3D,
etc.
Tomorrow when I have more time I will write some instructions on how to
'install' it. If someone hasn't figured it out by then :)
Vladimir
On Thu, Jul 27, 2017 at 11:15 PM, Xavier Robert via Therion
<therion@speleo.sk <mailto:therion@speleo.sk<mailto:therion@speleo.sk%20%3cmailto:therion@speleo.sk>>> wrote: Hi !
I am also interested to be able to get a 3D view on line of the caves we
explored with my caving club.The demo is great. I thus have a look on the
project. Here are my comments if they can be useful for someone :
1) That is true, we need a « CaveView.js », and this is not CV.js. This
file should be in the folder « js ». This folder needs to be in the
folder CaveView : build/
/—> index.thm
/—> CaveView
/ /—> css
/ /—> images
/ /—> js
/ / /—>CaveView.js
/ /—> lib
/—> surveys
/—> terrain
2) As you, I got the problem of the missing file. I went to the fulldemo
website (https://aardgoose.github.io/CaveView.js/fulldemo.html
<https://aardgoose.github.io/CaveView.js/fulldemo.html>), and I open the
development plugin from Safari. I add a snapshot in attachment that show
the different scripts used by the website.
3) From that website, I downloaded the CaveView.js missing file, and I
copy it on my computer under CaveView.js/build/js/
4) I added my lox/3d files in my folder surveys and modified the
index.html to point to the 3d models I added, following the help file
<https://aardgoose.github.io/CaveView.js/installation.html>).
5) I try to open index.htm with my browser, with all the files on my
computer. I systematically get the error « failed loading cave
information », and then, I only have the bottom lines of the web page
(infos on the mouse gestures). I imagine that Bill, you get the same
error.>
- I get that error both for .lox and .3d input files.
- If I voluntary give a false path to the cave file, and I get the same
error. This error is probably due to the fact that the CaveView.js do
not find the cave input file. - I then tried both, the full path
(/Users/…/CaveView.js/build/), and also the relative path (everything is
inside CaveView.js/build/). I still get the same error…>
I am really far to be a web/javascript guru, and for the moment I did not
succeed to get a working webpage…
If needed, I can provide my whole folder !
Cheers,
Xavier
Le 27 juil. 2017 à 13:38, Bill Gee via Therion <therion@speleo.sk
<mailto:therion@speleo.sk>> a écrit :
Hi Wookey
Two comments ...
First, you are right. There is a file called CV.js. However, it has
only six lines. There is one "import" and five "export" statements.
Somehow I doubt that it is really CaveView.js.
Second, the sample index.html file specifically calls out for
CaveView.js. I looked at the page source for the online "full UI" demo
and see that it also calls for CaveView.js.
I modified the sample index.html file to use the name of one of my .lox
files. It loads without error in Firefox, but does not display any sort
of window or menu. All it shows is the line across the bottom telling
what the mouse gestures do.
Does anyone know the author of this program? Maybe they have some
additional suggestions.
Bill Gee
On Thursday, July 27, 2017 11:21:42 AM CDT Wookey via Therion wrote:
On 2017-07-27 08:40 -0500, Bill Gee via Therion wrote:
CaveView requires installation to a running Web server and manual
editing of HTML files. It is not a stand-alone application.
But it could be packaged as one, available to run on your local
webserver. Not sure how useful that is in practice.
Second, the archive files I looked at seem to be incomplete. I
downloaded
the source code but could not find any file called CaveView.js.
I also tried cloning the git repository with this command:
Good grief, it downloaded over 260 megabytes! Even that did not have
a
CaveView.js file.
Heh, hooray for 'the modern way'? There is a CV.js which I presume is
the top-level file. (and there are two worker threads which need to
run too). CaveView.js is the application name - there isn't actually a
file called that, just a directory.
This does look nice and shiny. I'll take at look at what's involved in
packaging it for use as a local app then people don't need to worry
about all those setup instructions. I've not fiddled with any node
stuff before, but expect it to be somewhat painful, from what I've
heard
about the node ecosystem :-)
Looks like it needs the following:
rollup, which is currently in experimental.
three.js (already in since stable) (however it wants r85 and debian has
73
or 80 - this may or may not actually matter) proj4js (already in since
stable)
So none of that looks too bad, although the rollup piece could be a
pain in
practice.
Wookey
-- Bill Gee BOINC Statistics<https://boincstats.com/signature/-1/bam/40138/sig.png> Dell Corporation Limited is registered in England and Wales. Company Registration Number: 2081369 Registered address: Dell House, The Boulevard, Cain Road, Bracknell, Berkshire, RG12 1LF, UK. Company details for other Dell UK entities can be found on www.dell.co.uk.