NodeWrangler - add texture for principled: extend func, clean #58039

Closed
opened 2018-11-24 23:12:37 +01:00 by Dawid Huczyński · 8 comments

Recentely I did some import operator for PBR textures, and realized it is quite simillar to this one in node wrangler.
I wanted to extend

node.nw_add_textures_for_principled

with ao and alpha textures. As well to cleanup bump and normal relations (as a separate input textures).
It is based on nice presentation
https://docs.google.com/presentation/d/1hfBMyd4bi7JYIX-rP3JnkO4z5LhqEyXP3mUUA9kxoKU/edit#slide=id.p

Additionally, there are variation in spec/roughness ranges for almost every PBR texture source, so I've added adjust layer of nodes, for ease of use.

I've created this task to ask you all if i can update those changes. It is my first commit here for other author code.

pbr.PNG

Recentely I did some import operator for PBR textures, and realized it is quite simillar to this one in node wrangler. I wanted to extend ``` node.nw_add_textures_for_principled ``` with ao and alpha textures. As well to cleanup bump and normal relations (as a separate input textures). It is based on nice presentation https://docs.google.com/presentation/d/1hfBMyd4bi7JYIX-rP3JnkO4z5LhqEyXP3mUUA9kxoKU/edit#slide=id.p Additionally, there are variation in spec/roughness ranges for almost every PBR texture source, so I've added adjust layer of nodes, for ease of use. I've created this task to ask you all if i can update those changes. It is my first commit here for other author code. ![pbr.PNG](https://archive.blender.org/developer/F5707729/pbr.PNG)
Dawid Huczyński self-assigned this 2018-11-24 23:12:38 +01:00

Added subscriber: @tibicen

Added subscriber: @tibicen

Added subscriber: @brecht

Added subscriber: @brecht

It's best to submit a patch to be reviewed:
https://developer.blender.org/differential/diff/create/

I'm not sure adding extra nodes for adjustment in between by default is a good idea. Blender 2.8 material export for OBJ / FBX / Collada / GLTF will probably fail if the image texture is not directly connected to the socket.

I'm also not sure about multiplying AO with the base color. that's not physically correct. Usually AO textures are used as an approximation for indirect diffuse light, but baked in advance for better performance. However Cycles and Eevee already compute their own indirect diffuse light. Further, this should not normally affect direct lighting.

AO can be used like this for artistic purposes, but it should not be interpreted that way by default.

It's best to submit a patch to be reviewed: https://developer.blender.org/differential/diff/create/ I'm not sure adding extra nodes for adjustment in between by default is a good idea. Blender 2.8 material export for OBJ / FBX / Collada / GLTF will probably fail if the image texture is not directly connected to the socket. I'm also not sure about multiplying AO with the base color. that's not physically correct. Usually AO textures are used as an approximation for indirect diffuse light, but baked in advance for better performance. However Cycles and Eevee already compute their own indirect diffuse light. Further, this should not normally affect direct lighting. AO can be used like this for artistic purposes, but it should not be interpreted that way by default.

Hi, I know there is a lot to do around all the stuff and bugs, but i was just wondering ifI did everything correct here?
If yes please just reply it is just waiting to review, don't even review it now.
If notplease help me understand how to commit it to proper branch.

Hi, I know there is a lot to do around all the stuff and bugs, but i was just wondering if**I did everything correct here?** **If yes** please just reply it is just waiting to review, don't even review it now. **If not**please help me understand how to commit it to proper branch.
Member

Added subscriber: @florianfelix

Added subscriber: @florianfelix
Member

I made a reply some time ago here: D3991

I made a reply some time ago here: [D3991](https://archive.blender.org/developer/D3991)

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Let's close this one in favor of the differential revision, easier to have the discussion in one place.

Let's close this one in favor of the differential revision, easier to have the discussion in one place.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#58039
No description provided.