You can also import additional 3D elements to flesh out the scene. To finish your scene, import a 3D body and size it to be proportionally too small for the head. That's about it as far as creating the head portion of the lens. Lens Studio Tutorials How to Make a Face Expressions Enabled Lens - Lens Studio Tutorial NoLens 334 subscribers Subscribe 107 4. Change the Texture UV to "Transformed UV 2" and then enable the Transformed UV 2 option down at the bottom of the material settings and change it to "Screen UV." You should now see the face projected onto the head mesh. At this point things are going to be looking pretty ugly, so let's fix that. To do so, select the Device Camera Texture as the Base Texture for the material. To get the user's face onto the mesh, we are going to take the camera texture and project it straight onto the mesh. Create a new Unlit material, name it whatever you want, and then set it as the material for the head mesh. That was pretty easy, but let's make it look like the user's head. Create a new Unlit material, name it whatever you want, and then set it as the material for the head mesh. Select the newly created Face Mesh in the Resources Panel and enable the Eye Geometry and Mouth Geometry options. Select the newly created Face Mesh in the Resources Panel and enable the Eye Geometry and Mouth Geometry options. For this tutorial I'm going to go with the color option to keep things simple and go with a nice sky blue. Select the camera and in the Inspector Panel change the Clear Color Option to either "Color" or "Texture." With the texture option you can either load in an image to use as the camera input or get a little fancy and set up a separate render target (which I won't be covering here). The first step will be to remove the camera view from the background. Connect it to the World Position input in the Shader node, and nothing will change. These textures can be used to modify how your Face Mesh appears. You can get the current vertex world positions with the node called ‘Surface Position’. The Face Mesh UV file provides a reference on how 2D textures are applied to the Face Mesh. The wobble needs to be added on top of that. Download Download Lens Studio I have read the Privacy Policyand agree to the Lens Studio License Agreementand the Terms of Service macOS 635. You can see an example of this by clicking here or by scanning the snapcode below. To make the mesh wobble, we will need the current vertex position first. In this tutorial we'll learn how to create a "Big Head" lens using texture projection.
0 Comments
Leave a Reply. |