-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to control springiness effect for custom 3d models? #14
Comments
Hi, The springness is mainly controlled by the Flex texture (https://github.com/jeeliz/jeelizWeboji/blob/master/assets/3D/textures/Fox_flex.png for the fox). Best, |
Thanks for replying,
Import the texture in this file https://github.com/jeeliz/jeelizWeboji/blob/master/demos/threejs/fox/demo_webojiThreejs.js by giving its path in the flexMapURL property. Also I have questions
Regards, |
Hi, I invented this method, the texture is only used to store a coefficient, called "flex coefficient", 0-> rigid 1-> flex applied at 100%. So the answer to your question 1. is true. Best, |
In the ThreeJSHelper File, in my assumption rotationSpringCoeff and rotationAmortizationCoeff parameters are responsible for "springiness" effect of the 3d model.
It works great for the fox model. But it doesn't look good for my custom 3d models which I created using this tutorial. For my model I have set these parameters as follows to lower the springiness.
rotationSpringCoeff = 0.0005 and rotationAmortizationCoeff = 0.5
However, I want to use this effect for my 3d model but at the same time I want to control the location and intensity of this effect, for example trunk and ears of an elephant. Is there any specific requirements or code I have to change to achieve this? I have found no information to continue on. Please guide me to the correct path.
Regards,
Andy
The text was updated successfully, but these errors were encountered: