There are limitations to the types of Lenses that can be created using Lens Studio and how they can be distributed on Snapchat. Snapchat’s Lens Studio is similar to Facebook’s AR Studio, which the company unveiled in April for developers to produce “camera effects” (Facebook’s version of Snapchat’s Lenses) and made more widely available earlier this week. On Thursday, Snapchat launched Lens Studio, a desktop app for Mac and Windows that anyone can use to create augmented-reality Lenses that can be applied to photos and videos shared on Snapchat. Now Snapchat is democratizing the format so that anyone, including brands, can create their own Lenses and attach them to posts, as well as ads on Snapchat. Since the mobile app introduced Lenses in September 2015, its in-house team has created more than 3,000 Lenses, and on a typical day, roughly 70 million people interact with Lenses for more than three minutes on average, according to the company. Connect the output of the Texture 2D Sample to the bottom input and set the blend mode to Overlay.Snapchat’s Lenses have largely been responsible for popularizing augmented reality. Take this gray version and connect it to the top Base input of the Blend node. If you were to connect the output of the Add node to the Shader node, you would see a mostly gray image with the fine detail of the original image. Neutral gray has RGB values of 128, 128, 128. Connect the output of the Subtract node to the top input of the Add node and select neutral gray as the bottom input. Now connect that output to the top input of the Subtract node. Our original image in the Texture 2D Object Parameter node can't directly be connected to the Subtract node, so connect it to the Texture 2D Sample node along with the Surface UV Coord 0 node. Connect the output of the Gaussian Blur to the bottom input of the Subtract. The first thing we are going to do is subtract our blurred image from the original. Now add Texture 2D Sample, Subtract, Add, and Blend nodes. Setting up the Gaussian Blur node Finishing it up You can add a Float Parameter node and connect it to the Blur Factor input which will let you control that value from the material's Inspector Panel. At this point you should be able to set the Blur Factor on the Gaussian Blur node and see a blurry image in the Lens Preview. Set the input texture to be a Screen Texture (the Screen Texture should have been added inside a Textures folder when you added the post effect, otherwise you can add it yourself in the Resources Panel). If you select the Graph Empty material in the Resources Panel, you should see a texture input slot in the Inspector panel. Next connect the output of the Gaussian Blur node to the Color input of the Shader node. Select the Gaussian Blur node and set the Pixel Size input to something like 0.001 for both values. Connect the output of the Texture 2D Object Parameter to the Texture input on the Gaussian Blur node and connect the Surface UV Coord 0 to the TexCoords input of the Gaussian Blur. The Texture 2D object parameter node lets us select an input image for the effect. Add a Texture 2D Obect Parameter node, a Surface UV Coord 0 node, and a Gaussian Blur node. The first thing we need to do is blur the image. Creating the sharpen effect Adding the blur Open up the Graph Empty material in the material editor and we are ready to get started. At this point the lens preview should be solid white. Select the post effect and then in the Inspector Panel change the material to the Graph Empty material that you just added. In the Resources Panel add a Graph Empty Material and in the Objects Panel add a Color Correction Post Effect. The inspiration for this effect comes from an article on creating a face smoothing effect, but instead of smoothing out the details we are going to enhance them.įor this tutorial we are going to start with a blank project. Snapcode for lens with sharpening effect Setting up the scene
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |