Online 3D file viewing?

TheBitterEnd

Well-known member
The inverted bitmap has been doin' my 'ead in o_O but I've got it fixed now, however looking at the Charterhouse bitmap and comparing it with the surface polygons, the valleys don't seem to be quite right. Since I can't see the bitmap in Loch, could someone let me know if it correct?

I've also changed the mouse handling so that it is more like Loch, so Left Mouse Drag Up/Down zooms, Left Mouse drag left/right rotates, Scroll wheel (or shift left mouse drag tilts) and Right Mouse Drag pans. I'd like to get it rotating about the centre rather than about the corner, but that's for another week.

http://chris-h.me.uk/loch/LochViewer.php
 

Duncan Price

Active member
Hurrah - it finally works for me on IE8!

I'll try to work up the Ogof Capel survey for you into a .lox file with the surface overlay.  Pity I can't do Draenen...yet.
 

graham

New member
sirch2 said:
The inverted bitmap has been doin' my 'ead in o_O but I've got it fixed now, however looking at the Charterhouse bitmap and comparing it with the surface polygons, the valleys don't seem to be quite right. Since I can't see the bitmap in Loch, could someone let me know if it correct?

If it is wrong (this netbook has too small a screen to tell, easily) then I think it might be that the bitmap and the surface are different sizes. Providing the file has the right numbers in it lox will clip the bitmap appropriately but that might be trashed by your viewer. I know that one of our bitmaps is the wrong size & I think it is that one.
 

TheBitterEnd

Well-known member
I have just put up the latest and greatest - I think this is pretty much ready to be called version 1, unless someone can spot something obvious.

It now has plan/elev buttons and just for Graham a full screen button. The mouse handling is improved and you can also use the cursor keys and Pg Up/Pg Dn for zoom.

http://chris-h.me.uk/loch/LochViewer.php

I'll try to get it written up with some notes on how to install it on your own website.
 

TheBitterEnd

Well-known member
Since Firefox 4 came out with its improved Javascript engine, I thought I'd stretch its legs a bit, so I did Little Neath as SVG and it seems just about useable

http://interestingto.me.uk/3d/svg/lnrc.svg

But then I thought I'd give the HTML5 Canvas tag a whirl and w00t,w00t it's pretty good (remember this is with Firefox 4, it's still pretty slow in 3) You can also use right-drag and scroll wheel which are not available in the SVG version.

http://interestingto.me.uk/3d/canvas/lnrc.html

It's never going to do surface bitmaps directly though but could be pretty useful nonetheless.
 
I have done some experimentation with the <canvas> approach and slightly modified its 3D routines in javascript: it does look a very promising approach.

I have loaded a model with [OUCC,NPC,CDG,SIE] data for the caves around Ario in the Picos de Cornion, Spain (extracted from a database created with SQL from Therion): well over 5000 stations and shots. They can be moved smoothly in Google Chrome and Opera browsers, sluggishly in Firefox 3, but IE users will see nothing at all (except, perhaps, in IE9). You can try it at:

http://www.mlaverty.plus.com/culiembro.html

Chris Jewell's article, "Hallazgo Hitu", in Descent 219 (just out) shows a plan of the Culiembro part,  for comparison, and, for reference, here is a screenshot of a plan (subsequently labelled with system names for information, N at top, scale ~ 3x2km):
culiembro_lab.jpg

and an elevation viewed from slightly north of west (just over 2km top to bottom):
culiembro_el_lab.jpg


There are still problems, room for improving the ease of use and interpretation, but lots of possible avenues of development: sirch2/TheBitterEnd has done a great job in getting this going.
 
Top