Ejemplo n.º 1
0
        public override void OnOSC(string address, List <object> data)
        {
            switch (address)
            {
            case "/posteffects/repeat/count":
                count = Mathf.Max(1, OSCUtils.GetFValue(data));
                break;

            case "/posteffects/repeat/horizontal":
                horizontal = OSCUtils.GetBoolFlag(data);
                break;

            case "/posteffects/repeat/offset":
                offset = OSCUtils.GetFValue(data);
                break;

            case "/posteffects/repeat/random":
                randomize = OSCUtils.GetBoolFlag(data);
                break;

            case "/posteffects/repeat/randomize":
                Randomize();
                break;
            }
        }
Ejemplo n.º 2
0
        public override void OnOSC(string address, List <object> data)
        {
            switch (address)
            {
            case "/camera/view/fixed/randomize":
                if (!activated)
                {
                    return;
                }
                Randomize();
                break;

            case "/camera/view/fixed/next":
                Next();
                break;

            case "/camera/view/fixed/prev":
                Prev();
                break;

            case "/camera/view/fixed/point":
                current = OSCUtils.GetIValue(data);
                break;
            }
        }
Ejemplo n.º 3
0
        public override void OnOSC(string address, List <object> data)
        {
            switch (address)
            {
            case "/skybox/reactive":
                skyboxReactive = OSCUtils.GetBoolFlag(data);
                break;

            case "/center/reactive":
                centerReactive = OSCUtils.GetBoolFlag(data);
                break;

            case "/skybox/color":
                skyboxColor = OSCUtils.GetColorValue(data);
                break;

            case "/skybox/intensity":
                skyboxIntensity = OSCUtils.GetFValue(data);
                break;

            case "/light/env":
                envIntensity = OSCUtils.GetFValue(data);
                break;

            case "/light/center":
                break;

            case "/light/center/flash":
                center.Flash();
                break;
            }
        }
Ejemplo n.º 4
0
 public override void OnOSC(string address, List <object> data)
 {
     switch (address)
     {
     case "/leader/enabled":
         light.enabled = renderer.enabled = OSCUtils.GetBoolFlag(data);
         break;
     }
 }
Ejemplo n.º 5
0
        public override void OnOSC(string address, List <object> data)
        {
            switch (address)
            {
            case "/posteffects/distortion/t":
                t = OSCUtils.GetFValue(data);
                break;

            case "/posteffects/distortion/speed":
                speed = OSCUtils.GetFValue(data);
                break;
            }
        }
Ejemplo n.º 6
0
        public override void OnOSC(string address, List <object> data)
        {
            switch (address)
            {
            case "/channel/alpha":
                alpha = OSCUtils.GetFValue(data);
                break;

            case "/channel/inverse":
                inverse = OSCUtils.GetBoolFlag(data);
                break;
            }
        }
Ejemplo n.º 7
0
        public override void OnOSC(string address, List <object> data)
        {
            switch (address)
            {
            case "/posteffects/mirror/horizontal":
                horizontal = OSCUtils.GetBoolFlag(data, 0);
                left       = OSCUtils.GetBoolFlag(data, 1);
                break;

            case "/posteffects/mirror/vertical":
                vertical = OSCUtils.GetBoolFlag(data, 0);
                up       = OSCUtils.GetBoolFlag(data, 1);
                break;
            }
        }
Ejemplo n.º 8
0
        public override void OnOSC(string address, List <object> data)
        {
            switch (address)
            {
            case "/posteffects/inverse":
                break;

            case "/posteffects/inverse/t":
                t = OSCUtils.GetFValue(data);
                break;

            case "/posteffects/inverse/toggle":
                t = Mathf.Clamp01(1f - t);
                break;
            }
        }
Ejemplo n.º 9
0
        public override void OnOSC(string addr, List <object> data)
        {
            switch (addr)
            {
            case "/posteffects/block_noise/t":
                t = OSCUtils.GetFValue(data);
                break;

            case "/posteffects/block_noise/shift":
                shift = OSCUtils.GetFValue(data);
                break;

            case "/posteffects/block_noise/speed":
                speed = OSCUtils.GetFValue(data);
                break;
            }
        }
Ejemplo n.º 10
0
        public override void OnOSC(string address, List <object> data)
        {
            switch (address)
            {
            case "/audio_reactor/lowpass/threshold":
                lowpass.threshold = OSCUtils.GetFValue(data);
                break;

            case "/audio_reactor/bandpass/threshold":
                bandpass.threshold = OSCUtils.GetFValue(data);
                break;

            case "/audio_reactor/highpass/threshold":
                highpass.threshold = OSCUtils.GetFValue(data);
                break;
            }
        }
Ejemplo n.º 11
0
        public void OnOSC(string address, List <object> data)
        {
            switch (address)
            {
            case "/trails/throttle":
                _throttle = OSCUtils.GetFValue(data, 0);
                break;

            case "/trails/drag":
                drag = OSCUtils.GetFValue(data);
                break;

            case "/trails/spread":
                attractorSpread = OSCUtils.GetFValue(data);
                break;
            }
        }
Ejemplo n.º 12
0
        public override void OnOSC(string address, List <object> data)
        {
            switch (address)
            {
            case "/camera/view/polar/randomize":
                if (!activated)
                {
                    return;
                }
                Randomize();
                break;

            case "/camera/view/polar/reactive":
                reactive = OSCUtils.GetBoolFlag(data);
                break;
            }
        }
Ejemplo n.º 13
0
        public override void OnOSC(string address, List <object> data)
        {
            switch (address)
            {
            case "/crowd/throttle":
                throttle = OSCUtils.GetFValue(data, 0);
                break;

            case "/crowd/mode":
                mode = (CrowdMode)OSCUtils.GetIValue(data);
                break;

            case "/crowd/reset":
                Reset();
                break;

            case "/crowd/face/use":
                useFace = OSCUtils.GetFValue(data);
                break;

            case "/crowd/face/speed":
                faceScrollSpeed = OSCUtils.GetFValue(data);
                break;

            case "/crowd/face/random":
                faceRandom = OSCUtils.GetFValue(data);
                break;

            case "/crowd/emission/use":
                useEmission = OSCUtils.GetBoolFlag(data);
                break;

            case "/crowd/emission/rate":
                emissionRate = Mathf.Clamp01(OSCUtils.GetFValue(data));
                break;

            case "/crowd/emission/speed":
                emissionSpeed = OSCUtils.GetFValue(data);
                break;

            case "/crowd/emission/random":
                emissionRandom = OSCUtils.GetFValue(data);
                break;
            }
        }
Ejemplo n.º 14
0
        public override void OnOSC(string address, List <object> data)
        {
            switch (address)
            {
            case "/camera/view/bird/randomize":
                if (!activated)
                {
                    return;
                }
                Randomize();
                break;

            case "/camera/view/bird/distance":
                distanceRange = OSCUtils.GetV2Value(data);
                distance      = Mathf.Clamp(distance, distanceRange.x, distanceRange.y);
                UpdateDistance(distance);
                break;
            }
        }
Ejemplo n.º 15
0
        public override void OnOSC(string address, List <object> data)
        {
            switch (address)
            {
            case "/voxel/visible":
                voxelVisible = OSCUtils.GetBoolFlag(data);
                break;

            case "/voxel/particle/mode":
                PMode = (ParticleMode)OSCUtils.GetIValue(data);
                break;

            case "/voxel/control/mode":
                VMode = (VoxelMode)OSCUtils.GetIValue(data);
                break;

            case "/voxel/flow":
                FlowRandom(OSCUtils.GetFValue(data, 1));
                break;

            case "/voxel/emission/animate":
                useEmission = OSCUtils.GetBoolFlag(data);
                break;

            case "/voxel/emission/gradient":
                UpdateGradient(OSCUtils.GetIValue(data, 0, 0));
                break;

            case "/voxel/emission/speed":
                emissionSpeed = OSCUtils.GetFValue(data);
                break;

            case "/voxel/emission/rate":
                emissionRate = OSCUtils.GetFValue(data);
                break;

            case "/voxel/emission/random":
                emissionRandom = OSCUtils.GetFValue(data);
                break;
            }
        }
Ejemplo n.º 16
0
        public override void OnOSC(string address, List <object> data)
        {
            switch (address)
            {
            case "/city/center":
                center = OSCUtils.GetFValue(data);
                break;

            case "/city/wireframe":
                wireframe = OSCUtils.GetFValue(data);
                break;

            case "/city/emission/color":
                emission = OSCUtils.GetColorValue(data);
                break;

            case "/city/emission/intensity":
                emissionIntensity = OSCUtils.GetFValue(data);
                break;

            case "/city/texture":
                useTexture = OSCUtils.GetFValue(data);
                break;

            case "/city/noise/scale":
                noiseScale = OSCUtils.GetFValue(data);
                break;

            case "/city/noise/intensity":
                noiseIntensity = OSCUtils.GetFValue(data);
                break;

            case "/city/noise/speed":
                noiseSpeed = OSCUtils.GetFValue(data);
                break;

            case "/city/noise/reactive":
                reactive = OSCUtils.GetBoolFlag(data);
                break;
            }
        }
Ejemplo n.º 17
0
        public override void OnOSC(string address, List <object> data)
        {
            switch (address)
            {
            case "/camera/view":
                UpdateView((ViewType)OSCUtils.GetIValue(data, 0));
                break;

            case "/posteffects/edge_detection/t":
                edgeDetection.t.value = OSCUtils.GetFValue(data);
                break;

            case "/posteffects/edge_detection/edge_color":
                edgeDetection.edgeColor.value = OSCUtils.GetColorValue(data);
                break;

            case "/posteffects/edge_detection/bg_color":
                edgeDetection.bgColor.value = OSCUtils.GetColorValue(data);
                break;
            }
        }
Ejemplo n.º 18
0
        public override void OnOSC(string address, List <object> data)
        {
            switch (address)
            {
            case "/city_voxel/particle_mode":
                particleMode = (ParticleMode)OSCUtils.GetIValue(data);
                break;

            case "/city_voxel/flow":
                FlowRandom(OSCUtils.GetFValue(data, 1, 0.1f));
                break;

            case "/city_voxel/voxel_mode":
                voxelMode = (CityVoxelMode)OSCUtils.GetIValue(data);
                break;

            case "/city_voxel/level":
                level = OSCUtils.GetIValue(data);
                break;

            case "/city_voxel/size":
                size = OSCUtils.GetFValue(data);
                break;

            case "/city_voxel/edge":
                edge = OSCUtils.GetFValue(data);
                break;

            case "/city_voxel/capture":
                useCapture = OSCUtils.GetFValue(data);
                break;

            case "/city_voxel/pack":
                usePack = OSCUtils.GetFValue(data);
                break;

            case "/city_voxel/resolution":
                gridResolution = OSCUtils.GetIValue(data);
                break;

            case "/city_voxel/resolution/reactive":
                resolutionReactive = OSCUtils.GetBoolFlag(data);
                break;

            case "/city_voxel/tile/reset":
                ResetTileOffset();
                break;

            case "/city_voxel/tile/speed/x":
                tileSpeedX = OSCUtils.GetFValue(data);
                break;

            case "/city_voxel/tile/speed/y":
                tileSpeedY = OSCUtils.GetFValue(data);
                break;

            case "/city_voxel/tile/reactive":
                tileReactive = OSCUtils.GetBoolFlag(data);
                break;

            case "/city_voxel/emission/use":
                useEmission = OSCUtils.GetBoolFlag(data);
                break;

            case "/city_voxel/emission/rate":
                emissionRate = OSCUtils.GetFValue(data);
                break;

            case "/city_voxel/emission/speed":
                emissionSpeed = OSCUtils.GetFValue(data);
                break;

            case "/city_voxel/emission/random":
                emissionRandom = OSCUtils.GetFValue(data);
                break;
            }
        }