Examples
Explore what you can create with Luna Video Mapping Library. These examples demonstrate the core features and workflows.
Basic Examples
1. Empty project
File: emptyProject/emptyProject.pde
This project with no media and no configuration saved. Used it to start you new project.
2. Multi-Scene Management
File: basicProject/basicProject.pde
Manage multiple scenes with smooth transitions between different scenes. Switch between scenes using space bar keyboard controls with professional cross-fade effects.
Features demonstrated: - Scene creation and management - Smooth cross-fade transitions - Keyboard-controlled scene switching
Advanced Examples
3. Generative Content Integration
File: generator/generator.pde
Combine custom generative content with video mapping. Create dynamic visuals that can be mapped onto 3D surfaces using your own code-based generators. This example displays a simple bouncing ball to illustrate how the LunaContentGenerator interface works.
Features demonstrated: - Custom content generator creation - Integration of code-based visuals - Real-time generative mapping
4. Camera Feed
File: cameraFeed/cameraFeed.pde
This example shows that any global variable, such as the camera feed, can be passed to the generator.
Features demonstrated: - Global variable passed to the generator
Getting the Examples
All examples are included when you download Luna. Find them in:
Folder: Processing/libraries/LunaMapping/examples/
Create Your Own
Ready to build something unique? Check out the API Reference for detailed documentation on all classes and methods.
Need inspiration? The examples folder contains working sketches you can run immediately after installation.