nachocinalli / adapt-threeGLTF

GNU General Public License v3.0
0 stars 0 forks source link

3D model does not load #1

Open thwadster opened 10 months ago

thwadster commented 10 months ago

Hi, I am testing your plugin in the latest framework, on the latest adapt authoring tool. I can install the plugin with no errors, but when generating a preview on an uploaded 3d file I just get a "blank space" where the model should be. It would be FANTASTIC to get this plugin to work, like your example pages.

nachocinalli commented 10 months ago

Hello @thwadster, thank you for your comment. It's likely that the properties of the component need to be adjusted. The example I used has this configuration.

{
    "_model": {
        "src": "https://threejs.org/examples/models/gltf/LittlestTokyo.glb",
        "scale": 0.01,
        "ariaLabel": "Little Tokyo 3d model",
        "description": ""
    },
    "_scene": {
        "background": "#4c4b63",
        "ambientLight": {
            "color": "0xa0a0fc",
            "intensity": 0.82
        },
        "directionalLight": {
            "color": "0xe8c37b",
            "intensity": 1,
            "position": {
                "x": -69,
                "y": 44,
                "z": 14
            }
        }
    },
    "_camera": {
        "fov": 40,
        "aspect": 2,
        "near": 1,
        "far": 100,
        "position": {
            "x": 5,
            "y": 2,
            "z": 8
        }
    }
}

I can assist you in reviewing it if you can share your model with me. Connect with me through LinkedIn, and we can take a look.

thwadster commented 10 months ago

Many thanks for the reply and I will defintely connect with you in linkedIn. Some feedback - I managed to get a .GLB 3d model working, which I converted from .DWG using blender, but GLTF files still came up blank. Many thanks for your settings, I will experiment with them to get the optimum settings. Great work also on your other components and I look forward to "memory".