question

Tiago Rios avatar image
Tiago Rios asked ·

Is there a way to use diferent value for a parameters with different geometries??

Hi there! Is there a way to use diferent value for a parameters with different geometries in the SAME UV sheet and only 1 material??

for example:

I want to a piece on the armor to has a specific gloss value, and other piece another value using a diferent range node. Do I need to create a new material for this?? Is there a way to only use a range node and change the new value??

ps: I know that I can tweek the gloss map in the photoshop to have different values, but Im wondering if I can do this on the shader network,

shader
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 ·

This is easy to do my friend.

Let me put a video together for you.

https://youtu.be/aL31hcFcu9Q

Also:



Note you can source any controller.
- Element ID
- Object ID
- Material ID
- Pseudo construct ID


qweqweqwe.png (857.7 KiB)
6 comments 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.

thats perfect Mads! Exactly what I needed! Thank you so much. I didn't know that the "mtlID" would link the ids...how can I link the others attributes?? Is there a list with those "codes" where I can find??

0 Likes 0 · ·

Material ID = mtlID
Object ID = gBufID

Element ID is not setup pr default. But you can use a Data Channel modifier and differentiate Color elements to uv_0 and use a user data node to source this "uv_0" You can further expand with a jitter node and increase Max to 1.0 or whatever you like and use that, as the driver for the index, this returns a situation where you can sign different textures to random leafs inside a single model for example ( grass and vegetation in general )

Constuct ID can't be defined as that is a pr case "what you need"

0 Likes 0 · ·

Nice, definitely something they could add to the documentation. Thx Mads! ;)

1 Like 1 · ·

Thanks a lot again Mad! really really helpful! I would never figured out how to do this because those mtlID / gBufID "codes" aren't on the documentation. If you dont mind, may I ask you how do you know those commands?? Is this common stuff on shading in arnold?? Im really new to arnold.

0 Likes 0 · ·

No list, but using script docs can help identify usable attributes, all the hair stuff for example, root, tip thickness and so on can be called and controlled the same way.
See here: under properties, you must be able to identify which part is parsable, it's not trivial if you are new.

https://help.autodesk.com/view/3DSMAX/2016/ENU/?guid=__files_GUID_9C06B975_2AD5_4C69_9987_1FC9CBEA45B3_htm

0 Likes 0 · ·

Thanks a lot again Mad!!

0 Likes 0 · ·
Sachin Shrestha avatar image
Sachin Shrestha answered ·

@Tiago Rios You could add a custom float user attribute for roughness to each geometry and then connect user_data_float node to roughness in your shader and specify the custom user attribute name. This should use the value defined for each geometry at rendertime. Alternately, if you’ve already got the UVs laid out as UDIMS you can simply paint different roughness maps for each UDIM tile.

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.

exactly what I need! please, how can I do that?? yours first option

0 Likes 0 · ·
Tiago Rios avatar image
Tiago Rios answered ·

please, someone has any solution?? im trying without sucess so far

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.

Tiago Rios avatar image
Tiago Rios answered ·

I tried this but nothing happened.


ddddda.jpg (323.5 KiB)
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.

Tiago Rios avatar image
Tiago Rios answered ·

@Answer by Sachin Shrestha exactly what I need! please, how can I do that?? yours first option

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.

Tiago Rios avatar image
Tiago Rios answered ·

actually I can do that. However Im wondering if I can do that more "economic" like using just 1 material (since its different meshes in the same uv layout) and using material ID/user ID/user atribbutes/aov...something like 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.

xebajac@zdfpost.net xebajac@zdfpost.net avatar image
xebajac@zdfpost.net xebajac@zdfpost.net answered ·

except if you duplicate the material(in the same shader network) then connect red(the second range node) to that one then use a mix node to mix them back.....is that what you mean?

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.

Tiago Rios avatar image
Tiago Rios answered ·

For example. I have this UV sheet. I want the red to has a XX roughness/range node and the blue a different roughness/range node aswell. However I want to do this in the shader network. Is this possible to do with only 1 material??


ddddddates.jpg (513.8 KiB)
add3.jpg (138.9 KiB)
aaagfg.jpg (451.7 KiB)
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.

xebajac@zdfpost.net xebajac@zdfpost.net avatar image
xebajac@zdfpost.net xebajac@zdfpost.net answered ·

Explain what you mean

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.