U
U
UnRealName2016-03-02 08:33:25
3D
UnRealName, 2016-03-02 08:33:25

Why script with 3D panorama from KeyShotVR doesn't work on the website?

3D panoramas should be placed on the site. The following source code was received from the designer .
There is an html file, pictures and scripts. Apparently they are made in the KeyShotVR program .
If you open the html file in the browser, then everything works, it spins and spins. On the site, I put the following content of the html file in the body: codepen.io/anon/pen/eZNYJv. But nothing is displayed on the site, only the loading window appears briefly and emptiness. Moving this line to head didn't work:

<script type="text/javascript" src="5555_VR.30/files/KeyShotVR.js"></script>

The path to the script is correct. It seems that the problem is with the loading of images. There is a line in the script:
var folderName = "5555_VR.30";
This is the name of the folder with pictures, and let's say it is located in the root of the site. What could be the problem?
I checked on html file that removing meta tags and lines:
<style type="text/css">
      body { -ms-touch-action: none; }
    </style>

<body oncontextmenu="return false;">
  </body>

//то есть, я не задаю этот параметр на своем сайте для body

doesn't change anything and the model rotation works.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question