4#include "../../Assets/Models/OBJ/DeltaDisplayBackground.h"
5#include "../../Assets/Models/FBX/Commissions/SplatFace.h"
6#include "../../Assets/Models/OBJ/LEDStripBackground.h"
22 const __FlashStringHelper*
faceArray[13] = {F(
"DEFAULT"), F(
"ANGRY"), F(
"CONFUSE"), F(
"DISAPPO"), F(
"FCIRCLE"), F(
"EXCITED"), F(
"HEART"), F(
"HCIRCLE"), F(
"SLEEPY"), F(
"AUDIO1"), F(
"AUDIO2"), F(
"AUDIO3")};
25 AddParameter(SplatFace::AngryEyes,
pM.GetMorphWeightReference(SplatFace::AngryEyes), 15);
26 AddParameter(SplatFace::AngryMouth,
pM.GetMorphWeightReference(SplatFace::AngryMouth), 15);
27 AddParameter(SplatFace::ConfusedEyes,
pM.GetMorphWeightReference(SplatFace::ConfusedEyes), 25);
28 AddParameter(SplatFace::ConfusedMouth,
pM.GetMorphWeightReference(SplatFace::ConfusedMouth), 25);
29 AddParameter(SplatFace::DisappointedEyes,
pM.GetMorphWeightReference(SplatFace::DisappointedEyes), 25);
30 AddParameter(SplatFace::DisappointedMouth,
pM.GetMorphWeightReference(SplatFace::DisappointedMouth), 25);
31 AddParameter(SplatFace::ExcitedEyes,
pM.GetMorphWeightReference(SplatFace::ExcitedEyes), 25);
32 AddParameter(SplatFace::FullCircleEyes,
pM.GetMorphWeightReference(SplatFace::FullCircleEyes), 25);
33 AddParameter(SplatFace::HeartEyes,
pM.GetMorphWeightReference(SplatFace::HeartEyes), 25);
34 AddParameter(SplatFace::HollowCircleEyes,
pM.GetMorphWeightReference(SplatFace::HollowCircleEyes), 25);
128 scene.AddObject(
pM.GetObject());
167 pM.GetObject()->UpdateTransform();
178 case 1:
Angry();
break;
183 case 6:
Heart();
break;
Declares the HUB75Controller class for managing HUB75 LED matrices.
A dynamic horizontal rainbow gradient material.
Contains the class definition for ProtogenProject, a default project template for handling microphone...
Manages HUB75 LED matrices with camera integration.
A dynamic horizontal rainbow gradient material.
@ Cosine
Smooth cosine interpolation.
@ Replace
Replaces the base color.
Scene scene
The Scene object representing the rendered environment.
void SetMenuWiggleSpeed(float multiplierX, float multiplierY, float multiplierR)
Adjusts the menu's wiggle speed along X, Y, and rotation.
Vector3D GetWiggleOffset()
Computes and returns a Vector3D offset for a "wiggle" effect using function generators.
void AudioReactiveGradientFace()
Enables the Audio Reactive Gradient on the face, updating offsets and calling callbacks.
void SetMenuOffset(Vector2D offset)
Sets the menu's position offset.
void SetMenuSize(Vector2D size)
Sets the menu's size.
void OscilloscopeFace()
Enables the Oscilloscope on the face, updating offsets and calling callbacks.
void UpdateFace(float ratio)
Updates the face's rendered content, reading any user input and applying changes.
void SetWiggleSpeed(float multiplier)
Sets the overall wiggle speed for both X and Y function generators.
bool IsBooped()
Checks if the sensor has detected a boop.
void SpectrumAnalyzerFace()
Enables the Spectrum Analyzer on the face, updating offsets and calling callbacks.
void AddParameter(uint8_t index, float *parameter, uint16_t transitionFrames, IEasyEaseAnimator::InterpolationMethod interpolationMethod=IEasyEaseAnimator::InterpolationMethod::Overshoot, bool invertDirection=false)
Adds a parameter to the EasyEaseAnimator for interpolation.
void AddMaterial(Material::Method method, Material *material, uint16_t frames=20, float minOpacity=0.0f, float maxOpacity=1.0f)
Adds a new material to the face's MaterialAnimator with given parameters.
void AlignObjectFace(Object3D *obj, float rotation=0.0f, float margin=2.0f, bool mirror=true)
Aligns a single Object3D to the "face" camera bounds with scaling.
void AddViseme(Viseme::MouthShape visemeName, float *parameter)
Adds a viseme parameter to the animator (for mouth shapes).
HeadsUpDisplay hud
Heads-up display (HUD) for the face overlay or additional data.
void AddMaterialFrame(Color color, float opacity=0.8f)
Adds a new material frame to the face's MaterialAnimator from a color enum.
void AddParameterFrame(uint16_t ProjectIndex, float target)
Adds a frame target to a previously added parameter.
Material * GetFaceMaterial()
Retrieves the current face material animator.
ProtogenProject(CameraManager *cameras, Controller *controller, uint8_t numObjects, Vector2D camMin, Vector2D camMax, uint8_t microphonePin, uint8_t buttonPin, uint8_t faceCount)
Constructs a ProtogenProject instance.
void SelectFace(uint8_t code)
const __FlashStringHelper * faceArray[13]
void LinkControlParameters() override
Links external or user-defined control parameters (pure virtual to be implemented).
void OscilloscopeCallback() override
Callback invoked when the Oscilloscope face is enabled/updated.
void SpectrumAnalyzerCallback() override
Callback invoked when the Spectrum Analyzer face is enabled/updated.
LEDStripBackground ledStripBackground
void Update(float ratio) override
Updates the project state based on the given ratio.
HorizontalRainbow hRainbow
DeltaDisplayBackground deltaDisplayBackground
HUB75Controller controller
HUB75DeltaCameraManager cameras
void AudioReactiveGradientCallback() override
Callback invoked when the Audio Reactive Gradient face is enabled/updated.
Represents a 2D vector (X, Y) and provides methods for vector arithmetic.
@ ER
Mouth shape corresponding to the "ER" sound.
@ OO
Mouth shape corresponding to the "OO" sound.
@ AH
Mouth shape corresponding to the "AH" sound.
@ UH
Mouth shape corresponding to the "UH" sound.
@ AR
Mouth shape corresponding to the "AR" sound.
@ SS
Mouth shape corresponding to the "SS" sound (optional).
@ EE
Mouth shape corresponding to the "EE" sound.