Open rogersanick opened 10 months ago
it has to be
import { Instances, Model } from './foo'
<Instances>
<Model />
Apologies, that was a typo on my end. I've updated the code snippet.
<Instances>
<Model />
</Instances>
Hi @rogersanick, I am facing the same issue. Could you let me know if you were able to resolve the issue?
Hey @gourangc - no answer yet but I'll post here if I'm able to figure it out / get help.
hey @rogersanick, I faced this issue today and I was able to fix it by adding morphTargetDictionary and morphTargetInfluences to skinnedMesh for a few layers of my model in the generated jsx files. Looks like previously gltfjsx added it itself and something changed recently. I hope its the same issue for you as well and this fixes it.
Hey @aish96 - thank you very much for your response! I'm not super familiar with morphTargetDictionary
or morphTargetInfluences
- any chance you could post a snippet?
Thanks, @aish96, for the solution. I also found the same solution in one of the tutorials I was following online. It is working now. @rogersanick Please look at the example code here. It will help you with the implementation. https://github.com/wass08/r3f-lipsync-tutorial/blob/main/src/components/Avatar.jsx
Facing the same problem without solution , did not know how to use morphTargetDictionary and morphTargetInfluences , any help please?
@gourangc - thank you very much for the link. I've given it a read and I'm still not completely sure how to apply this to my own instanced GLTF models. Further clarification would be greatly appreciated! Is this a workaround? Or expected behavior?
Hi @rogersanick @Aziz-kefi, looks like there is an issue with the latest version of the library. I have seen quite a lot of people facing this error. Until this get fixed, I would suggest using ttps://gltf.pmnd.rs/, based on top of this library or an older version of this library. Hope this helps.
It seems there is an issue with the latest versions. I solved the issue using an older version (6.2.3). I hope this can resolve yours too
I had this issue today and fixed using an older version (6.2.11). It seems broken from the 6.2.12
and later.
{package_manager} install gltfjsx@6.2.12
{package_manager} install read-pkg-up
{package_manager} gltfjsx -t {model_path}
Hey everyone,
I'm trying to use an instanced / transformed gltfjsx component generated using this command:
gltfjsx accosisting_squeemer_v2.glb -t -I
The outputted code is attached below along with the source file. Unfortunately rendering the component in the scene using:
Throws the following error:
This is the generated code:
And this is the generated file:
[Uploading accosisting_squeemer_v2-transformed.glb.zip…]()