aboutsummaryrefslogtreecommitdiff
path: root/config/6thFloorOSC.xml
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-02-01 23:14:12 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-02-01 23:14:12 -0500
commit5a97e7548b0ec44f0d61a724903748197e69df7c (patch)
tree7bb6b8ea7e488949eeb16ae18b0ad2230f1f7c9b /config/6thFloorOSC.xml
parent082e4b0c53123dd377da148541f7d98516716862 (diff)
parent482a94fd48627153b923931d6ff21ebf57fad6f7 (diff)
Merge branch 'osc' of github.com:rcoh/SmootLight into osc
Diffstat (limited to 'config/6thFloorOSC.xml')
-rw-r--r--config/6thFloorOSC.xml112
1 files changed, 92 insertions, 20 deletions
diff --git a/config/6thFloorOSC.xml b/config/6thFloorOSC.xml
index ce60c74..f834694 100644
--- a/config/6thFloorOSC.xml
+++ b/config/6thFloorOSC.xml
@@ -29,9 +29,9 @@
</PixelMapper>
</PixelMapperConfiguration>
<RendererConfiguration>
- <Renderer>
+ <!--Renderer>
<InheritsFrom>renderers/60StripSeq.xml</InheritsFrom>
- </Renderer>
+ </Renderer-->
<Renderer>
<InheritsFrom>renderers/Pygame.xml</InheritsFrom>
</Renderer>
@@ -41,10 +41,18 @@
<Class>inputs.OSCInput</Class>
<Args>
<Id>osc</Id>
- <Port>12345</Port>
+ <Port>1234</Port>
<RefreshInterval>10</RefreshInterval>
</Args>
</InputElement>
+ <!--InputElement>
+ <Class>inputs.OSCInput</Class>
+ <Args>
+ <Id>osc</Id>
+ <Port>12345</Port>
+ <RefreshInterval>20</RefreshInterval>
+ </Args>
+ </InputElement-->
<InputElement>
<Class>inputs.PygameInput</Class>
<Args><!--Passed as a dictionary-->
@@ -52,14 +60,14 @@
<RefreshInterval>10</RefreshInterval>
</Args>
</InputElement>
- <!--<InputElement>
+ <InputElement>
<Class>inputs.TCPInput</Class>
<Args>
<Id>tcp</Id>
<Port>20120</Port>
<RefreshInterval>10</RefreshInterval>
</Args>
- </InputElement>-->
+ </InputElement>
<InputElement Id="followmouse">
<InheritsFrom>inputs/MouseFollower.xml</InheritsFrom>
</InputElement>
@@ -71,13 +79,64 @@
</InputElement>
</InputConfiguration>
<BehaviorConfiguration>
- <Behavior>
- <Class>behaviors.EchoBehavior</Class>
+ <Behavior>
+ <Class>behaviors.EchoBehavior</Class>
+ <Args>
+ <Id>echo</Id>
+ <z-index>0</z-index>
+ <RenderToScreen>False</RenderToScreen>
+ </Args>
+ </Behavior>
+ <Behavior>
+ <Class>behaviors.BehaviorChain</Class>
+ <Args>
+ <Id>moveanddecay</Id>
+ <Inputs>
+ <Id>tcp</Id>
+ </Inputs>
+ <ChainedBehaviors>
+ <Id>move</Id>
+ <Id>decay</Id>
+ </ChainedBehaviors>
+ <RenderToScreen>True</RenderToScreen>
+ <Mapper>gaussmap</Mapper>
+ </Args>
+ </Behavior>
+ <Behavior>
+ <Class>behaviors.MoveBehavior</Class>
+ <Args>
+ <Id>move</Id>
+ <XStep>3</XStep>
+ <YStep>3</YStep>
+ </Args>
+ </Behavior>
+ <!--Behavior>
+ <Class>behaviors.MobileShakeBehavior</Class>
+ <Args>
+ <Id>mobileshake</Id>
+ <SizeMult>3</SizeMult>
+ </Args>
+ </Behavior>
+ <Behavior>
+ <Class>behaviors.BehaviorChain</Class>
+ <Args>
+ <Id>shakeanddecay</Id>
+ <Inputs>
+ <Id>tcp</Id>
+ </Inputs>
+ <ChainedBehaviors>
+ <Id>mobileshake</Id>
+ <Id>slowdecay</Id>
+ </ChainedBehaviors>
+ <RenderToScreen>True</RenderToScreen>
+ <Mapper>simplemap</Mapper>
+ </Args>
+ </Behavior-->
+ <Behavior>
<Args>
- <Id>echo</Id>
- <z-index>0</z-index>
- <RenderToScreen>False</RenderToScreen>
+ <Id>sixaxis</Id>
</Args>
+ <Class>behaviors.ControllerOSC</Class>
</Behavior>
<Behavior>
<Args>
@@ -129,7 +188,7 @@
<LocationRestriction>{y}&lt;0 or {y}&gt;200</LocationRestriction>
</Args>
</Behavior>
- <Behavior>
+ <!--Behavior>
<Class>behaviors.BehaviorChain</Class>
<Args>
<Id>movebounce</Id>
@@ -156,8 +215,8 @@
<RenderToScreen>True</RenderToScreen>
<Mapper>gaussmap</Mapper>
</Args>
- </Behavior>
- <Behavior>
+ </Behavior-->
+ <!--Behavior>
<Class>behaviors.DebugBehavior</Class>
<Args>
<Id>debug</Id>
@@ -166,7 +225,7 @@
<Id>pygame</Id>
</Inputs>
</Args>
- </Behavior>
+ </Behavior-->
<Behavior>
<Class>behaviors.AllPixelsLeft</Class>
<Args>
@@ -186,7 +245,7 @@
<Id>allpixels</Id>
</Args>
</Behavior>
- <Behavior Id="recursivedecay">
+ <!--Behavior Id="recursivedecay">
<InheritsFrom>behaviors/LoopAndDie.xml</InheritsFrom>
<Args>
<InitialResponseCount>50</InitialResponseCount>
@@ -208,8 +267,8 @@
<RenderToScreen>False</RenderToScreen>
<Mapper>gaussmap</Mapper>
</Args>
- </Behavior>
- <Behavior>
+ </Behavior-->
+ <!--Behavior>
<Class>behaviors.BehaviorChain</Class>
<Args>
<Id>randomwalk</Id>
@@ -261,14 +320,27 @@
<Id>recursivedecay</Id>
</ChainedBehaviors>
</Args>
+ </Behavior-->
+ <Behavior>
+ <Class>behaviors.BehaviorChain</Class>
+ <Args>
+ <Id>SixaxisChase</Id>
+ <Inputs>
+ <Id>osc</Id>
+ </Inputs>
+ <ChainedBehaviors>
+ <Id>sixaxis</Id>
+ <Id>singleframe</Id>
+ </ChainedBehaviors>
+ <RenderToScreen>True</RenderToScreen>
+ <Mapper>gaussmap</Mapper>
+ </Args>
</Behavior>
<Behavior>
<Class>behaviors.BehaviorChain</Class>
<Args>
- <Id>mousechaser</Id>
+ <Id>OSCTouchChase</Id>
<Inputs>
- <!--Id>followmouse</Id-->
- <Id>tcp</Id>
<Id>osc</Id>
</Inputs>
<ChainedBehaviors>