Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic initialization in Mediawiki site #431

Open
inddigital-xtech opened this issue Oct 26, 2023 · 2 comments
Open

Automatic initialization in Mediawiki site #431

inddigital-xtech opened this issue Oct 26, 2023 · 2 comments

Comments

@inddigital-xtech
Copy link

inddigital-xtech commented Oct 26, 2023

Hi, I'm trying to implement the viewer as browser-ready bundle In my local mediawiki site, and the only way I have to add Javascript code is through Common.js

I have read and applied the installation and use procedure indicated in: https://kovacsv.github.io/Online3DViewer/index.html

The problem is that these two lines are not being recognized there:

OV.SetExternalLibLocation ('libs');
OV.Init3DViewerElements ();

I guess Common.js doesn't understand what the OV object is

Can you help me please, I really appreciate it.

@GitHubDragonFly
Copy link

Viktor will probably have a better answer for you but just in case if this might help here is how my Quick Viewer is using O3DV:

    <script src="https://cdn.jsdelivr.net/npm/online-3d-viewer@0.10.0/build/engine/o3dv.min.js"></script>
    <script>
      // Set the external libraries location
      OV.SetExternalLibLocation( 'https://cdn.jsdelivr.net/npm/online-3d-viewer@0.10.0/libs' );

      // Init all the 3d viewer elements.
      OV.Init3DViewerElements();
    </script>

There might be some limitations to my approach so consider this as a suggestion only.

@inddigital-xtech
Copy link
Author

Thank you for your response, but I think the problem will persist because I don't see how to define the OV object, before referring to it in Common.css, I attach a screenshot of the browser console:
imagen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants