We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

where should the files go ?

Home Forums General Questions where should the files go ?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #27162
    NaxosCG
    Customer

    Hello,

    I’m about to deliver my very first Verge3D project (mini soccer table),
    and i’d like to know if it is possible to do so :

    The client has his own web agency that creates and maintains the full web site;
    I made the Verge3D part, with some html / v3D interactions;

    the easy way to maintain the V3D files (new colors, etc) would be to let the web agency to host all needed files, but i’m quite sure that they will charge the client just to copy some files on their hosting servers. and they could bypass me with new colors, editing the xml and files.

    So i’d like to keep the V3D hosted on my servers, and let the web agency to host the rest of the web site, with simply iframe pointing to my host and the html.

    Firsts tests i’ve made are not ok : if i host all files myself : HTML interaction are working, and if i put only the verge3D-oriented files (so gltf, gx, bin, base html, js and xml files, it does not work : i can see the 3D, but no interaction work.

    Can you help me with that, please ? does the full interface html file has to be in the same folder than the verge3D files ?

    "1+1=3... for large values of 1"

    #27171

    The html interface file should be hosted on the same domain as the rest of the app.
    do you observe any errors in the browser console?

    Chief 3D Verger | LinkedIn | Twitter

    #27186
    NaxosCG
    Customer

    Here is the console, if you can have a look, please. Because i’m not a dev guy, i can’t figure out what is wrong.

    "1+1=3... for large values of 1"

    #27188

    yes, it looks like cross-origin issue

    double check you project structure

    Chief 3D Verger | LinkedIn | Twitter

    #27205
    NaxosCG
    Customer

    Hum… ok, but i don’t really understand what is a “cross-origin” issue.

    Is there a place where i can find the project structure explanations ?

    As a remember i’d like to keep Verge3D part on my side, while the containing html website would be hosted elsewhere, the html with buttons that IDs are used in Verge3D puzzles.

    "1+1=3... for large values of 1"

    #27207

    can you share a link to the app that does not work?

    Chief 3D Verger | LinkedIn | Twitter

    #27211
    NaxosCG
    Customer

    That is the point :
    the link started from https://cdn.soft8soft.com/…. server works well;
    the link started form my own server works also,
    both as all files are beside the verge3D project files.

    But what i’m trying to do is to get this project in iframe in a html file that is not in the same server / host.

    It seams that it is not possible, as you said before.
    “The html interface should be hosted in the same domain than the app”.

    Maybe this could be a request to let it be possible, if technically it is possible, that i don’t know.

    btw, the project is here :
    https://cdn.soft8soft.com/AROAJSY2GOEHMOFUVPIOE:4f921f28ff/applications/stella-champion/StellaChampion-responsive.html
    All is there, so it works.

    If i try to access to another domain : use this one
    https://cdn.soft8soft.com/AROAJSY2GOEHMOFUVPIOE:4f921f28ff/applications/stella-champion/StellaChampion-responsive-AirVB.html
    Does not work.

    "1+1=3... for large values of 1"

    #27252

    that’s right – everything must be on the same domain – this is hardcoded in the web

    so you can just upload 3D content to your own website rather than Verge3D Network (CDN)

    Chief 3D Verger | LinkedIn | Twitter

    #27259
    NaxosCG
    Customer

    that’s right – everything must be on the same domain – this is hardcoded in the web

    so you can just upload 3D content to your own website rather than Verge3D Network (CDN)

    Ok i get it.
    Not really a problem, but than means that 3D guy and web guys will have to cooperate ;-)

    "1+1=3... for large values of 1"

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.