comments regarding Mark's worklog ideas

BlitzMax Forums/BlitzMax Programming/comments regarding Mark's worklog ideas

Gillissie(Posted 2008) [#1]
Regarding:
BrushCreate
BrushSetColor
BrushSetTexture
etc...
vs.
CreateBrush
SetBrushColor
SetBrushTexture
etc...

I would rather see an object oriented approach than either of these. Example:
objBrush = new Brush
objBrush.SetColor
objBrush.SetTexture
etc...

--------------------------------
Regarding animation blending:
I like your idea. I think Lightwave 3D has an option to make blending "additive" or "multiplicative" (is that a word?). Basically, multiple animations layered on top of each other have each joint either added or multiplied by the current animation movement or rotation. I think for the most part, "multiply" is the best way to go, so you can animate only the parts you want in each animation file, and layer them all together, then simply tell each layer whether to animate.

The weights idea is how Lightwave handles things like facial expression animation. Say one anim file only makes the eyes squint, and another makes them wide open. Other anim files only control the mouth, etc. Technically, each anim file doens't have to be an animated at all, but simply a position. You have your program control the animation by changing the weight values. Calling it blending is probably better than calling it weight, since you're controlling how much each expression is blended with the final mesh look.


ziggy(Posted 2008) [#2]
I think he mentiones somewhere that the internal library was being written in c, so this object-oriented approach should be done in the max wrapper.