Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions examples/basicProject/basicProject.pde
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
*/


/* In this example, a few files were included in the data folder.
*
/* Befor running this sketch, include all necessary media files
* in the data folder. The library will find them and made
* them available in the left panel.
*/

import paletai.mapping.*;

//Luna need this two complementary libraries to work
Expand All @@ -23,6 +24,11 @@ import processing.video.*;

Project project;

// Called every time a new frame is available to read
void movieEvent(Movie m) {
m.read();
}

void setup() {
fullScreen(P2D, SPAN); //This should always be FullScreen, P2D and SPAN
project = new Project(this, "NewProject"); //Name your project here
Expand Down
Binary file added examples/basicProject/data/4937374-30Fps.mp4
Binary file not shown.
Binary file added examples/basicProject/data/6289176-30Fps.mp4
Binary file not shown.
Binary file added examples/basicProject/data/9720247-30Fps.mp4
Binary file not shown.
51 changes: 18 additions & 33 deletions examples/basicProject/data/NewProject.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,69 +4,54 @@
<Screen id="0"/>
</Screens>
<Scenes>
<Scene/>
<Scene>
<MediaItem Screen="0" height="1920" id="0" isGenerator="0" name="emptyRoad.jpg" width="1280">
<MediaItem Screen="0" height="0" id="0" isGenerator="0" name="4937374-30Fps.mp4" width="0">
<xyN>
<point index="0" x="-0.001278409" y="1.0045455"/>
<point index="1" x="0.9987215" y="1.0045455"/>
<point index="2" x="0.9998579" y="0.35227275"/>
<point index="3" x="0.0014204199" y="0.3795454"/>
</xyN>
<uvN>
<point index="0" x="0.43224424" y="0.9386363"/>
<point index="1" x="0.9691761" y="0.9477272"/>
<point index="2" x="0.9794034" y="0.41136366"/>
<point index="3" x="0.35426134" y="0.39545453"/>
<point index="0" x="0.08088651" y="0.8568182"/>
<point index="1" x="0.5523892" y="0.92727274"/>
<point index="2" x="0.55877817" y="0.24999994"/>
<point index="3" x="0.11794229" y="0.23636371"/>
</uvN>
</MediaItem>
</Scene>
<Scene>
<MediaItem Screen="0" height="811" id="0" isGenerator="0" name="painting1.jpg" width="640">
<MediaItem Screen="0" height="0" id="0" isGenerator="0" name="6289176-30Fps.mp4" width="0">
<xyN>
<point index="0" x="0.0" y="1.0"/>
<point index="1" x="1.0" y="1.0"/>
<point index="2" x="1.0" y="0.0"/>
<point index="3" x="0.0" y="0.0"/>
</xyN>
<uvN>
<point index="0" x="0.43224424" y="0.9386363"/>
<point index="1" x="0.9691761" y="0.9477272"/>
<point index="2" x="0.9794034" y="0.41136366"/>
<point index="3" x="0.35426134" y="0.39545453"/>
<point index="0" x="0.034659054" y="0.9522727"/>
<point index="1" x="0.4181818" y="0.9840908"/>
<point index="2" x="0.4335227" y="0.35681802"/>
<point index="3" x="0.03210224" y="0.3545453"/>
</uvN>
</MediaItem>
</Scene>
<Scene>
<MediaItem Screen="0" height="360" id="0" isGenerator="0" name="legsDance_640_360_25fps.mp4" width="640">
<MediaItem Screen="0" height="0" id="1" isGenerator="0" name="9720247-30Fps.mp4" width="0">
<xyN>
<point index="0" x="0.0" y="1.0"/>
<point index="1" x="1.0" y="1.0"/>
<point index="2" x="1.0" y="0.0"/>
<point index="3" x="0.0" y="0.0"/>
</xyN>
<uvN>
<point index="0" x="0.0" y="1.0"/>
<point index="1" x="1.0" y="1.0"/>
<point index="2" x="1.0" y="0.0"/>
<point index="3" x="0.0" y="0.0"/>
</uvN>
</MediaItem>
</Scene>
<Scene>
<MediaItem Screen="0" height="0" id="0" isGenerator="0" name="ballet30fps.mp4" width="0">
<xyN>
<point index="0" x="0.0" y="1.0"/>
<point index="1" x="1.0" y="1.0"/>
<point index="2" x="1.0" y="0.0"/>
<point index="3" x="0.0" y="0.0"/>
</xyN>
<uvN>
<point index="0" x="0.0" y="1.0"/>
<point index="1" x="1.0" y="1.0"/>
<point index="2" x="1.0" y="0.0"/>
<point index="3" x="0.0" y="0.0"/>
<point index="0" x="0.51150566" y="0.95"/>
<point index="1" x="0.962784" y="0.95454544"/>
<point index="2" x="0.9078125" y="0.32954544"/>
<point index="3" x="0.4539772" y="0.27272737"/>
</uvN>
</MediaItem>
</Scene>
<Scene/>
<Scene/>
</Scenes>
</NewProject>
18 changes: 0 additions & 18 deletions examples/basicProject/data/Pexels credits.txt

This file was deleted.

Binary file not shown.
5 changes: 5 additions & 0 deletions examples/cameraFeed/cameraFeed.pde
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ int camWidth, camHeight;
PGraphics2D pgCamA;


// Called every time a new frame is available to read
void movieEvent(Movie m) {
m.read();
}

void setup() {
fullScreen(P2D, SPAN); //Always FullScreen, P2D and SPAN
initCam();
Expand Down
26 changes: 26 additions & 0 deletions examples/cameraFeed/data/generators.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<generators name="generators" type="Luna Video Mapping project">
<Screens>
<Screen id="0"/>
</Screens>
<Scenes>
<Scene/>
<Scene>
<MediaItem Screen="0" height="720" id="0" isGenerator="1" name="Camera" width="1280">
<xyN>
<point index="0" x="0.0" y="1.0"/>
<point index="1" x="1.0" y="1.0"/>
<point index="2" x="1.0" y="0.0"/>
<point index="3" x="0.0" y="0.0"/>
</xyN>
<uvN>
<point index="0" x="0.27755678" y="0.92727274"/>
<point index="1" x="0.74801135" y="0.9613636"/>
<point index="2" x="0.815767" y="0.047727287"/>
<point index="3" x="0.1816761" y="0.052272737"/>
</uvN>
</MediaItem>
</Scene>
<Scene/>
</Scenes>
</generators>
5 changes: 5 additions & 0 deletions examples/emptyProject/emptyProject.pde
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ import processing.video.*;

Project project;

// Called every time a new frame is available to read
void movieEvent(Movie m) {
m.read();
}

void setup() {
fullScreen(P2D, SPAN); //This should always be FullScreen, P2D and SPAN
project = new Project(this, "NewProject"); //Name your project here
Expand Down
5 changes: 4 additions & 1 deletion examples/generator/generator.pde
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ Project project;

import processing.opengl.PGraphics2D;


// Called every time a new frame is available to read
void movieEvent(Movie m) {
m.read();
}

void setup() {
fullScreen(P2D, SPAN); //Always FullScreen, P2D and SPAN
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ maxRevision=0
minRevision=0
name=Luna Video Mapping
paragraph=
prettyVersion=0.1.0-alpha
prettyVersion=1.0.0-beta
sentence=A video mapping library with a user interface.
url=https\://luna.art.br/
version=0
Loading