baking normal map using cycles does not support custom vertex normals on the baking target mesh #53498

Closed
opened 2017-12-07 07:45:09 +01:00 by Bram Eulaers · 29 comments

System Information
Windows 10

Blender Version
blender-2.79.0 2bf3825

Bug Description:

When baking normal maps from a high poly mesh to a low poly mesh using cycles, if the low poly mesh has customized vertex normals, cycles will not use them.

I uploaded a test file here which contains a simple highpoly (using a material with the new blend node) and lowpoly with custom normals (created using the Y.A.V.N.E. plugin):

http://www.brameulaers.net/blender/debug/cycles_baketest.blend

Using cycles for baking I consistently get incorrect normals baked down.

Custom normals are very often used in game development to get higher quality bakes and more flexible normal maps. Getting this feature to work correctly in Blender, used together with the new bevel node will make Blender a very powerful tool for producing PBR ready game art.
If anyone has time to take a look at this, I'd be very grateful! Hit me up if you need more test cases to work with and I'll gladly set them up.

**System Information** Windows 10 **Blender Version** blender-2.79.0 2bf3825 **Bug Description:** When baking normal maps from a high poly mesh to a low poly mesh using cycles, if the low poly mesh has customized vertex normals, cycles will not use them. I uploaded a test file here which contains a simple highpoly (using a material with the new blend node) and lowpoly with custom normals (created using the Y.A.V.N.E. plugin): http://www.brameulaers.net/blender/debug/cycles_baketest.blend Using cycles for baking I consistently get incorrect normals baked down. Custom normals are very often used in game development to get higher quality bakes and more flexible normal maps. Getting this feature to work correctly in Blender, used together with the new bevel node will make Blender a very powerful tool for producing PBR ready game art. If anyone has time to take a look at this, I'd be very grateful! Hit me up if you need more test cases to work with and I'll gladly set them up.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Leukbaars

Added subscriber: @Leukbaars

#62370 was marked as duplicate of this issue

#62370 was marked as duplicate of this issue

#54460 was marked as duplicate of this issue

#54460 was marked as duplicate of this issue

Added subscribers: @dfelinto, @Sergey

Added subscribers: @dfelinto, @Sergey
Dalai Felinto was assigned by Sergey Sharybin 2017-12-13 14:14:17 +01:00

Uploading file here: cycles_baketest.blend

@dfelinto, something you can have a look? :)

Uploading file here: [cycles_baketest.blend](https://archive.blender.org/developer/F1390266/cycles_baketest.blend) @dfelinto, something you can have a look? :)
Member

Added subscribers: @SakariLeppa, @lichtwerk

Added subscribers: @SakariLeppa, @lichtwerk

Added subscriber: @Jasiek

Added subscriber: @Jasiek

Any progress on this?
Doing a model with custom normals on the low-poly and the expertimental dispalcement on the high poly... and kinda can't progress until this is fixed, is there an ETA?

Any progress on this? Doing a model with custom normals on the low-poly and the expertimental dispalcement on the high poly... and kinda can't progress until this is fixed, is there an ETA?

Added subscriber: @Clean3d

Added subscriber: @Clean3d

Added subscriber: @AgustinDAlessandro

Added subscriber: @AgustinDAlessandro

For what I can see the normals are baked correctly, at least in 2.79.6. The problem that I noticed was the rendering of the object, custom normals and normal maps are still giving problems to cycles{F4670131}. Can anyone Upload another example, maybe I'm missing it.

For what I can see the normals are baked correctly, at least in 2.79.6. The problem that I noticed was the rendering of the object, custom normals and normal maps are still giving problems to cycles{[F4670131](https://archive.blender.org/developer/F4670131/Bake.png)}. Can anyone Upload another example, maybe I'm missing it.

I tried baking a simple model with Cycles recently and the problem persists, the low poly mesh had edited normals using the blend4web plugin, and cycles ignored them during baking, while internal gave me a correct, and quite visibly different result of the bake.

I can provide an example file later today.

Here is a recording of the process, where I first try and bake it out in cycles and am getting an unwanted result, and in the end I use internal and the result is correct :

This was recorded during a stream, so you may have to skip through the video. It contains the normal editing process, baking in cycles and internal.
https://www.youtube.com/watch?v=b23nwQb_qLI

I tried baking a simple model with Cycles recently and the problem persists, the low poly mesh had edited normals using the blend4web plugin, and cycles ignored them during baking, while internal gave me a correct, and quite visibly different result of the bake. I can provide an example file later today. Here is a recording of the process, where I first try and bake it out in cycles and am getting an unwanted result, and in the end I use internal and the result is correct : This was recorded during a stream, so you may have to skip through the video. It contains the normal editing process, baking in cycles and internal. https://www.youtube.com/watch?v=b23nwQb_qLI

Will check it out

Will check it out

Added subscriber: @Vyach

Added subscriber: @Vyach

Added subscriber: @SteffenD

Added subscriber: @SteffenD

Added subscriber: @EugenioPignataro

Added subscriber: @EugenioPignataro

Same problem for me.
I'm in 2.8

Same problem for me. I'm in 2.8
Dalai Felinto removed their assignment 2019-12-23 16:36:26 +01:00
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Philipp Oeser self-assigned this 2020-02-10 13:05:37 +01:00
Member

It looks like this has been resolved?
In 79003fa0c4 I get:

2.8 Cycles with Split Normals
image.png
2.8 Cycles without Split Normals
image.png

whereas in 2.79 these looked the same with or without the split normals...

[looks like this has been resolved somewhere between 8aa87972ca and 9ab0247b6e, probably c8e3fe608e]

So will close as resolved, feel free though to comment again if issues persist...

It looks like this has been resolved? In 79003fa0c4 I get: 2.8 Cycles with Split Normals ![image.png](https://archive.blender.org/developer/F8332398/image.png) 2.8 Cycles without Split Normals ![image.png](https://archive.blender.org/developer/F8332395/image.png) whereas in 2.79 these looked the same with or without the split normals... [looks like this has been resolved somewhere between 8aa87972ca and 9ab0247b6e, probably c8e3fe608e] So will close as resolved, feel free though to comment again if issues persist...

At a quick glance the sides of the screws (I assume that's what it is- the two vertical strips on the left) look incorrect - like world space normals. It could be a problem with the model, will test it out on my own model.

Just making sure here too - the issue at hand is surface weighted normals on the low poly, not the high poly - as in, an ingame model might have both a baked normal map and surface weighted normals, and they need to be baked to the low poly with the weighted normal taken into account.

Thanks!

At a quick glance the sides of the screws (I assume that's what it is- the two vertical strips on the left) look incorrect - like world space normals. It could be a problem with the model, will test it out on my own model. Just making sure here too - the issue at hand is surface weighted normals on the low poly, not the high poly - as in, an ingame model might have both a baked normal map and surface weighted normals, and they need to be baked to the low poly with the weighted normal taken into account. Thanks!
Member

Changed status from 'Resolved' to: 'Needs User Info'

Changed status from 'Resolved' to: 'Needs User Info'
Philipp Oeser removed their assignment 2020-02-10 15:00:37 +01:00
Member

Thx for getting back.
Yes, please check again, if it turns out there are still issues, please also upload your own file here...

Thx for getting back. Yes, please check again, if it turns out there are still issues, please also upload your own file here...

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'
Campbell Barton self-assigned this 2020-02-24 03:39:42 +01:00

More than a week without reply or activity.
Due to the policy of the tracker closing for until required info/data are provided.

If the problem persists please open a new report with the required information.

More than a week without reply or activity. Due to the policy of the tracker closing for until required info/data are provided. If the problem persists please open a new report with the required information.

Added subscriber: @BadSpleen

Added subscriber: @BadSpleen

Hi. I was having the same problem where the custom split normal data wasn't being used when baking down to a low poly mesh. I noted in the documentation that FBX files support split normals. I exported my object as an FBX, then reimported it, and the normal map baked out as expected, using the split normals.

Hope this helps in some way.

Cheers,
Adam

Hi. I was having the same problem where the custom split normal data wasn't being used when baking down to a low poly mesh. I noted in the documentation that FBX files support split normals. I exported my object as an FBX, then reimported it, and the normal map baked out as expected, using the split normals. Hope this helps in some way. Cheers, Adam

Removed subscriber: @Vyach

Removed subscriber: @Vyach
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
13 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#53498
No description provided.