CGTalk > Software > Autodesk Maya
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 02-06-2013, 11:07 AM   #1
brueghel
PRO
portfolio
Simon Hildwein
Germany
 
Join Date: Jul 2009
Posts: 157
create black &white shader depending on distance

Hi, is there a way to create a shader with two colors black and white and blend them togehter depending on the distance of each part of the mesh to an object or locator.

I want to animate the colors of a complex cable tree beginning in the center going to the outside of it. Is there any way to do this with utilitie nodes in maya?

thanks
 
Old 02-06-2013, 11:25 AM   #2
Panupat
Expert
 
Panupat's Avatar
portfolio
Panupat Chong
Thailand
 
Join Date: Feb 2004
Posts: 1,942
Easiest way out of my mind is to do a projection map from above and animate a ramp.
 
Old 02-06-2013, 11:40 AM   #3
brueghel
PRO
portfolio
Simon Hildwein
Germany
 
Join Date: Jul 2009
Posts: 157
that would be a 2D Projection linear animation,what I want is an animation which is expanding in 3D Space.
 
Old 02-06-2013, 03:41 PM   #4
brueghel
PRO
portfolio
Simon Hildwein
Germany
 
Join Date: Jul 2009
Posts: 157
I had to play a little bit. I created a locator where I wanted to begin the animation. Here are the connections:

locator.translate > distanceBetweenNode.Point1
samplerInfoNode.pointworld > distanceBetweenNode.point2
distanceBetweenNode.distance > remapValueNode.inputValue
remapValueNode.outValue > ramp.VCoord
ramp.OutValue > lambert.incandescence
 
Old 02-06-2013, 03:46 PM   #5
animatedfox
what the ?!?!
 
animatedfox's Avatar
portfolio
Benjamin Fox
Seat 43
USA
 
Join Date: Feb 2010
Posts: 895
Old school

This old school method only works with Maya Software render as it's setup. But maybe you could break it down and make it work with your renderer of choice. Just assign the surface shader to all your objects and scale the implicit sphere to get spherical 3d falloff.
Credit for this baby goes to Boaz Livny. He deserves a shout out for this node rocking.

If you can use SOUP you could probably do some color stuff with the bounding objects. But I am far from a SOUP-master and couldn't just spell it out without playing a bit.

Hope that helps...The big question is: Why isn't there a 3D ramp!?

** EDIT: Ha, we posted at the same time...looks like you figured it out.
Attached Files
File Type: zip implicitSpheres1.mb.zip (8.1 KB, 2 views)
 
Old 02-06-2013, 07:12 PM   #6
brueghel
PRO
portfolio
Simon Hildwein
Germany
 
Join Date: Jul 2009
Posts: 157
Seems that it is pretty much the same solution

Nice hint with Soup, I ll check it out.
 
Old 02-06-2013, 07:12 PM   #7
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,481
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 06:12 AM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.