Jump to content

UV layer switch for shader


Recommended Posts

this must be a newbie question but I have to ask...

Being new to shading, I just want to have 2 different uv layers that can be used for a same texture map so I could switch back and forth.

so after I got a grid with 2 uv layers, all I did was

dug into the shader(a default chekerboard shader), found "surfacecolor1" node, RMB exposed the input of "s coordinate" to see "uvcords1" node and dived in, found "shadingAttriUV" node and swithed the"Attibute layer" value, but it just doesn't affect either the openGL diplay nor the rendering....

any hint will be greatly helpful...

post-6937-131015561554_thumb.jpg

post-6937-13101556271_thumb.jpg

UVlayerTest.hip

Link to comment
Share on other sites

You actually changing uv layer in the wrong place.

On the color mix vop, expose "Bias Amount" input. There you'll see another uv coord asset.

Good Luck

Thanks for the reminder, it works well for rendering.

But in the scene view pane, the display still keeps the same. is there a way to change it accordingly as well?

Link to comment
Share on other sites

Thanks for the reminder, it works well for rendering.

But in the scene view pane, the display still keeps the same. is there a way to change it accordingly as well?

Ok, I just used a attribute sop to swap the 2 uv attributes, put a switch node to toggle back and forth and it works :)

would like to know if there are better ways

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...