Hand Tracking - type for mesh missing

Hi, is there a reason why the type for ‘mesh’ is missing in the XRHandModelFactory.d.ts type definition file? Instead there is an ‘oculus’ option, which is not a part of the XRHandModelFactory.js. Setting the option to oculus does not show hand models at all. :thinking: I’m currently using this → DefinitelyTyped/types/three/examples/jsm/webxr/XRHandModelFactory.d.ts at master · DefinitelyTyped/DefinitelyTyped · GitHub but maybe you pulled your types from somewhere else.

Original Post on Discord

by user 474974683163394049

Just guessing, that this is either a custom change from your side or a leftover.

by user 474974683163394049

Hey @maXR from your screenshot it looks like you’re using a custom three version - is that correct? Definitely not recommended / we can’t support on that

nope not at all ^^ this is the definition file located in needle engine.

by user 474974683163394049

I see
Maybe I still don’t get what you’re even trying to do, sorry

sry, my explanation is extremly bad here. too many tasks in parallel atm ^^

I’m trying to get the hand mesh for hand tracking in VR. usually it would look smth like this: const leftHandModel = handModelFactory.createHandModel(leftHand, "mesh");

by user 474974683163394049

but the option for mesh is not available

by user 474974683163394049

there is instead an oculus option, which can’t be resolved, because the factory implementation doesn’t have an oculus option to choose from

by user 474974683163394049