Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

Sign in to follow this  
Followers 0

H16 UV loss upon collapsing into mat builder

Hi all,


I've got a principled shader network working as I want, so I'd like to collapse it into a material builder (fig1).

When I do this, via selecting nodes and Edit-->Collapse Selected Into Material, I get fig 2.

Any idea what's happening? It looks like the UV's are getting nuked, but I don't know how or why.  I've tried removing the "uv2" parameter node that gets added inside the Material Builder, but that changes nothing.

Network view shown is immediately after Collapse operation. White nodes are my original shader network; second pane shows SOP net applying material and being rendered.





Share this post

Link to post
Share on other sites

Solved. This one is actually due to what seems like a minor UI bug in the "Collapse Selected into Material" menu option.  I post the solution here for other newbies who might run into it.

Production build 600.

SESI created the "Collapse Selected into Material" menu option to automate the process of setting up a material from a root level or "loose" shader network.  In particular, it sets up several nodes (the yellow ones in my fig.3 above) for you.

CSiM breaks in two places, at least with my particular shader net. Here are the fixes:

1. The Parameter node has "uv2" in its Name parameter instead of the default "uv" that's likely on your geometry. Rename to "uv".

2. The "properties" node creates a Displacement Bound parameter for export. It has a long expression that evaluates to "0", which will create holes all over your displaced geometry.  Delete that and set it manually if yo uknow your maximum expected displacement, or you can copy the channel reference from Principled Shader / Displacement / Displacement Bound  (vm_displacebound).

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0