Replies: 1 comment
-
Hi, What do you want to do? Your message is really not clear and badly written, both in the form and the content. You should destroy JeelizFaceFilter if you unmount the component / quit the app Jeeliz FaceFilter does not manage your three.js scene. We provide some helpers to manage the three.js scene but if you want to clear it, you need to use the right way to do it with Three.js. If you want to toggle different filters matching different Three.js scenes, the best way to do it is to clear all objects of the scene, fill the scene, then if the user picks another filter you clean the scene and repopulate it. You don't need to stop or destroy Jeeliz Facefilter to do it. |
Beta Was this translation helpful? Give feedback.
-
I was trying make some multiple effects gui, calling a function to render a 3d cube like boilerplate and another one rendering a sphear for example. I create a button to call:
JEELIZFACEFILTER.toggle_pause(true,false); but the theeCanvas don't get clear, just pause the rendering, and when i call JEELIZFACEFILTER.destroy(); the video of the webcam of the videoElement DOM gets black, what could i do to call diferent functions to render diferents models on face and clean the render canvas by demand?
Beta Was this translation helpful? Give feedback.
All reactions