Trouble loading 3D models

About Monkey 2 Forums Monkey 2 Programming Help Trouble loading 3D models

Tagged: 

This topic contains 5 replies, has 3 voices, and was last updated by  Mark Sibly 1 year, 9 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #9331

    Ethernaut
    Participant

    The “turtle” example from mojo3d-loaders is not working for me on either the itch.io 1.1.05 release, or the latest develop branch from Github. I’m on the latest MacOS. I get this error:


    Additionally, I can’t get any .gltf file of my own to load! The tests that come with Mojo3D work fine, but anything I generate myself doesn’t work.

    I tried Blender’s gltf exporter plugin, as well as this online converter: https://cesiumjs.org/convertmodel.html

    I’ve attached a model exported from Blender that fails here.
    Thanks!

    Attachments:
    1. monkey.gltf_.zip
    #9343

    Cole Chapman
    Participant

    Even though the test calls for mojo3d-assimp, it’s not a module.  Replace with mojo3d-loaders

    #9350

    Ethernaut
    Participant

    Thanks, that worked! 🙂

    I still can’t load gltf files. Mark, how did you make the files from your examples?

    #9353

    Cole Chapman
    Participant

    You need to be more specific.  What do you mean you can’t load the gltf files?

    #9355

    Ethernaut
    Participant

    I get an “Array index out of range” on the Gltf2Loader class, in the LoadModel method. The error goes away when loading one of the files provided with Mojo3d instead of mine, which makes me think those were created in a specific way that works, which is why I want to know how they were created. I’ve provided a file that crashes for me, so that anyone interested can try on their own.

    Bottom line is, has anyone successfully loaded their own gltf files?

    #9368

    Mark Sibly
    Keymaster

    Mojo3d currently only uses gltf2.0, which kind of got added while I was working on gltf1.0 so I upgraded.  The main reason I upgraed is that gltf2.0 supports PBR and normal maps etc.

    There are some gltf2.0 sample models here:

    https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/2.0

    It may be the mojo3d gltf2 loader has bugs – if you can’t get any of these to load let me know. Also note mojo3d can’t load any gltf2 anims of any sort yet.

    More on gltf here:

    https://github.com/KhronosGroup/glTF

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.