Easy animated and "expanded" gradient technique

Have you come up with a good Moho trick? Need help solving an animation problem? Come on in.

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
synthsin75
Posts: 10267
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Post by synthsin75 »

http://www.mediafire.com/?vav0yyczjxp

Here's one solution, DK. I assume masking won't work because you output to swf.

I just added a single, extra point that can be pulled to stretch the image texture to fit (I only did one side). This can have its edges hidden and then weld its two points on the skull outline to minimize this to a line, but you'd need some way to hide these 'texture stretch' lines.

For this skull, maybe something like an arrow through it could hide this.

:wink:
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

WoooHoooo! Synth! You are a genius!

I however took it one step further.

Here are the steps:

1. Create an extra separate closed mesh shape with just 3 points off to the side of the skull
2. Select the skull AND this extra mesh to create the shape.
3. Hide edges on the smaller mesh points.
4. Select just the smaller mesh shape points only.
5. Using the scale points tool, type in 0 for x and y and hit the scale button.
6. You can now move around those "squished to nothing" 3 points to "shift" the texture fill. You could also create as many of those "nothing" meshes as part of the fill to further push the texture around. They don't seem to render as far as I can see.

By scaling the smaller mesh to 0 it doesn't show in renders but still "holds" the fill to influence the texture. Using only one point doesn't work, it has to have a closed shape. It shouldn't show up in a render (it didn't at NTSC renders but who knows).

-vern
User avatar
DK
Posts: 2895
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Post by DK »

WOW!!! Vern that's brilliant thinking.....man you two are always thinking outside the box (or mesh in this case) on these things.. :)

Cheers
D.K
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

Here's the file with both sides fixed:

http://www.lowrestv.com/anime_studio/fo ... _edit.anme

I think a couple of bones with constraints might be able to make the motion needed to do this "automatically".

-vern
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

Thanks for bringing this up, and thanks to Synth for finding the trick. I love this technique! My head is spinning! I need to play around with it to see what it can do.

What's cool about this is that you could have a series of these inviisible point groups to do all kinds of things with texture fills, INCLUDING GRADIENT FILLS!

I've use this trick before but never thought to scale the points down to zero!

-vern
User avatar
DK
Posts: 2895
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Post by DK »

WOW!!!! You two guys have just developed a great technique here!!! It's scary though to think this may not have even happened if I had'nt started playing around with that scale rotate stuff...says a lot for experimentation ;)

Cheers again and well done
D.K
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

Starting to become clear.

Point binding has little influence on the image texture. The only thing that effects warping of the image is BONE STRENGTH alone. Nothing else effects the image. Point binding of points will not effect an image texture.

Moving points by hand will distort the image texture. Bone strength influencing points effects image texture warping. Binding points to bones has ZERO effect on image warping (if the bone has no strength).

-vern
User avatar
DK
Posts: 2895
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Post by DK »

Well.......here's a test using your gradient positioning control technique or the "synvern" manouvre :)


http://www.wienertoonz.com/lightcontrl.swf


I love it.
D.K
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

That is cool DK!

So it doesn't work so well with texture fills but works FANTASTIC with gradients! Woohooo!

-vern
User avatar
DK
Posts: 2895
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Post by DK »

You guys just invented 3D object simulated lighting for AS hehehe...

D.K
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

This is cool. You can link all the shapes to control lighting to a series of bones that are constrained to different amounts.

Here's a cheesy not so appropriate example:
"Sarah Conner? Is she here?"
http://www.lowrestv.com/anime_studio/fo ... yeball.mov

The bone controlling the red gradients is constrained to the bone controlling the two red pupils. The constraint value is 4. There is one of those "extra" shapes in the center of each eye. The extra value for the translation keeps the gradient in sync (sort of) with the eye ball by extending it much further out of the eye shape than the eyeball, forcing the gradient to follow the eye.

You can even use multiple shapes to "extend" a radial gradient. Instead of a tight compressed circle in the center color you can sort of get an expanded one. Have to be carefull of banding though.

-vern
User avatar
DK
Posts: 2895
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Post by DK »

Now that IS coool!!! Just the thing for the eyes on the skull....any ideas on a chrome texture....'ll be back

D.K
chucky
Posts: 4650
Joined: Sun Jan 28, 2007 4:24 am

Post by chucky »

That gradient trick is a beast! Well done guys, it's the holy grail of the gradient tricks. Thanks for the brainstorming.
User avatar
synthsin75
Posts: 10267
Joined: Mon Jan 14, 2008 11:20 pm
Location: Oklahoma
Contact:

Post by synthsin75 »

WooHoo! Just goes to show what happens around here when a guy sleeps. Great fix Vern!

And I've solved being able to to do this with bones.

It won't output to SWF, but meshinstance translates the bone motion to point motion in the duplicate.

http://www.mediafire.com/?oymyrymf2wn


DK, great idea to use it for gradient animation! That an amazingly simple technique. I don't know how we ever lived without this. Thanks for providing the inspiration for Vern and me to figure this out.


I still can't believe it....Animated gradients!!!!

:D :shock: :D
User avatar
heyvern
Posts: 7042
Joined: Fri Sep 02, 2005 4:49 am

Post by heyvern »

synthsin75 wrote:
And I've solved being able to to do this with bones.

It won't output to SWF, but meshinstance translates the bone motion to point motion in the duplicate.
It's still a dash garn bug! Don't make Mike's job any easier! :)

Nice workaround though.

-vern
Post Reply