Comments (9)
Hi,
Yes, we render the video behind the 3D model.
But since the video is rendered using a RawShaderMaterial, this is still possible to deform or tweak the rendering with GLSL in the fragment shader.
You will probably also need to render a transparent model of head in order to hide the back face of the hair 3D mesh. You can take a look at the statue of liberty face mask for example (https://github.com/jeeliz/jeelizFaceFilter/tree/master/demos/threejs/multiLiberty) there is also a tuto on WebGL Academy here : https://webglacademy.jeeliz.com/courses.php?courses=19_25_27_33_34#34
from jeelizfacefilter.
+1 for this comment @xavierjs -- as a web dev wanting to learn and experiment with webgl this https://webglacademy.jeeliz.com/ link is something super handy. i'll be playing around with this more!
from jeelizfacefilter.
@xavierjs Is that anything that, you can help me here?
from jeelizfacefilter.
Hi,
Just make hatMesh global :
window.globalHatMesh=hatMesh;
Then you can play with it in the JS console. For example:
globalHatMesh.scale.multiplyScalar(2);
will make it 2 times bigger
You can then adjust the position, rotation and scale interactively.
As soon as you have the correct values, report them in your JS code
Thank you for your help proposal. We are open to pull requests, tutorials and if you have done a cool demo using this lib, we can add a link from the readme :)
Cheers,
Xavier
from jeelizfacefilter.
Thanks, for your reply.. @xavierjs
I tried this.. works well
but I just want to ask you... I am trying to put Hair(model) on the Head. But here I am confused little bit because we are just rendering video behind the model right?
is there anyway I can put Hair(model) on the top of my real hair ?
from jeelizfacefilter.
@xavierjs @tetreault Thanks! guys
from jeelizfacefilter.
@xavierjs Can you please put Blender exporter addons very quick!
I am having a hard time just because every addon I found on the internet is buggy and generating the different type of JSON.
from jeelizfacefilter.
Hello, @xavierjs any updates?
from jeelizfacefilter.
I have already pushed it here : https://github.com/jeeliz/jeelizFaceFilter/tree/master/libs/threejs/blenderExporter
It is thΓ© exporter from three.js r83 I think.
I use it with Blender 2.76 and it works fine.
from jeelizfacefilter.
Related Issues (20)
- Flickering in Video element when passing canvas stream HOT 5
- Refactor the dependency HOT 10
- With the latest version of threeJS library , camera video is not rendering HOT 2
- when adding NN_DEFAULT I am getting TypeError: c.toUpperCase is not a function error HOT 1
- FaceFilter face model transparency issue HOT 3
- can i use navigator.mediaDevices.getUserMedia instead of the camera HOT 1
- how to have a delay before filter is removed HOT 2
- Not working with NextJS HOT 6
- Too much jittering when using fact filter HOT 3
- [feature request] Camera feed on an HTMLVideoElement HOT 3
- Stretched face on Android Chrome HOT 11
- Custom Image not working in facereplacement HOT 1
- README not updated for Three.js JSON HOT 1
- GlassesVTO cannot be demonstrated on Chrome HOT 4
- How could I apply face detection to still images? HOT 1
- small license question- sorry :(
- The camera can't recognize the face at a little distance HOT 2
- I have a few questions about this library HOT 16
- toggle_pause doesn't work with a specific sequence HOT 1
- Changing the neural net throws error at runtime HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jeelizfacefilter.