Normal map operations

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Post Reply
chafouin
Posts: 120
Joined: Wed Jan 24, 2018 9:35 pm
Location: Los Angeles

Normal map operations

Post by chafouin »

Hey there,

I am trying to lerp two normal maps. Not combine, but lerp / mix. Unfortunately the Color Math in BlendLuxCore doesn't support it, it says Wrong Input. Is there a way to do the normal map conversion later in the node tree and not in the Image node, so I can do normal maps operations?

Thanks!
User avatar
B.Y.O.B.
Developer
Developer
Posts: 4146
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Normal map operations

Post by B.Y.O.B. »

First, you can use the color math node for this, the warnings on the sockets are just UI warnings. And in this particular case, because the color math node is just a different UI for the same textures used internally in the (float) math node, it works.

The recommended way is to use the math node in mix mode.
This makes it clear to anyone opening the file that this is not a mistake and that the operation will work.

Capture.PNG

Is there a way to do the normal map conversion later in the node tree and not in the Image node, so I can do normal maps operations?
Yes, there is a normalmap node that takes color as input and outputs bump. However, it is not accessible through the "add nodes" menu because it confused too many users. You can add it by typing this into a Blender Python console:

Code: Select all

D.node_groups['your material'].nodes.new("LuxCoreNodeTexNormalmap")
Make sure to set your imagemaps to gamma = 1 if you use this.

the hidden normalmap node
the hidden normalmap node
chafouin
Posts: 120
Joined: Wed Jan 24, 2018 9:35 pm
Location: Los Angeles

Re: Normal map operations

Post by chafouin »

Awesome B.Y.O.B., thank you.
Post Reply