diff options
author | Russell Cohen <rcoh@mit.edu> | 2010-12-01 19:46:14 -0500 |
---|---|---|
committer | Russell Cohen <rcoh@mit.edu> | 2010-12-01 19:46:14 -0500 |
commit | 0366f46d3d7e946e254f933888aea4beb4e70658 (patch) | |
tree | 81e69d857c41d9ff6ab0ee49315c26cd6112f3a9 /config/LightInstallationConfig.xml | |
parent | cf1f2224b3625b01a6aa7db221403849b308b3bc (diff) |
Added support for RecursiveHooks, RecursiveBehaviors and GaussianMapper
supporting Gaussian based pixel mapping.
Diffstat (limited to 'config/LightInstallationConfig.xml')
-rw-r--r-- | config/LightInstallationConfig.xml | 52 |
1 files changed, 47 insertions, 5 deletions
diff --git a/config/LightInstallationConfig.xml b/config/LightInstallationConfig.xml index 441b7e4..aa331af 100644 --- a/config/LightInstallationConfig.xml +++ b/config/LightInstallationConfig.xml @@ -31,13 +31,24 @@ </Args> </PixelStrip> </PixelConfiguration> - <PixelMapperConfiguration> + <!--<PixelMapperConfiguration> <PixelMapper> <Class>pixelmappers.SimpleMapper</Class> <Args> <Id>simplemap</Id> </Args> </PixelMapper> + </PixelMapperConfiguration>--> + <PixelMapperConfiguration> + <PixelMapper> + <Class>pixelmappers.GaussianMapper</Class> + <Args> + <Id>gaussmap</Id> + <CutoffDist>30</CutoffDist> + <Width>5</Width> + <Height>.5</Height> + </Args> + </PixelMapper> </PixelMapperConfiguration> <RendererConfiguration> <Renderer> @@ -47,7 +58,7 @@ <displaySize>(1300,50)</displaySize> </Args> </Renderer> - <!-- <Renderer> + <Renderer> <Class>renderers.IndoorRenderer</Class> <Args> <Id>indoorRenderer</Id> @@ -56,7 +67,7 @@ <PortMapping>{'strip1':1, 'strip2':2}</PortMapping> </PowerSupply> </Args> - </Renderer>--> + </Renderer> </RendererConfiguration> <InputConfiguration> <InputElement> @@ -67,6 +78,14 @@ </Args> </InputElement> <InputElement> + <Class>inputs.PygameInput</Class> + <Args><!--Passed as a dictionary--> + <Id>followmouse</Id> + <RefreshInterval>100</RefreshInterval> + <FollowMouse>True</FollowMouse> + </Args> + </InputElement> + <InputElement> <Class>inputs.UDPInput</Class> <Args> <Id>UDP</Id> @@ -102,7 +121,7 @@ <Args> <Id>decay</Id> <DecayType>Exponential</DecayType> - <Coefficient>.005</Coefficient> + <Coefficient>.001</Coefficient> <z-index>0</z-index> <RenderToScreen>False</RenderToScreen> <Inputs> @@ -120,6 +139,13 @@ </Args> </Behavior> <Behavior> + <Class>behaviors.RecursiveDecay</Class> + <Args> + <Id>recursivedecay</Id> + <InitialResponseCount>20000</InitialResponseCount> + </Args> + </Behavior> + <Behavior> <Class>behaviors.BehaviorChain</Class> <Args> <Id>runcolordecay</Id> @@ -131,6 +157,22 @@ <Id>running</Id> <Id>decay</Id> </ChainedBehaviors> + <RecursiveHooks>{'running':'recursivedecay'}</RecursiveHooks> + <RenderToScreen>True</RenderToScreen> + </Args> + </Behavior> + <Behavior> + <Class>behaviors.BehaviorChain</Class> + <Args> + <Id>mousechaser</Id> + <Inputs> + <Id>followmouse</Id> + </Inputs> + <ChainedBehaviors> + <Id>echo</Id> + <Id>colorchange</Id> + <Id>decay</Id> + </ChainedBehaviors> <RenderToScreen>True</RenderToScreen> </Args> </Behavior> @@ -141,7 +183,7 @@ <Inputs> <Id>pygame</Id> </Inputs> - <StepSize>10</StepSize> + <StepSize>1</StepSize> <RenderToScreen>False</RenderToScreen> </Args> </Behavior> |