Mojo3D: Loading Models

About Monkey 2 Forums Monkey 2 Programming Help Mojo3D: Loading Models

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by  Mark Sibly 11 months, 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #14498

    aleana
    Participant

    Can anyone please show me exactly how to import a model I’ve created in 3dsmax 2017+? (mymodel.3ds or mymodel.fbx)

    I can’t get my model to show up. I’m not even sure what I’m doing wrong. I know this should be easy, but it’s simply baffling me.

    I have the model located within the same directory as the monkey code file. Is that wrong? I don’t get an error.

    Attachments:
    1. untitled1.monkey2
    #14500

    Mark Sibly
    Keymaster

    For starters, you need this in the code:

    #Import “<mojo3d-loaders>”

    Without this, the assimp module that includes thre 3ds loader wont even be present! Have a look at some of the tests in modules/mojo3d-loaders/tests.

    Also, you parent the model to the camera and then move it up 2.5 units. This means that no matter where you move the camera, the model is always above the camera which might be a problem. Also, if the model is too big or too small it wont be visible.

    Can you view the model in the ted2go IDE?

    #14525

    aleana
    Participant

    Thank you so much!!! It’s showing up now!

    when you ask “can I view the model in the ted2go IDE?” are you implying that there’s a way to see it without running my code?

    #14528

    Mark Sibly
    Keymaster

    For sure, you can double click on model files from within the ted2go project browser, or drag ‘n’ drop them into ted2go from the OS file explorer.

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

You must be logged in to reply to this topic.