question

Aaron Ross avatar image
Aaron Ross asked ·

Sampler Info node? Like in Maya?

Hi,

Is there a node that performs the functions of Maya's samplerInfo node? I know about the Arnold Facing Ratio node... that's not what I need. I need to use the shading point's position in a shading network. In Maya, I can take the Point World Y output of samplerInfo and use that to generate a gradient across a surface. How can I integrate information about the surface point's location into my shading network?

Thanks

Aaron

shading
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Lee Griggs avatar image
Lee Griggs answered ·

Tutorial here.

1 comment Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

This works great. Thanks.

1 Like 1 · ·
Thomas Cheng avatar image
Thomas Cheng answered ·

I found out that you need to use the State Vector P, it should give you an RGB color. I believe B is for height. You can isolate it by using a shuffle node and setting the channels to B. From there, you can go to town with the shader network.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Mads Drøschler avatar image
Mads Drøschler answered ·

You can use the Sampler node info inside 3dsmax.

We can load the Arnold Maya shaders in 3dsmax, so go and download the Maya plugin of Arnold, and drop the shaders into MaxtoA and about 50 Maya shading nodes appear inside max, including this particular node set, 1D,2D and 3D, and they work perfect.


Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Lee Griggs avatar image
Lee Griggs answered ·

The Utility shader has a Shading Point Color Mode.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Aaron Ross avatar image
Aaron Ross answered ·

That tutorial shows what buttons to press, but does not explain why. This is not helpful for people trying to learn how to achieve their own desired effects.

And, two years later, the circular definitions are still in place here:

https://docs.arnoldrenderer.com/display/A5AF3DSUG/Shading+State

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Mads Drøschler avatar image
Mads Drøschler answered ·

In case you want to split this out, or the state vector P channel x,y and z. Use a vector component seperation, the ldkChannels node from the Maya bundle does this, we also have a way to do it in max without the maya nodes, but see max beta for that.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Aaron Ross avatar image
Aaron Ross answered ·

Also, if any SA/ADSK personnel are reading this, please revise this help document:

https://support.solidangle.com/display/A5AF3DSUG/Shading+State

Most of the descriptions in the far right column are circular definitions, which are less than helpful. Users cannot benefit because the description adds no useful information, so the description takes up space without purpose. Depending on point of view, this is ironic or infuriating, because someone went to the trouble of filling in the description field, but did not make an effort to actually describe the feature, but merely copied the name of the feature.

Circular definitions are the absolute worst. WORSE THAN LEAVING IT BLANK!!

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Aaron Ross avatar image
Aaron Ross answered ·

Thank you @Lee Griggs, but I'm not any closer to the effect I want. The Shading Point color mode in the Utility Shader seems to be outputting the normals. It's operating in object space, but I need world space.

I read the manual and discovered the State Vector node. It apparently has a "p" output that provides "shading point in world-space". But I do not know how to use it. I need to separate the X, Y, and Z position values. But the State Vector outputs a vector, of course. I cannot figure out how to separate this vector to three floats. There is no appropriate Conversion node.

So now I have two unsolved problems.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.