Normal map node doesn't works with curve objects (or any object without UVs) in EEVEE #63424

Closed
opened 2019-04-09 16:27:09 +02:00 by Michael Soluyanov · 14 comments

System Information
Operating system: Linux-4.15.0-46-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 390.116

Blender Version
Broken: version: 2.80 (sub 54), branch: blender2.7, commit date: 2019-04-07 15:02, hash: 75f551faca
Worked: cycles

Short description of error
Normal map node doesn't works with curve objects (or any object without UVs) in EEVEE

Exact steps for others to reproduce the error
Open file, open lookdev (or rendered, but add some HDRI to clear view effects)

normal map test 3.blend

You will see something like this. Left object is curve, right - default mesh cube:

Снимок экрана от 2019-04-09 17-20-29.png

Normal map affects on cube, but not on curve object. Normal map also plugged into color, to preview, that texture coordinate works well.

**System Information** Operating system: Linux-4.15.0-46-generic-x86_64-with-debian-buster-sid 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 390.116 **Blender Version** Broken: version: 2.80 (sub 54), branch: blender2.7, commit date: 2019-04-07 15:02, hash: `75f551faca` Worked: cycles **Short description of error** Normal map node doesn't works with curve objects (or any object without UVs) in EEVEE **Exact steps for others to reproduce the error** Open file, open lookdev (or rendered, but add some HDRI to clear view effects) [normal map test 3.blend](https://archive.blender.org/developer/F6922508/normal_map_test_3.blend) You will see something like this. Left object is curve, right - default mesh cube: ![Снимок экрана от 2019-04-09 17-20-29.png](https://archive.blender.org/developer/F6922509/Снимок_экрана_от_2019-04-09_17-20-29.png) Normal map affects on cube, but not on curve object. Normal map also plugged into color, to preview, that texture coordinate works well.
Author
Member

Added subscriber: @crantisz

Added subscriber: @crantisz

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Clément Foucault was assigned by Sebastian Parborg 2019-04-09 21:02:25 +02:00

I'm getting a lot of depsgraph asserts when going into the material tab. (But I'm unsure if they are related or not)

BLI_assert failed: /home/zed/prog/blender/source/blender/depsgraph/intern/depsgraph.cc:124, add_id_node(), at '(id->tag & LIB_TAG_COPIED_ON_WRITE) == 0'

The issue here is not with curve objects, you can convert the curve object to mesh and the issue is still present.
The cause seem to be the normal map node as you pointed out. If i just connect the normal map texture to the normal input on the shader, I get modified normals.

But if I pass it through the normal map node, this doesn't happen.

I'm getting a lot of depsgraph asserts when going into the material tab. (But I'm unsure if they are related or not) ``` BLI_assert failed: /home/zed/prog/blender/source/blender/depsgraph/intern/depsgraph.cc:124, add_id_node(), at '(id->tag & LIB_TAG_COPIED_ON_WRITE) == 0' ``` The issue here is not with curve objects, you can convert the curve object to mesh and the issue is still present. The cause seem to be the normal map node as you pointed out. If i just connect the normal map texture to the normal input on the shader, I get modified normals. But if I pass it through the normal map node, this doesn't happen.
Author
Member

In #63424#657577, @ZedDB wrote:
The issue here is not with curve objects, you can convert the curve object to mesh and the issue is still present.

Yes, and only adding empty UV map solves the problem. So it's looks like Normal map node doesn't work without UV-map...

> In #63424#657577, @ZedDB wrote: > The issue here is not with curve objects, you can convert the curve object to mesh and the issue is still present. Yes, and only adding empty UV map solves the problem. So it's looks like Normal map node doesn't work without UV-map...
Michael Soluyanov changed title from Normal map node doesn't works with curve objects in EEVEE to Normal map node doesn't works with curve objects (or any object without UVs) in EEVEE 2019-04-09 21:13:06 +02:00

Added subscriber: @Foaly

Added subscriber: @Foaly

Just a little note:
The problem here seems to be that curves don't have tangents. You can check this via the tangent node set to UV Map mode.
However, when curves are evaluated as a mesh, they get tangents (e. g. by adding a modifier).

So a possible workaround to get tangents for now is to just add a modifier that does nothing.

Just a little note: The problem here seems to be that curves don't have tangents. You can check this via the tangent node set to UV Map mode. However, when curves are evaluated as a mesh, they get tangents (e. g. by adding a modifier). So a possible workaround to get tangents for now is to just add a modifier that does nothing.

Added subscriber: @MikeFutcher

Added subscriber: @MikeFutcher

"So a possible workaround to get tangents for now is to just add a modifier that does nothing."

Sounds like a good solution - except I can't get this to work either. Do you have a mod that works with this?

"So a possible workaround to get tangents for now is to just add a modifier that does nothing." Sounds like a good solution - except I can't get this to work either. Do you have a mod that works with this?

@MikeFutcher I think I used an Array Modifer with count set to 1.

@MikeFutcher I think I used an Array Modifer with count set to 1.
Clément Foucault was unassigned by Dalai Felinto 2019-12-23 16:34:40 +01:00

Added subscriber: @fclem

Added subscriber: @fclem
Clément Foucault self-assigned this 2020-01-29 21:49:27 +01:00

Added subscriber: @iss

Added subscriber: @iss

oops, haven't noticed this has been triaged

oops, haven't noticed this has been triaged

This issue was referenced by 15350c70be

This issue was referenced by 15350c70be8befa661505f10c8151110bcbf2cb6

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
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
8 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#63424
No description provided.