Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Proximity Texture
PostPosted: Thu Mar 22, 2012 12:20 pm 
User avatar
Moderator
Offline

Joined: Sun Feb 17, 2008 10:20 pm

Posts: 1339

Location: Wellington, NZ
Anyone know of a way in Maya to make a texture within a single object change properties (colour, transparency, etc) based on proximity to another object? It's easy enough to change the whole texture/shader but I want to effect just the immediate area close to the second object, if that makes sense...

As an example, something similar in Avatar when they're walking on the bioluminescent ground/plants and the parts close to their feet glow, with a gradual fall-off.

_________________
A bus station is where a bus stops. A train station is where a train stops. On my desk I have a workstation.


Top
 Profile  
 
 Post subject: Re: Proximity Texture
PostPosted: Fri Mar 23, 2012 8:46 am 
User avatar
Death Star Gunner
Offline

Joined: Thu Feb 14, 2008 5:18 pm

Posts: 223

Location: Echo base
without going into the rocket science scripting and things, I would try to render out your object twice. One with the original color and the other with the modified color.

Create another pass with a volume light parent/constraint onto the approaching object and put everything on a black shader, so you have a light spot with controllable falloff that you can luma/RGB matte in post to switch between the colors.


Top
 Profile  
 
 Post subject: Re: Proximity Texture
PostPosted: Fri Mar 23, 2012 9:35 am 
User avatar
Moderator
Offline

Joined: Sun Feb 17, 2008 10:20 pm

Posts: 1339

Location: Wellington, NZ
Yea I was hoping it would have to come to that but it sounds like the most trouble free way, and it'll allow for a good amount of control. Shouldn't be too much of a chore if I use render layers.

Thanks Shorty

_________________
A bus station is where a bus stops. A train station is where a train stops. On my desk I have a workstation.


Top
 Profile  
 
 Post subject: Re: Proximity Texture
PostPosted: Fri Mar 23, 2012 2:08 pm 
User avatar
Moderator
Offline

Joined: Sun Feb 17, 2008 10:20 pm

Posts: 1339

Location: Wellington, NZ
Wasn't toooooo difficult. I used a 'distance to object' node with locators to dynamically drive the intensity of the light which made it a little easier.

Here's a quickie result:


Attachments:
proxyLight_ball.mp4 [238.84 KiB]
Downloaded 216 times

_________________
A bus station is where a bus stops. A train station is where a train stops. On my desk I have a workstation.
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

About Us


Contact Us


Powered by phpBB® Forum Software © phpBB Group
Logo Design by - Oliver Hilbert Revilo Designs