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

Autodesk forge Viewer #8

Open
ruhamadavid opened this issue Jun 18, 2018 · 0 comments
Open

Autodesk forge Viewer #8

ruhamadavid opened this issue Jun 18, 2018 · 0 comments

Comments

@ruhamadavid
Copy link

Hi, I'm getting following error when tried to call (viewer3D.js Initialize function),
Uncaught TypeError: avp.RenderScene is not a constructor
at Viewer3DImpl.initialize (viewer3D.js?v=v4.0:26059)
at GuiViewer3D.Viewer3D.initialize (viewer3D.js?v=v4.0:44646)
at GuiViewer3D.initialize (viewer3D.js?v=v4.0:50771)

Even though after importing the following scripts:

<script src="https://developer.api.autodesk.com/modelderivative/v2/viewers/three.js"></script>
<script src="https://developer.api.autodesk.com/modelderivative/v2/viewers/viewer3D.js?v=v4.0"></script>

Here is my code,
this.LoadViewerDocument = function (viewer2DContainer) {
var options = {
'env': 'Local',
'document': './ES-TR-01AR/primaryGraphics.f2d'
};
setTimeout(function () {
viewer2D = new Autodesk.Viewing.Private.GuiViewer3D(viewer2DContainer, {})
}, 2000);
setTimeout(function () {
viewer2D.initialize(); // Initialize the viewer
viewer2D.loadModel(options.document);
this.onSuccessDocumentLoadCB();
}, 5000);
}

Anyone can suggest a solution for this.?

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

No branches or pull requests

1 participant