- This topic has 29 replies, 3 voices, and was last updated 4 months, 1 week ago by kdv.
-
AuthorPosts
-
2022-09-20 at 11:48 pm #55948David YanezCustomer
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.2022-09-21 at 7:23 am #55954kdvParticipantPress 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 coding. 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 the meaning at all.
2022-09-21 at 2:07 pm #55961David YanezCustomerThank 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:4432The 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.2022-09-21 at 2:17 pm #55964kdvParticipantsomething wrong with meshes in the appended scene. can you share .blend file or .gltf?
Puzzles and JS coding. 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 the meaning at all.
2022-09-21 at 2:44 pm #55968David YanezCustomerSure, 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.2022-09-21 at 2:51 pm #55970kdvParticipantattach here the scene that you’re trying to append in zip
Puzzles and JS coding. 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 the meaning at all.
2022-09-21 at 2:53 pm #55971David YanezCustomerHere goes…
Attachments:
You must be logged in to view attached files.2022-09-21 at 3:07 pm #55973kdvParticipantthey go in a pair: tow.gltf and tow.bin. Both are needed )))
Puzzles and JS coding. 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 the meaning at all.
2022-09-21 at 3:20 pm #55974David YanezCustomerSorry about that. Here goes again.
Attachments:
You must be logged in to view attached files.2022-09-21 at 3:41 pm #55976kdvParticipantWell, see no problem with
tow.gltf
. It can be appended to any scene…Puzzles and JS coding. 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 the meaning at all.
2022-09-21 at 3:56 pm #55977David YanezCustomerWould 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.
Attachments:
You must be logged in to view attached files.2022-09-21 at 4:20 pm #55980kdvParticipantTry with some other master scene. Looks like the problem is in your scene…
Puzzles and JS coding. 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 the meaning at all.
2022-09-22 at 7:13 pm #56022David YanezCustomerHi 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.
2022-09-22 at 7:21 pm #56023kdvParticipantAcoording to one of your screenshots above the proplem is in
morphAttributes
that areundefined
. 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 coding. 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 the meaning at all.
2022-09-23 at 4:23 am #56026David YanezCustomerHello 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. -
AuthorPosts
- You must be logged in to reply to this topic.