Topic: blender mesh with animation(changing alpha)

Hey guys!
I need fade in\out effect, so i think the easiest way is to do black plane in blender with animation, in each frame we change alpha value. I've tried to do it, but i don't understand exactly how to release it in blender.  so could you help?

Last edited by hog (2014-06-06 09:37:41)

Re: blender mesh with animation(changing alpha)

Hi, you should look at this tutorial : http://www.maratis3d.org/?p=277

You can animate the "Alpha" value :
http://www.maratis3d.com/wp-content/uploads/2011/01/04.jpg

- move your mouse over the "Alpha" value and press "i" on your keyboard to create an animation key.
- move the current frame in the timeline, change the alpha value and press "i" again

Re: blender mesh with animation(changing alpha)

Thanks, that helped me!
and SetAnimationSpeed doesn't work with animated textures, does it mean i should control fade speed by animation length in blender or there are some other ways to control animation speed?

Last edited by hog (2014-06-06 11:18:49)

Re: blender mesh with animation(changing alpha)

setAnimationSpeed works with all animation, armature, materials and textures.
It's used in the particles example to control particles fade speed : http://www.maratis3d.org/download/SpecialEffects.zip

But for a fade to black effect, for maximum control you should create a non-looping animation
and use "setCurrentFrame" so you can have the exact fade you want.

- do a fading animation from frame 0 to frame 100, and set loops to 0 instead of -1 in Blender (see screenshot)
- in lua use "setCurrentFrame(object, percent)"

http://www.maratis3d.com/wp-content/uploads/2011/01/12.jpg

Re: blender mesh with animation(changing alpha)

I mean this:
http://youtu.be/07vn17DA6OU
but i found problem: i wrote setAnimationSpeed in OnBeginScene() function, and in update all works perfectly)