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.

Loading glTF Scene

Home Forums General Questions Loading glTF Scene

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1877
    nikolstrek
    Customer

    Hi. I try to load a scene from Blender by the GLTFLoader.js with materials apllying on objects, but all object loaded with default materials.

    1
    2

    Is there a way to quickly download a scene(with applying materials in Blender), without creating a project in App Manager ?

    #1878

    Hi! does it print any errors in the console?

    Also do you really need to use the GLTF loader directly? I’d recommend to load gltf files with app.load(url, callback) as in player.js.

    Chief 3D Verger | LinkedIn | Twitter

    #1888
    nikolstrek
    Customer

    It doesn’t print errors.

    I choose this way, because i use the “pointerlock.js” for first person controlls.
    How can i get the scene.camera if i exported scene from blender, like in the “external_call” example, i try this method in “Run your code here” but was occur an error.

    #1892

    Does your scene load normally with the standard app.load() method?

    Chief 3D Verger | LinkedIn | Twitter

    #1895
    nikolstrek
    Customer

    It works fine. But i need to control “scene” and “camera” modules, and i dont’t know how can i get them in Player. Help me please! :)

    #1912

    these can be obtained from the v3dApp global variable,

    v3dApp.scene
    v3dApp.camera

    Chief 3D Verger | LinkedIn | Twitter

    #1913
    nikolstrek
    Customer

    Many thanks Yuri.

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