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
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.
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.
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.
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).