Giter VIP home page Giter VIP logo

Comments (9)

xavierjs avatar xavierjs commented on May 13, 2024 1

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.

tetreault avatar tetreault commented on May 13, 2024 1

+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.

Rutulpatel7077 avatar Rutulpatel7077 commented on May 13, 2024

@xavierjs Is that anything that, you can help me here?

from jeelizfacefilter.

xavierjs avatar xavierjs commented on May 13, 2024

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.

Rutulpatel7077 avatar Rutulpatel7077 commented on May 13, 2024

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.

Rutulpatel7077 avatar Rutulpatel7077 commented on May 13, 2024

@xavierjs @tetreault Thanks! guys

from jeelizfacefilter.

Rutulpatel7077 avatar Rutulpatel7077 commented on May 13, 2024

@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.

Rutulpatel7077 avatar Rutulpatel7077 commented on May 13, 2024

Hello, @xavierjs any updates?

from jeelizfacefilter.

xavierjs avatar xavierjs commented on May 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.