- LENS STUDIO SNAPCHAT IMPORTING 3D HOW TO
- LENS STUDIO SNAPCHAT IMPORTING 3D DOWNLOAD
- LENS STUDIO SNAPCHAT IMPORTING 3D FREE
LENS STUDIO SNAPCHAT IMPORTING 3D FREE
I've found that 50 layers gives a pretty good feeling of depth, but feel free to adjust to your preferences. int numLayers = 50 - How many layers we want to use for the effect.We'll default to a value of 0.02 which gives pretty smooth results. float offset = 0.02 - The spacing between the layers.Asset.Texture textTexture - Though not strictly required for 3D text, by providing the Text Texture as input we can dynamically change what our text reads.SceneObject textImage - This is going to be the image which has our text applied to it and will be the base for the effect.SceneObject parent - This is the parent object that all our layers will live under.To make our script reusable and customizable, we need a few inputs. There are multiple ways to accomplish what we want to do. For this tutorial I am going to use the 'Pacifico' font which is built-in and can be imported directly through the Resources Panel.
LENS STUDIO SNAPCHAT IMPORTING 3D DOWNLOAD
Lens Studio has a few built-in fonts, or you can download and import a font of your choice. Font - This is optional, but go ahead and load in a custom font if you want.Our script will be reusable in other projects, so some sort of name like 'text3D' or something might be a good idea. Script - Create a new script and name it whatever you want.I recommend using just an Unlit material for this. Shadow Material - This is going to be the material that lies behind the face of our text and gets applied to each of our layers making up the effect.To keep things simple, you can start out with just an Unlit material and modify or replace it later. Main Material - This is going to the material for the face of our text.Go ahead and put some placeholder text in here for now.
Usually when working with text we either add a Text object or Screen Text in the Objects Panel, but for this we want to use a texture because this will let us apply different materials to it.
I came across ztext.js the other day and thought it was pretty cool. You can see an example of this by clicking here or by scanning the snapcode below.
LENS STUDIO SNAPCHAT IMPORTING 3D HOW TO
In this tutorial we'll go over how to create 3D text inside of Lens Studio.