Вы здесь

Placing Cortona3D Solo library on a web server

Starting from version 9.0 RapidAuthor is able to produce publications that do not require browser plugins (HTML5). These publications can be viewed with Cortona3D Solo, which is based on asm.js and WebGL and HTML5 technologies.

Cortona3D Solo Library consists of three files: Cortona3DSolo.js, Cortona3DSolo.js.mem and Cortona3DSoloCore.js.

By default, the Cortona3D Solo Library is placed into the resource folder of the RapidAuthor publication. If you have a substantial number of publications you will need to update the Cortona3D Solo Library for each publication when a new version of Cortona3D Solo Library is released. To save time you may place the Cortona3D Solo Library on a dedicated place on the server using the “3D Viewer URL” in the RapidAuthor publish options (Tools > Publish Options).

Your web server should be able to use the Cross-origin resource sharing (CORS) to ensure the proper workflow. For example, for Apache server you need to add the following line to the .htaccess file: Access-Control-Allow-Origin: *

The information about CORS activation on other web servers is available here: http://enable-cors.org/server.html

Please note that if you use the Microsoft IIS web server, it needs to be configured to return files with the .mem extension. This is not a standard extension and your server may block it and return error 404 when such file is requested by a client.