Multiple Hot Spots and Viewer Problems
I actually have two questions for this forum. I'm new here so bear with me if I'm not up to speed with the rest of you VR ninjas.
Question 1
Why are there so many browser issues with viewing this file? http://media.sweetleafadventures.com/dswmedia/index.html
Browsers that work:
- Internet Explorer
Browsers that don't work:
- Safari (works sometimes)
- FireFox
- Flock
- Camino
In the bottom of the browser I also see: "Unknown network error 4836"
I spent most of the day Friday learning how to use and re-edit the XML file in the "Simple-Tour" download using my own source files and rearranging the hotspots where I need them. Here's the XML file with my notations - view source to see the code. http://media.sweetleafadventures.com/dswmedia/tour.xml
Question 2
How do I place multiple hotspots in a scene? For example; the living room scene should have multiple hotspots, five to be exact. When I click a hotspot in the living room and enter another room I should be able to re-enter the same living room scene with all five hotspots, this way I can simply reference that single scene each time I leave a room rather than force the user to browse one room at a time, thus, having to create five seperate scenes for the living room scene. I tried to duplicate the various hotspots and scene setups within the living room scene so would have multiple hotspots and could pan around the room and click on any given room but I get loads of errors. Does this make sense? I don't think I'm writing my XML file correctly.
Could one of you VR ninjas give me a hand here?
Thanks very much,
David
fieldOfView | SPi-V dev
Re: Multiple Hot Spots and Viewer Problems
Question 1:
As I said here, some browsers have issues with gzip encoded XML. You could try renaming your XML file to a .spv file instead of a .xml file and see if that stops your server from gzip encoding the file. If that doesn't work, ask your provider to turn off gzip encoding for XML files.
There's a second issue with the link you send and that's the somewhat infamous 'bug' (or is it a feature) that specifying a height of 100% does not work in Firefox if you supply a full DTD. Your first line of the HTML reads as follows:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
Change that to this, and the height="100%" should work:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">Question 2:
It generally helps if you specify some of the 'loads of errors'. Without error messages or a link, I can not see what is going wrong. My guess would be that by copying the hotspot, you created multiple panoelements with the same id in a single scene. You can not do that.
id attributes should be unique within one scene. You can have a panoelement with id 'hotspot' in two different scene nodes, but you can not have two or more panoelements with the same id within a single scene node. You'll have to name one 'hotspot_1' and the other 'hotspot_2' for example. For an example of a tour with more hotspots, have a look at the hirshhorn tour on the downloads page.
Re: Multiple Hot Spots and Viewer Problems
Hi Aldo,
I had the chance to to change the extension to .spv as well as delete the line "http://www.w3.org/TR/html4/loose.dtd". It did the trick and loaded fine in Safari, It also displayed the toolbar at the bottom. FireFox still has issues so I'll basically make note to all potential viewers that IE and Safari are the recommended browsers.
I have downloaded the hirshhorn files and will begin my exploration into multiple hotspots sometme this week. Just a warning that you probably haven't heard the last from me and I will be buying a license shortly.
Thanks again for your help and guidance.
David
Re: Multiple Hot Spots and Viewer Problems
Hi Aldo,
Strangely the VR stopped working in Safari completely. It was working fine as per your suggestion this Monday. I was poking around in the index file as provided in the most current version of the SPi-V Engine as well as the older version that I was using. In the index file, part of the code is marked:
<object width=100% height=100% classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=10,0,0,0">
I tried loading these URL's and even went to part of that URL tagged as: http://download.macromedia.com and it's non-existent, returning a "404" Error. I even entered the full URL as mentioned above, and all I got was a page of code. Could this have anything to do with the fact my VR isn't displaying in Safari?
I'm trying to sort out any other possibilities why this isn't working. Any help would really help out.
Thanks again...
David
Re: Multiple Hot Spots and Viewer Problems
There's something strange going on in Safari. On an empty cache, the link doesn't work. The debug window shows up, but the text is illegible. I *think* it is saying it can't open the .spv file with a 4836 error. When I refresh the page, your panorama shows up, but the toolbar doesn't. Refresh again, and the toolbar shows as well. In a nutshell, xml files don't seem to be downloading properly until they are cached.
Unfortunately, Safari disables the debugger built in to SPi-V so that makes it harder to investigate.
The codebase url is only used by Internet Explorer on Windows. Safari happily ignores it.
Turning off gzip compression
Could you do me a favor, and try this:
php_flag zlib.output_compression OffWith a bit of luck, this turns off gzip encoding of the xml files in that folder. Let me know when you have the file in place, so I can do a couple of tests with the server.