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.

v3d.module.js:1 ReferenceError: LineBasicMaterial is not defined

Home Forums Programming v3d.module.js:1 ReferenceError: LineBasicMaterial is not defined

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #77856
    atomiccfc
    Participant

    Hello,
    When I try to load my glb model I got an error v3d.module.js:1 ReferenceError: LineBasicMaterial is not defined.

    My js code:

    import * as v3d from './node_modules/verge3d/build/v3d.module.js';
    
    const myApp = new v3d.App('v3d-container');
    
    const url = 'CAAM_0_ARC.glb';
    
    myApp.loadScene(url, function() {
        console.log('Is Loaded', myApp.scene);
    
        myApp.scene.background = new v3d.Color(0x000000);
        myApp.enableControls();
        myApp.run();
    });
    • This topic was modified 1 month, 2 weeks ago by atomiccfc.
    • This topic was modified 1 month, 2 weeks ago by atomiccfc.
    • This topic was modified 1 month, 2 weeks ago by atomiccfc.
    • This topic was modified 1 month, 2 weeks ago by atomiccfc.
    #77869

    Hi,
    It appears your file includes basic line models, which cause this. We’ll fix this issue in the upcoming Verge3D preview :good:

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #78239

    Should be fixed in Verge3D 4.8 pre2 :good:

    Soft8Soft Tech Chief
    X | FB | LinkedIn

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