cailean
2 months ago
14 changed files with 371 additions and 63 deletions
Binary file not shown.
@ -0,0 +1,92 @@ |
|||
<surfaces> |
|||
<surface type="1"> |
|||
<vertices> |
|||
<vertex> |
|||
<x>280.000000000</x> |
|||
<y>-460.000000000</y> |
|||
</vertex> |
|||
<vertex> |
|||
<x>2200.000000000</x> |
|||
<y>-460.000000000</y> |
|||
</vertex> |
|||
<vertex> |
|||
<x>2200.000000000</x> |
|||
<y>500.000000000</y> |
|||
</vertex> |
|||
<vertex> |
|||
<x>280.000000000</x> |
|||
<y>500.000000000</y> |
|||
</vertex> |
|||
</vertices> |
|||
<texCoords> |
|||
<texCoord> |
|||
<x>0.000000000</x> |
|||
<y>0.000000000</y> |
|||
</texCoord> |
|||
<texCoord> |
|||
<x>1.000000000</x> |
|||
<y>0.000000000</y> |
|||
</texCoord> |
|||
<texCoord> |
|||
<x>1.000000000</x> |
|||
<y>1.000000000</y> |
|||
</texCoord> |
|||
<texCoord> |
|||
<x>0.000000000</x> |
|||
<y>1.000000000</y> |
|||
</texCoord> |
|||
</texCoords> |
|||
<source> |
|||
<source-type>fbo</source-type> |
|||
<source-name>stubborn_vectors</source-name> |
|||
</source> |
|||
<properties> |
|||
<perspectiveWarping>0</perspectiveWarping> |
|||
</properties> |
|||
</surface> |
|||
<surface type="1"> |
|||
<vertices> |
|||
<vertex> |
|||
<x>-1210.000000000</x> |
|||
<y>-338.000000000</y> |
|||
</vertex> |
|||
<vertex> |
|||
<x>610.000000000</x> |
|||
<y>-338.000000000</y> |
|||
</vertex> |
|||
<vertex> |
|||
<x>610.000000000</x> |
|||
<y>642.000000000</y> |
|||
</vertex> |
|||
<vertex> |
|||
<x>-1210.000000000</x> |
|||
<y>642.000000000</y> |
|||
</vertex> |
|||
</vertices> |
|||
<texCoords> |
|||
<texCoord> |
|||
<x>0.000000000</x> |
|||
<y>0.000000000</y> |
|||
</texCoord> |
|||
<texCoord> |
|||
<x>1.000000000</x> |
|||
<y>0.000000000</y> |
|||
</texCoord> |
|||
<texCoord> |
|||
<x>1.000000000</x> |
|||
<y>1.000000000</y> |
|||
</texCoord> |
|||
<texCoord> |
|||
<x>0.000000000</x> |
|||
<y>1.000000000</y> |
|||
</texCoord> |
|||
</texCoords> |
|||
<source> |
|||
<source-type>none</source-type> |
|||
<source-name>none</source-name> |
|||
</source> |
|||
<properties> |
|||
<perspectiveWarping>1</perspectiveWarping> |
|||
</properties> |
|||
</surface> |
|||
</surfaces> |
Binary file not shown.
@ -0,0 +1,21 @@ |
|||
#include "QuadSource.h" |
|||
|
|||
void QuadSource::setup(){ |
|||
// name
|
|||
name = "stubborn_vectors"; |
|||
|
|||
// allocate size
|
|||
allocate(1920, 960); |
|||
} |
|||
|
|||
|
|||
void QuadSource::update(){ |
|||
|
|||
} |
|||
|
|||
void QuadSource::draw(){ |
|||
// Fill FBO with our quads
|
|||
ofClear(0); |
|||
//ofBackground(255, 120, 10);
|
|||
fbo_in->draw(0, 0); |
|||
} |
@ -0,0 +1,17 @@ |
|||
#ifndef _QUADSOURCE |
|||
#define _QUADSOURCE |
|||
|
|||
#include "ofMain.h" |
|||
#include "FboSource.h" |
|||
|
|||
class QuadSource : public ofx::piMapper::FboSource{ |
|||
|
|||
public: |
|||
void setup(); |
|||
void update(); |
|||
void draw(); |
|||
|
|||
std::vector<ofRectangle> quads; |
|||
std::vector<float> quad_speeds; |
|||
}; |
|||
#endif |
Loading…
Reference in new issue