Tracers or motion blur effectīen Knutson (another lens creator) has a neat little tutorial on creating a tracers or slow-mo effect using two separate render targets. If it's hard to see anything happening, choose a preview with more movement (I chose the "Dance" video). If you look in the Preview panel, you'll see your time warp effect working and reversing as your mask texture changes. Not to worry, we are ready to activate it! Select the default Render Target in the Resources Panel and change the Clear Color to "None." That's it. We've done a lot of work and are yet to see any sort of time warp going on. I also changed my Stretch Mode to Stretch because I'm paranoid like that. Set the Texture of the screen image to the Device Camera Texture and for the Opacity Texture select the Mask render target. Select your new screen image and swap out its material for this new unlit material. Now in the Resources Panel create an Unlit Material, change the blend mode from "Disabled" to "Normal," and enable the Opacity Texture. This should create a new Orthographic camera as well. Create the output imageĭeselect everything in the Objects Panel and create a new Screen Image (I renamed mine to Output). Now that we see our mask is doing something, return to the Scene Config and change the Live Target back to the default Render Target. For the script, find and select the "TweenScreenTransform" and adjust the settings as desired. Select the black screen image and add a script component. Delete everything that's nested under the Tween Manager and then move the Tween Manager itself to the top of the scene. In the Objects Panel, add a Tween Manager from the Helper Scripts menu. So far this is pretty boring, so let's add some motion to our mask. While we're here, drag the Mask render target to be rendered first (before the default Render Target). If you want to see your mask, head to the Scene Config and change the Live Target to the Mask render target. You should see nothing in the preview panel because we are outputting all of this to a separate render target. Use a plain black image for the texture on the duplicate.Duplicate the screen image and rename it to "black".Use a plain white image for the texture.Change the Stretch Mode to your liking (I went with Stretch).Create a new Screen Image, set it to the Mask layer, and rename to "white".You can import a custom image sequence or video, but for this tutorial I'm just going to create my own mask inside Lens Studio using a couple screen images. We are going to be applying this mask to a material later white will let our material show and black will hide it. Now that you have the camera, we need to create some sort of mask. Set the camera to a new layer (also named "Mask").Create a new Camera name it "Mask" or something descriptive.Create a new Render Target and name it Mask.The mask will determine where and how strongly our time warp is applied. Let's go! Create the mask cameraĪ key component of the time warp effect is our mask. Once everything is set up, we literally have to change one single option to make this effect work. Most of our time will be spent setting up our scene. You can see an example of this by clicking here or by scanning the snapcode below. We'll go over everything you need to know in this Lens Studio tutorial. This seemingly advanced lens is actually super easy to make, you just need to make one small tweak. If you have spent any time at all on Snapchat Spotlight, then you have seen the Screen Scanner Pro/Time Warp/Slit Scan lens in action.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |