"Scratch Art" with new Edge Detection ARCore Depth API Template
PinnedThought I would experiment with the new Depth Materials Template. When available, the depth templates can use depth data provided by Google’s ARCore Depth API to enhance the Lens experience--whether it be to occlude content by physical objects, get information about surfaces in the camera, or to create effects that respond to depth.
Goal:
Take the Depth Materials Template and configure the "Edge Detection" example to change color with the UI Control Template to create an effect similar to "Sketch Art".
Lens URL:
https://www.snapchat.com/unlock/?type=SNAPCODE&uuid=011aa1b00c3c4071badf3f9de44dcbc2&metadata=01
Snap Code
Preview
Other Creations
Build Notes:
- Downloaded new Depth Materials Template.
- Enabled the Edge Detection Example
- Added an Orthographic Camera by adding a screen image.
- Imported the UI Control Template and placed under the orthographic camera.
- Disabled all controls other than the UI Color Picker
- Setup the Scene Config and layers so that the UI toggle wouldn't appear in the Snap that was captured.
- Inspected the Edge Detection material to see which parameter needed to have the color input. Script Name "lineColor"
- Modified the UIColorPicker script to add the output of the color picker to the material.
- First added this line to be able to select the material.
- Next added a line to the updateColorVisual Function
- Then, modified the new properties of the UI Color Picker in the objects tree
- Lastly, tested and then added an icon and a preview.
- Published!
-
i have problem like i cant modify the script can you please help ne to do this
Comment actions -
Here’s my new lens..!
https://lens.snapchat.com/5cb9284244744fc4a71147b6119f8495
Snapcode:
My Snapchat Account:
Comment actions -
Here’s my new lens try on..
Snapcode:
Try the lens and share the comment:
https://www.snapchat.com/unlock/?type=SNAPCODE&uuid=c04b5351c7dc4337a01b53de8c35d1f8&metadata=01
My Snapchat Account:
Comment actions -
Lens description:
Play md lens (Snapchat) + aperture lens, which appears directly today in the large size and directly below it, contains the month and time, this lens contains 9 transitions to change the color.
Transfers:
These are some of the transitions that I used in designing the lens.
Try the lens and share the comment:
https://www.snapchat.com/unlock/?type=SNAPCODE&uuid=32eba3483a7a41d6b0c09cde43008dea&metadata=01
Snapcode:
My Snapchat Account:
https://www.snapchat.com/add/muhannadmujali
Vincent Tang , @...
Comment actions -
لعبة الدجاجة المجنونة
crazy chicken game
https://www.snapchat.com/unlock/?type=SNAPCODE&uuid=44f10d8911c5493a917878adbd9c8c55&metadata=01شاركوني رأيكم
Comment actions -
Sam Finding Really great job...that's good and keep adding more lenses..
keep up the good work :)
Thank you,
@...
Comment actions -
Great
Comment actions -
so cute
Comment actions -
nice job 🤙🏻
Comment actions -
Comment actions
-
Comment actions
Please sign in to leave a comment.
Have a comment?