Lerp is short for 'linear interpolation' and will return a position along a line between two points. The key to this effect is the lerp function. Var event = script.createEvent( "UpdateEvent") Var desiredPosition = targetTransform.getWorldPosition().add(script.offset) Print( "SmoothFollow.js: Please assign the target") You can find the script there, or I've also included it below: // -JS CODE- // SceneObject target // vec3 offset // float smoothSpeed = 0.05 var transform = script.getTransform() There is a collection of projects, templates, and scripts maintained by some of the lens creator community on GitHub. Fortunately for us, a script already exists for that. So far we have our 3D model with the face setup, but it wouldn't be a Potato Boss style lens without some of that wobble/lagging motion on part of the model. Once that is done, duplicate it once more, change the region to Right Eye, and position it accordingly. Position it just as you did the mouth, being sure to switch to the 3D view to adjust the Z-direction. The name comes from being on our (the creator's) left hand side. Now, a quirk of Lens Studio is that the left eye inset is actually the user's right eye. Now duplicate the mouth face inset and change the region to Left Eye. Drag the mouth inset so that it is a child of your model's root bone (the very first bone in the rig) and then delete the face inset binding. Since we are placing the face insets on our model, we don't need that face inset binding. When you add a face inset, a new Face Inset Binding is created and the face inset is attached to that. In the Preview Panel, I like to use the "Smile Person 1" or "Smile Person 4" previews whenever head motion is involved because they both turn their heads from side-to-side in the video. Adjust the mouth to be right near the surface of your 3D model, otherwise it will look funny when the user turns their head. You can use the 2D view to position the mouth, but then be sure to switch to the 3D view to adjust the face inset in the Z-direction. Add a Face Inset and make sure that Face Region is set to Mouth. Now that we have our model imported, let's add the eyes and mouth. Then add a Head Binding, delete the Face Occluder, and attach your 3D model to the Head Binding. Start off by importing your 3D model and background image. Once you have your assets ready, open up Lens Studio. If you absolutely must make another potato lens, make sure it is distinct and add your own personal flair to it. Whether you find an existing model or create your own, there are plenty of things to choose from. That lens already exists and was done very well. As you can see you don't need a complicated rig, so the setup should be pretty easy.ĭon't create another potato lens. If you haven't rigged before, feel free to look up a tutorial for whatever 3D software you are using. For the rig I added only two bones - the main root bone is at the top of the model and my second bone (the one I want to control the wobble with) is at the bottom of the model. For my lens I am going to use a model of a peanut that I found. The 3D model can be as simple or complex as you like, the only condition is that it has some sort of rig. The two main ingredients are a background image of some sort and a 3D model. You don't need much to create this type of lens. Being the nice guy that he is, he said yes. This style of lens is a signature look of Phil, so I asked him if it would be okay to make a tutorial about recreating the effect. He unfortunately never received a shout-out from either the original meme nor from SNL, so let's show him some love and go subscribe to him on Snapchat at the very least. Phil's Banana lens, which is the same style of lens as the Potato, was used on SNL. That turned the Potato into a cultural phenomenon. The Potato lens was created by Phil Walton and it went mega-viral after someone shared a picture on Twitter of their boss who got stuck as the potato during a work call. You can see an example of this type of effect by clicking here or by scanning the snapcode below. We'll go over how to add some wobbly motion to a 3D object and how to set up the background image so that it looks good on any screen size. In this tutorial we'll go over how to create a "Potato Boss" style lens using Lens Studio.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |