Has anybody got any code related to Keyable Material Attributes. I'd like to play around with Irrlicht code and learn about it.
If there isn't, I guess I'll have to use the code behind CSkinnedMesh and CAnimatedMeshSceneNode as a starting point.
Anyway, what do I mean Keyable Material Attributes?
(1) Keyable means a key can be set and a key will have a frame number.
(2) Materials are attached to a mesh.
(3) Attributes are values attached to a materials, such as specular intesity, diffuse color, etc.
Putting them together, it basically means an attribute having the ability of changing values over a timeframe.
Thanks in advance for your advice.
Keyable Material Attributes
Here is a snippet of where this is going...
Code: Select all
Material
AmbientColor
Red,Gree,Blue
DiffuseColor
Red,Gree,Blue
EmissiveColor
Red,Gree,Blue
SpecularColor
Red,Gree,Blue
IKeyable* key1 = new KeyAttributeValueF(&Material->AmbientColor.red);
key1->setFrame(0 , 0.0f);
key1->setFrame(300, 0.8f);
key1->setFrame(400, 1.0f);
IKeyable* key2 = new KeyAttribute(&Material->DiffuseColor);
key2->setFrame(0 , SColor(0,0,0));
key2->setFrame(300, SColor(143,80,212));
key2->setFrame(400, SColor(255,255,255));
Hey, thanks for the info.
Regarding interpolation...
I'm trying another method which is new to me, about parametric equations and simultaneous equations. Has anyone written code that will implement an interpolated value at certain time (Tx) using parametric equations and simultaneous equations?
I know this will take me to Linear Algebra with all those vectors and matrices, tho what I'm after is an API that is implemented in C++ that can be added on top of IrrLib.
Which may be the tool I'm looking for-->implementing a dope sheet.
Regarding interpolation...
I'm trying another method which is new to me, about parametric equations and simultaneous equations. Has anyone written code that will implement an interpolated value at certain time (Tx) using parametric equations and simultaneous equations?
I know this will take me to Linear Algebra with all those vectors and matrices, tho what I'm after is an API that is implemented in C++ that can be added on top of IrrLib.
Which may be the tool I'm looking for-->implementing a dope sheet.
OK, found one here...
http://www.robthebloke.org/opengl_programming.html#3
http://www.gamedev.net/reference/articl ... le1808.asp
I'm off to my coding.
http://www.robthebloke.org/opengl_programming.html#3
http://www.gamedev.net/reference/articl ... le1808.asp
I'm off to my coding.