on site edits

This commit is contained in:
Peter Slattery 2021-09-20 20:20:40 -04:00
parent b32ca1d092
commit d6eabfe3ac
8 changed files with 874 additions and 996 deletions

View File

@ -4,7 +4,7 @@ layers_count: 3;
blocks_count: 4; blocks_count: 4;
playable_range:{ playable_range:{
min: 0; min: 0;
max: 2000; max: 10000;
}; };
layers:{ layers:{
layer:{ layer:{
@ -24,7 +24,7 @@ blocks:{
block:{ block:{
frame_range:{ frame_range:{
min: 0; min: 0;
max: 2000; max: 19;
}; };
layer_index: 0; layer_index: 0;
animation_name: "Pattern_BulbMask"; animation_name: "Pattern_BulbMask";
@ -32,7 +32,7 @@ blocks:{
block:{ block:{
frame_range:{ frame_range:{
min: 0; min: 0;
max: 2000; max: 10000;
}; };
layer_index: 1; layer_index: 1;
animation_name: "Pattern_Leafy"; animation_name: "Pattern_Leafy";
@ -40,15 +40,15 @@ blocks:{
block:{ block:{
frame_range:{ frame_range:{
min: 0; min: 0;
max: 1032; max: 5156;
}; };
layer_index: 2; layer_index: 2;
animation_name: "Pattern_Rainbow"; animation_name: "Pattern_Rainbow";
}; };
block:{ block:{
frame_range:{ frame_range:{
min: 959; min: 5040;
max: 2000; max: 10000;
}; };
layer_index: 2; layer_index: 2;
animation_name: "Pattern_Wavy"; animation_name: "Pattern_Wavy";

View File

@ -1,7 +1,7 @@
lumenarium_animation_file; lumenarium_animation_file;
animation_name: "wavy_0"; animation_name: "wavy_0";
layers_count: 2; layers_count: 2;
blocks_count: 1; blocks_count: 2;
playable_range:{ playable_range:{
min: 0; min: 0;
max: 7200; max: 7200;
@ -9,11 +9,11 @@ playable_range:{
layers:{ layers:{
layer:{ layer:{
name: "[New Layer]"; name: "[New Layer]";
blend: "Add"; blend: "Overwrite";
}; };
layer:{ layer:{
name: "Color"; name: "Color";
blend: "Add"; blend: "Multiply";
}; };
}; };
blocks:{ blocks:{
@ -25,4 +25,12 @@ blocks:{
layer_index: 1; layer_index: 1;
animation_name: "Pattern_Wavy"; animation_name: "Pattern_Wavy";
}; };
block:{
frame_range:{
min: 78;
max: 3571;
};
layer_index: 0;
animation_name: "Pattern_Leafy";
};
}; };

View File

@ -1,132 +0,0 @@
lumenarium_animation_file;
animation_name: "demo_anim";
layers_count: 2;
blocks_count: 14;
playable_range:{
min: 0;
max: 10000;
};
layers:{
layer:{
name: "main";
blend: "Add";
};
layer:{
name: "color";
blend: "Multiply";
};
};
blocks:{
block:{
frame_range:{
min: 2428;
max: 3017;
};
layer_index: 0;
animation_name: "Pattern_HueShift";
};
block:{
frame_range:{
min: 1711;
max: 2487;
};
layer_index: 0;
animation_name: "Pattern_Rainbow";
};
block:{
frame_range:{
min: 0;
max: 603;
};
layer_index: 0;
animation_name: "Pattern_VerticalLines";
};
block:{
frame_range:{
min: 2945;
max: 3656;
};
layer_index: 0;
animation_name: "Pattern_Wavy";
};
block:{
frame_range:{
min: 3592;
max: 4296;
};
layer_index: 0;
animation_name: "Pattern_Patchy";
};
block:{
frame_range:{
min: 520;
max: 1225;
};
layer_index: 0;
animation_name: "Pattern_Rotary";
};
block:{
frame_range:{
min: 4218;
max: 4939;
};
layer_index: 0;
animation_name: "Pattern_LeafyPatchy";
};
block:{
frame_range:{
min: 4849;
max: 5431;
};
layer_index: 0;
animation_name: "Pattern_HueShift";
};
block:{
frame_range:{
min: 1149;
max: 1819;
};
layer_index: 0;
animation_name: "Pattern_Leafy";
};
block:{
frame_range:{
min: 5529;
max: 7782;
};
layer_index: 1;
animation_name: "Pattern_Wavy";
};
block:{
frame_range:{
min: 5529;
max: 5979;
};
layer_index: 0;
animation_name: "Pattern_Leafy";
};
block:{
frame_range:{
min: 5912;
max: 6328;
};
layer_index: 0;
animation_name: "Pattern_VerticalLines";
};
block:{
frame_range:{
min: 6281;
max: 6581;
};
layer_index: 0;
animation_name: "Pattern_Rotary";
};
block:{
frame_range:{
min: 6524;
max: 7025;
};
layer_index: 0;
animation_name: "Pattern_HueShift";
};
};

View File

@ -328,7 +328,7 @@ Pattern_Leafy(led_buffer* Leds, led_buffer_range Range, assembly Assembly, r32 T
{ {
DEBUG_TRACK_FUNCTION; DEBUG_TRACK_FUNCTION;
blumen_lumen_state* BLState = (blumen_lumen_state*)UserData; blumen_lumen_state* BLState = (blumen_lumen_state*)UserData;
Time = Time * BLState->PatternSpeed; Time = Time * BLState->PatternSpeed * .3f;
phrase_hue Hue = BlumenLumen_GetCurrentHue(BLState, Assembly); phrase_hue Hue = BlumenLumen_GetCurrentHue(BLState, Assembly);
v4 C0 = RGBFromPhraseHue(Hue.Hue0); v4 C0 = RGBFromPhraseHue(Hue.Hue0);

View File

@ -574,6 +574,8 @@ BlumenLumen_CustomUpdate(gs_data UserData, app_state* State, context* Context)
} }
} }
if (BLState->InPhraseReceptionMode) if (BLState->InPhraseReceptionMode)
{ {
r32 SecondsSincePhraseBegan = SecondsElapsed(BLState->TimePhraseReceptionBegan, Context->SystemTime_Current); r32 SecondsSincePhraseBegan = SecondsElapsed(BLState->TimePhraseReceptionBegan, Context->SystemTime_Current);
@ -759,7 +761,7 @@ BlumenLumen_CustomUpdate(gs_data UserData, app_state* State, context* Context)
} }
// Dim the leds based on temp data // Dim the leds based on temp data
if (!BLState->DEBUG_IgnoreWeatherDimmingLeds) if (false && !BLState->DEBUG_IgnoreWeatherDimmingLeds)
{ {
for (u32 i = 0; i < State->LedSystem.BuffersCount; i++) for (u32 i = 0; i < State->LedSystem.BuffersCount; i++)
{ {

View File

@ -57,7 +57,7 @@ global time_range LedOnTimes[] = {
{ 00, 00, 06, 30 }, { 00, 00, 06, 30 },
}; };
global u32 LedOnTimesCount = CArrayLength(LedOnTimes); // do not edit global u32 LedOnTimesCount = CArrayLength(LedOnTimes); // do not edit
global b8 DEBUGIgnoreLedOnTimeRange = true; global b8 DEBUGIgnoreLedOnTimeRange = false;
// How long it takes to fade from the default pattern to the // How long it takes to fade from the default pattern to the
// voice activated pattern // voice activated pattern

View File

@ -158,8 +158,8 @@ BuildFlower(gs_string* OutputBuffer, flower_desc Desc)
#if 1 #if 1
// the flower stem // the flower stem
loop_desc FlowerStem = {}; loop_desc FlowerStem = {};
FlowerStem.CenterStart = v3{0, -1.5f, 0}; FlowerStem.CenterStart = v3{0, .5f, 0};
FlowerStem.CenterEnd = v3{0, .5f, 0}; FlowerStem.CenterEnd = v3{0, -1.5f, 0};
FlowerStem.Radius = .05f; FlowerStem.Radius = .05f;
//FlowerStem.SegmentsCount = 6; //FlowerStem.SegmentsCount = 6;
FlowerStem.SegmentsCount = 1; FlowerStem.SegmentsCount = 1;