Maniphest T63424

Normal map node doesn't works with curve objects (or any object without UVs) in EEVEE
Closed, ResolvedBUG

Assigned To
Clément Foucault (fclem)
Authored By
Michael Soluyanov (crantisz)
Apr 9 2019, 4:27 PM
Tags
  • BF Blender
  • EEVEE & Viewport
Subscribers
Clément Foucault (fclem)
Michael Soluyanov (crantisz)
Mike Futcher (yogyog)
Philip Holzmann (Foaly)
Richard Antalik (ISS)
Sebastian Parborg (zeddb)

Description

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: rB75f551facaf0
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)

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

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

Revisions and Commits

rB Blender

Event Timeline

Michael Soluyanov (crantisz) created this task.Apr 9 2019, 4:27 PM
Michael Soluyanov (crantisz) added a project: Eevee.
Sebastian Parborg (zeddb) assigned this task to Clément Foucault (fclem).Apr 9 2019, 9:02 PM
Sebastian Parborg (zeddb) lowered the priority of this task from 90 to 50.
Sebastian Parborg (zeddb) added a subscriber: Sebastian Parborg (zeddb).

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.

Michael Soluyanov (crantisz) added a comment.EditedApr 9 2019, 9:11 PM
In T63424#657577, @Sebastian Parborg (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 (crantisz) renamed this task 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.Apr 9 2019, 9:13 PM
Michael Soluyanov (crantisz) updated the task description.
Philip Holzmann (Foaly) added a subscriber: Philip Holzmann (Foaly).Jun 10 2019, 1:24 PM

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.

Mike Futcher (yogyog) added a subscriber: Mike Futcher (yogyog).Sep 13 2019, 1:32 PM

"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?

Philip Holzmann (Foaly) added a comment.Sep 17 2019, 4:00 PM

@Mike Futcher (yogyog) I think I used an Array Modifer with count set to 1.

Dalai Felinto (dfelinto) removed Clément Foucault (fclem) as the assignee of this task.Dec 23 2019, 4:34 PM
Dalai Felinto (dfelinto) added a project: Tracker Curfew.
Dalai Felinto (dfelinto) added a subscriber: Clément Foucault (fclem).
Clément Foucault (fclem) claimed this task.Jan 29 2020, 9:49 PM
Clément Foucault (fclem) changed the subtype of this task from "Report" to "Bug".
Clément Foucault (fclem) edited projects, added EEVEE & Viewport; removed Tracker Curfew.
Richard Antalik (ISS) changed the subtype of this task from "Bug" to "Known Issue".Jan 30 2020, 12:42 AM
Richard Antalik (ISS) changed the subtype of this task from "Known Issue" to "Bug".
Richard Antalik (ISS) added a subscriber: Richard Antalik (ISS).

oops, haven't noticed this has been triaged

Clément Foucault (fclem) closed this task as Resolved by committing rB15350c70be8b: DRW: Add support for tangent on objects using display lists..Jan 30 2020, 1:38 AM
Clément Foucault (fclem) added a commit: rB15350c70be8b: DRW: Add support for tangent on objects using display lists..
Clément Foucault (fclem) removed a project: Eevee.Jun 19 2020, 11:07 PM