UV mapping problem with some Normal maps

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

Post Reply
User avatar
SSmolak
Licensed Customer
Posts: 1157
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Contact:

There is issue with some linearized normal maps while using UV map generated by Automated UV Packing because UV polygons islands are randomly rotated. The problem is only with normal maps that are linearized :
UV_Packing_Issue.jpg
Problem is gone when these maps are converted to sRGB 2.2 gamma.

Unfortunately Octane doesn't support gamma changes for normal maps. The only way is to use OSL script :
UV_Packing_Issue_resolved.jpg
So please add support for changing Normal maps gamma or Color Space as it is for regular texture images.
Architectural Visualizations http://www.archviz-4d.studio
User avatar
bepeg4d
Octane Guru
Posts: 10365
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

:roll:
Can you share an example scene with assets that shows the issue?

ciao,
Beppe
User avatar
SSmolak
Licensed Customer
Posts: 1157
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Contact:

Here is scene with two materials - UV map Normals BAD and OK

Problem with OSL version is that OSL doesn't have Transform node connection and Power of the texture but it generate correct shading.
Attachments
UV_normal_map_issue.zip
(669.68 KiB) Downloaded 60 times
Architectural Visualizations http://www.archviz-4d.studio
User avatar
bepeg4d
Octane Guru
Posts: 10365
Joined: Wed Jun 02, 2010 6:02 am
Location: Italy
Contact:

Hi,
if you enable the Invert option it sems pretty similar.
On the left Normal texture, on the right OSL version:
C2BEBF17-345F-4FF8-B935-8AB1FCA1D1FE.jpeg
ciao,
Beppe
User avatar
SSmolak
Licensed Customer
Posts: 1157
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Contact:

bepeg4d wrote:Hi,
if you enable the Invert option it sems pretty similar.
On the left Normal texture, on the right OSL version:
C2BEBF17-345F-4FF8-B935-8AB1FCA1D1FE.jpeg
ciao,
Beppe
But after that bump effect is inverted too this can interfere with bump channel texture.
Architectural Visualizations http://www.archviz-4d.studio
User avatar
SSmolak
Licensed Customer
Posts: 1157
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Contact:

Unfortunately shading generated by normal map using standard cubic or box UV looks different even if we use OSL version of image node compared to UV Packed version of model. Please see new scene version - Left model has Automatic UV Packed, right one - box UV. ALso as I said there is no way to increase power of OSL normal map. I tried multiply but it only change shading not strenght.

Inverting generate totally different "heights" on the surface.
Attachments
UV_normal_map_issue_2.zip
(675.81 KiB) Downloaded 65 times
Architectural Visualizations http://www.archviz-4d.studio
User avatar
SSmolak
Licensed Customer
Posts: 1157
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Contact:

Problem is serious with normal map color spaces - please see attached videos.

Also I was wrong - problem is with Non-Linearized Normal Maps. Making AutoContrast in Photoshop works the same as changing ColorSpace.
Attachments
NormalMap_after_Photoshoop_AutoContrast.zip
(578.49 KiB) Downloaded 70 times
NormalMap_PackedUV_ColorSpace_Problem.zip
(625.98 KiB) Downloaded 73 times
Architectural Visualizations http://www.archviz-4d.studio
User avatar
jobigoud
OctaneRender Team
Posts: 250
Joined: Sat Aug 15, 2015 1:28 pm

Why are these normal maps saved in non-linear sRGB in the first place? This is non-color data, save them linear.
User avatar
SSmolak
Licensed Customer
Posts: 1157
Joined: Sat Feb 07, 2015 5:41 pm
Location: Poland
Contact:

jobigoud wrote:Why are these normal maps saved in non-linear sRGB in the first place? This is non-color data, save them linear.
These are orginal from many texture vendors that I have. Some of them are correctly linearealized some are not. Octane should have option to change normal map color space like it is for other texture types. I don't know why this is locked for normal maps.

For example I noticed that CG Axis ones needs to have inverted Normal map Y green channel ( they are directx versions probably ) and Exorbitart needs to have inverted X red channel and some of them are not linearized.

So this is generally texture vendors incompatibility but it would be great to have possibility to repair them directly in Octane.
Architectural Visualizations http://www.archviz-4d.studio
Post Reply

Return to “Maxon Cinema 4D”