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.

Help with the Append Puzzle please!

Home Forums Puzzles Help with the Append Puzzle please!

Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • #55948
    David Yanez
    Customer

    Hello everyone,

    I’m currently working on a configurator where I need a button to turn on and off a mesh group that belongs to an external scene.

    I have my button set in HTML and I’m trying to use the append scene puzzle tool in order to add the mesh group from the external scene to the base scene, and the unload scene puzzle tool in order to turn it off, but I cant seem to make it work.

    I’m attaching a screenshot of the puzzle configuration I’ve tried so far but with no luck. Also, a screenshot of the current export settings for both base and external scenes.

    I will really appreciate your help and guidence once more? Many thanks!

    Attachments:
    You must be logged in to view attached files.
    #55954
    kdv
    Participant

    Press F12 and see the browser console log. And you don’t need to use the Draco loader, the V3D plugin exports .gltf without geometry compression.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #55961
    David Yanez
    Customer

    Thank you so much for the reply kdv77kdv.

    I set the puzzles configuration without the Draco loader as recommended and added an on progress do and on error do tab in order to see more information in the console. And this is what I get:

    Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘morphAttributes’)
    at Object.getParameters (v3d.js:1:631427)
    at ze (v3d.js:1:743444)
    at v3d.js:1:740223
    at i (v3d.js:1:13479)

    (8) Loading… 84% visual logic.js:4432
    (16) Loading… 85% visual logic.js:4432
    (endless count) Loading… 86% visual logic.js:4432

    The last loading count continues endlessly without advancing from the 86%.

    I’m attaching a screenshot of the puzzles and browser console.

    I’ll appreciate your help in solving this issue.

    Thanks in advance! :)

    Attachments:
    You must be logged in to view attached files.
    #55964
    kdv
    Participant

    something wrong with meshes in the appended scene. can you share .blend file or .gltf?

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #55968
    David Yanez
    Customer

    Sure, as I was first testing the append puzzles tool I have a simple scene with only the same aiSkyDomeLIght1 as the master scene and a single polygon sphere. Its in Maya.

    Attachments:
    You must be logged in to view attached files.
    #55970
    kdv
    Participant

    attach here the scene that you’re trying to append in zip

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #55971
    David Yanez
    Customer

    Here goes…

    Attachments:
    You must be logged in to view attached files.
    #55973
    kdv
    Participant

    they go in a pair: tow.gltf and tow.bin. Both are needed )))

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #55974
    David Yanez
    Customer

    Sorry about that. Here goes again.

    Attachments:
    You must be logged in to view attached files.
    #55976
    kdv
    Participant

    Well, see no problem with tow.gltf. It can be appended to any scene…

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #55977
    David Yanez
    Customer

    Would it have to do something regarding the master scene then? It’s strange, because I’m not able to append it.

    The master scene is very heavy though. When loading it doesn’t show any errors in the browser console, only when appending the external scene.

    I’m attaching a screenshot of the initial browser console and what happens when appending.

    When I use the load puzzle it works fine, but I don’t want the master scene to disappear, so I need to use the append puzzle.

    What could it be? I can’t make it work. :scratch:

    Attachments:
    You must be logged in to view attached files.
    #55980
    kdv
    Participant

    Try with some other master scene. Looks like the problem is in your scene…

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #56022
    David Yanez
    Customer

    Hi all!

    I’ve tried with a new simple master scene and everything works correctly.

    So I went back and cleaned up my scene which had some unused nodes from previous maya versions, but even after getting rid of all the Warning sings in the scirpt editor I still get the same problem with the configurator in the browser console.

    Does anyone know if there are any certain specifications needed in order to use the append puzzles between scenes? My master scene has both Arnold aistandard surface shaders and deafult maya blins and lamberts shaders.

    My external scene shares some of the same aiSkydome1 light system and shaders as my master scene (I copy pasted them between scenes, soy they have the same name, properties, etc.). Could this be the problem? Should I create independent shaders in the external scenes with different names?

    In my test run with a new master scene I had the same environment, lights, locators and cameras, but I deleted the geometry mesh groups and created only one sphere with having it with one of the current Arnold shaders. Then I duplicated that scene and instead of a cube I created a sphere with the same shader. Once tested, all good, so I guess the above assumption of not being able to share the same shaders is not true.

    So maybe I should start deleting my geometry meshes one by one until I find what is causing the problem. But maybe there is better solution. Please help. :-(

    #56023
    kdv
    Participant

    Acoording to one of your screenshots above the proplem is in morphAttributes that are undefined. Just try to add a morph target to the appended mesh. Maybe it will help… Otherwise pack your app and share it via Google Drive. I’ll have a look at this curious example…

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #56026
    David Yanez
    Customer

    Hello kdv77kdv,

    So I tried your suggestion on adding a morph target to the appended mesh in the external scene. I did so by opening the Shape Editor, creating a blend shape on the polysphere and adding a target, without animating anything, just to have the node present.

    But after testing it out, when trying to append the external scene on button click, the same error appeared:

    Uncaught (in promise) TypeError: Cannot read properties of undefined (reading ‘morphAttributes’)

    I don’t know if I understood the suggestion correctly or if I missed something. I only added the blend shape target in the external scene (to be appended).

    I’m attaching screenshots of how I created the morph target and the browser console results along with the puzzles setup.

    Unfortunately I’m not allowed to send you a gdrive link with the project files but because of NDA policy with my clients but if you are available we could have a follow up call via google meet or zoom. Just let me know if that works for you and how to send you the invite.

    Many thanks!

    Attachments:
    You must be logged in to view attached files.
Viewing 15 posts - 1 through 15 (of 26 total)
  • You must be logged in to reply to this topic.