Skip to content

Demo of how to sample the camera texture and map it to particles.

Notifications You must be signed in to change notification settings

positlabs/spark-particle-uv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spark-particle-uv

Demo of how to sample the camera texture and map it to particles.

Features include:

  • per-particle texture scaling
  • world space mapping
  • fit plane type emitter to screen size
  • fit particle to screen size
  • determine distance between particle and camera

screenshot

Check out the branches for various techniques. Click to download.

  • Master is an aggregate of features that compose my preferred configuration
  • Particle fit2screen will give you a bigass particle that fits the whole screen
  • Camera distance assigns color to each particle based on distance from camera.

Notes

You may need to import DeviceMotion module in script to activate gyro support on device. For some reason this capability isn't automatically added for world space emitters.

Resources

Learn more stuff by watching my Spark AR Tutorials on YouTube!

Follow me on Instagram @positlabs and try out my effects!

Browse my open-source Spark AR repositories on Github!

Have questions? Join the Spark AR Community group on Facebook.

Donations

If you used this in client projects, or simply enjoyed making effects with my open-source projects, please consider a donation or sponsorship. One-time donations can be made with PayPal. Subscriptions can be through PayPal or Github Sponsors (click the heart sponsor button at the top of the page).

About

Demo of how to sample the camera texture and map it to particles.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published