Cycles bake - high-> lowpoly bake triangle orientation is mixed for texture coords in shader normals. #45463

Closed
opened 2015-07-16 23:06:02 +02:00 by Vilem Duha · 14 comments
Member

System Information
win 8.1 32gb
nvidia 880m 8gb

Blender Version
Broken: 2b5e150
Worked: probably never

Short description of error
generated noise texture is wrongly mapped in other direction, when baking selection to active in the provided file. The artifacts are quite gentle, and only happen to normals of the shader(not baked normals). Also, if the texture is mapped to color of shader, the color is ok.
the bug doesn't happen when triangulate modifier is added to the target object.
This happens for me on many objects, this is just one example.

Exact steps for others to reproduce the error
open the file, hit bake.
add triangulate to the "test" object, voila, problem gone.

bakebug_triangulate1.blend
pasted_file

**System Information** win 8.1 32gb nvidia 880m 8gb **Blender Version** Broken: 2b5e150 Worked: probably never **Short description of error** generated noise texture is wrongly mapped in other direction, when baking selection to active in the provided file. The artifacts are quite gentle, and only happen to normals of the shader(not baked normals). Also, if the texture is mapped to color of shader, the color is ok. the bug doesn't happen when triangulate modifier is added to the target object. This happens for me on many objects, this is just one example. **Exact steps for others to reproduce the error** open the file, hit bake. add triangulate to the "test" object, voila, problem gone. [bakebug_triangulate1.blend](https://archive.blender.org/developer/F207510/bakebug_triangulate1.blend) ![pasted_file](https://archive.blender.org/developer/F207497/pasted_file)
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @VilemDuha

Added subscriber: @VilemDuha

Added subscriber: @mont29

Added subscriber: @mont29
Dalai Felinto was assigned by Bastien Montagne 2015-07-17 19:34:53 +02:00

Dalai, maybe you can check this one? Thanks.

Dalai, maybe you can check this one? Thanks.
Author
Member

Just a comment - it looks very similar to other artifacts you can get in other bugs, but it's not a duplicate. All somehow manage to mix something up, but they are all different by the specific conditions in which they happen.

Just a comment - it looks very similar to other artifacts you can get in other bugs, but it's not a duplicate. All somehow manage to mix something up, but they are all different by the specific conditions in which they happen.
Author
Member

Upadte - this also happens with highpoly objects, so even if the lowpoly object has triangulate, it can still happen.
When both objects have triangulate, then it's ok.

Upadte - this also happens with highpoly objects, so even if the lowpoly object has triangulate, it can still happen. When both objects have triangulate, then it's ok.
Author
Member

just uploaded a file for the above comment - you can see half a triangle has an artifact, it's probably because of the triangulation of both objects acting over each other. Here the artifact is again quite subtle, but I guess it's visible how the coords are rotated. again, add triangulate to the object which gets baked from to fix the artifact and see the difference
artifact_highpoly.blend
pasted_file

just uploaded a file for the above comment - you can see half a triangle has an artifact, it's probably because of the triangulation of both objects acting over each other. Here the artifact is again quite subtle, but I guess it's visible how the coords are rotated. again, add triangulate to the object which gets baked from to fix the artifact and see the difference [artifact_highpoly.blend](https://archive.blender.org/developer/F211352/artifact_highpoly.blend) ![pasted_file](https://archive.blender.org/developer/F211349/pasted_file)

Added subscriber: @BartekMoniewski

Added subscriber: @BartekMoniewski

I'm not sure I can see the artifact here. Also it's a strange report because 'internally' we add a triangulate modifier to the highpoly object, exactly to prevent triangulation issues.

I'm not sure I can see the artifact here. Also it's a strange report because 'internally' we add a triangulate modifier to the highpoly object, exactly to prevent triangulation issues.

I simplified the file a bit, and I can confirm that there is some difference when triangulating (or not) the low poly object. File: bakebug_triangulate2.blend

  • Original: bake-original.jpg
  • Triangulated: bake-triangulate.jpg
I simplified the file a bit, and I can confirm that there is some difference when triangulating (or not) the low poly object. File: [bakebug_triangulate2.blend](https://archive.blender.org/developer/F223458/bakebug_triangulate2.blend) * Original: ![bake-original.jpg](https://archive.blender.org/developer/F223459/bake-original.jpg) * Triangulated: ![bake-triangulate.jpg](https://archive.blender.org/developer/F223460/bake-triangulate.jpg)

Added subscriber: @brecht

Added subscriber: @brecht

@brecht do you think this can be caused by the differentials calculation?
The differential calculation that we do is based on the image space and the low poly object uv.

The differentials are relative to the UV/image space, so the highpoly differentials
are the same as the low poly differentials

Since the issue shows up when using bump map, and is sensitive to the low poly object geometry, I believe it's related to the differentials.

@brecht do you think this can be caused by the differentials calculation? The differential calculation that we do is based on the image space and the low poly object uv. ``` The differentials are relative to the UV/image space, so the highpoly differentials are the same as the low poly differentials ``` Since the issue shows up when using bump map, and is sensitive to the low poly object geometry, I believe it's related to the differentials.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

I can confirm this bug in 2.75 and 2.76, but in latest master this seems to be all fine. There were various fixes regarding triangulation consistency, which I suspect fixed this, but did not try to find the specific commit that did it.

I can confirm this bug in 2.75 and 2.76, but in latest master this seems to be all fine. There were various fixes regarding triangulation consistency, which I suspect fixed this, but did not try to find the specific commit that did it.
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
5 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#45463
No description provided.