Mental Ray Distance node?

Discussions about rendering in SOFTIMAGE©
Post Reply
User avatar
Pete
Posts: 118
Joined: 16 Jun 2009, 09:28

Mental Ray Distance node?

Post by Pete » 04 Jul 2013, 07:28

Hi there,

I was sure i've used a distance node in the render tree before but I cant for the life of me find it. I think it just returned the primary ray distance and you had to deal with it form there.
Am i going crazy or is there a node that does that hidden away somewhere?

Thanks,
Pete

eben
Posts: 31
Joined: 29 Apr 2011, 10:55
Location: France

Re: Mental Ray Distance node?

Post by eben » 04 Jul 2013, 08:55

Vector state ?

BenR
Posts: 92
Joined: 11 Jun 2009, 20:52

Re: Mental Ray Distance node?

Post by BenR » 04 Jul 2013, 14:33

Also Binary Alchemy Ray Length shader has some more options.

User avatar
rray
Moderator
Posts: 1774
Joined: 26 Sep 2009, 15:51
Location: Bonn, Germany
Contact:

Re: Mental Ray Distance node?

Post by rray » 04 Jul 2013, 16:45

"The" distance node is hidden indeed, it's behind Vector-Scalar, operation setting=Distance between V1 and V2

you'll find dot product there too as well as vector length of V1.
softimage resources section updated Jan 5th 2024

User avatar
Pete
Posts: 118
Joined: 16 Jun 2009, 09:28

Re: Mental Ray Distance node?

Post by Pete » 05 Jul 2013, 09:02

Great! thanks guys!

User avatar
Pete
Posts: 118
Joined: 16 Jun 2009, 09:28

Re: Mental Ray Distance node?

Post by Pete » 09 Jul 2013, 04:56

Hey just wondering, is there any way to drag the vector3 position of two objects into the input plugs here?

Image

Thanks
Pete

Edit - Actually I'm having a bit of trouble getting the results I was from this I was hoping it would gradually fade along the surface from one point to the other (Like a zdepth pass).
Not like this where the whole object's colour is depending on the distance result -
Image

Basically I guess i'm looking for a ray distance (from the camera) type node. I'm sure I've used it before but where it's hidden I have no idea...

Thanks
Pete

User avatar
Pete
Posts: 118
Joined: 16 Jun 2009, 09:28

Re: Mental Ray Distance node?

Post by Pete » 09 Jul 2013, 06:04

Okay I got it! Wasn't that hidden after all :)

Image

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests