I used my HW3 project. The giant Vase is the object that changes a material parameter with "G". It switches through a few different states and lerps from one to another with a timeline node. I found it very silly that I couldn't put a timeline node in the function!
The crate is the event trigger volume object. It will turn the vase by 90 degrees. It is also using a timeline node to do the turn. All of the blueprints are in the "blueprints" folder. I have submitted everything on Perforce by selecting the project folder and choosing "Mark for Add".The Vase's construction script. The blueprint is called "bp_vase_dynamic_material".
And the Event Graph for the vase. It uses an int variable, a "wrap" function which seems to be the same as a modulo function, and a switch statement to toggle between a few different states. Each one changes the material a little bit. The timeline provides an animated blurring between phases. The actual material parameter is set in a function graph.
Here is the function. Simple. But I thought I was gonna be able to do the timeline in here, too. It feels wrong putting it before the switch and checking the switch statement every frame. Bad performance, probably.
This is the blueprint for the crate. It is called area_trigger_thing.
No comments:
Post a Comment