3#include "../Templates/ProtogenProjectTemplate.h"
4#include "../../Assets/Models/FBX/NukudeFlat.h"
6#include "../../Camera/CameraManager/Implementations/WS35SplitCameras.h"
7#include "../../Controller/WS35Controller.h"
15 const __FlashStringHelper*
faceArray[10] = {F(
"DEFAULT"), F(
"ANGRY"), F(
"DOUBT"), F(
"FROWN"), F(
"LOOKUP"), F(
"SAD"), F(
"AUDIO1"), F(
"AUDIO2"), F(
"AUDIO3")};
18 AddParameter(NukudeFace::Anger,
pM.GetMorphWeightReference(NukudeFace::Anger), 15);
20 AddParameter(NukudeFace::Surprised,
pM.GetMorphWeightReference(NukudeFace::Surprised), 15);
21 AddParameter(NukudeFace::Doubt,
pM.GetMorphWeightReference(NukudeFace::Doubt), 15);
22 AddParameter(NukudeFace::Frown,
pM.GetMorphWeightReference(NukudeFace::Frown), 15);
23 AddParameter(NukudeFace::LookUp,
pM.GetMorphWeightReference(NukudeFace::LookUp), 15);
24 AddParameter(NukudeFace::LookDown,
pM.GetMorphWeightReference(NukudeFace::LookDown), 15);
115 else if (mode == 1)
Angry();
116 else if (mode == 2)
Doubt();
117 else if (mode == 3)
Frown();
118 else if (mode == 4)
LookUp();
119 else if (mode == 5)
Sad();
120 else if (mode == 6) {
133 pM.SetMorphWeight(NukudeFace::BiggerNose, 1.0f);
134 pM.SetMorphWeight(NukudeFace::MoveEye, 1.0f);
141 pM.GetObject()->UpdateTransform();
void SetFaceArray(const __FlashStringHelper **faceNames)
Sets the array of face names.
@ Cosine
Smooth cosine interpolation.
Scene scene
The Scene object representing the rendered environment.
A default project template that includes functionality for an analog microphone, APDS9960 boop sensor...
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 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).
@ CHORIZONTALRAINBOW
Horizontal rainbow effect.
@ CRAINBOW
Rainbow spiral.
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 AddBlinkParameter(float *blinkParameter)
Adds a float parameter to the blink track for controlling blinking.
void AddParameterFrame(uint16_t ProjectIndex, float target)
Adds a frame target to a previously added parameter.
Material * GetFaceMaterial()
Retrieves the current face material animator.
WS35Controller controller
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.
const __FlashStringHelper * faceArray[10]
WS35SplitCameraManager cameras
void Update(float ratio) override
Updates the project state based on the given ratio.
void AudioReactiveGradientCallback() override
Callback invoked when the Audio Reactive Gradient face is enabled/updated.
void AddObject(Object3D *object)
Adds a 3D object to the scene.
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.
Manages WS2812-based displays for the Delta, Epsilon, and Sigma Protogen heads.
void SetAccentBrightness(uint8_t maxAccentBrightness) override
Sets the maximum accent brightness (not used for this controller).
void SetBrightness(uint8_t maxBrightness) override
Sets the maximum brightness for the displays.