Page MenuHome

Texture Coordinate node, From Instancer option do not work as expected in 2.8
Closed, ResolvedPublic

Description

System Information
Operating system: Windows 7 SP1 (x64)
Graphics card: nVidia GeForce GTX 1080 Ti

Blender Version
Broken:
version: 2.80 (sub 41), branch: master, commit date: 2019-01-17 10:44, hash: ad707115d5bc, type: Release, build date: 17/01/2019, 03:08

Worked:
version: 2.79 (sub 0), branch: master, commit date: 2017-09-11 10:43, hash: 5bd8ac9, type: build, date: Mon 09/11/2017, 07:44 AM

Short description of error
In Shader Editor, Texture Coordinate node, option "From Instancer" ("From Dupli" in case of Blender 2.79) do not work in Blender 2.8 in case when we are trying to get surface color from particle emitter and use it in particle material when render particles/hairs as objects.
Attached overview image shows how same .blend file renders in 2.79 (cycles) and 2.8 (cycles and eevee).

Edit 28.01.2019 : In case of 2.8+Cycles issue only appears in viewport rendering mode. Full render works as expected.

Exact steps for others to reproduce the error
Attached .blend file and texture file with issues.

Steps from default scene:

  1. Add new Cube with "Generate UVs" option
  2. Create new texture image in Image Editor
  3. Create material for cube which is using new texture as color input in diffuse bsdf (UV as texture coordinate)
  4. In Texture Paint mode add some colors to Cube' texture
  5. Create a Plain with "Generate UVs" option
  6. Create material for new plain, add Texture Coordinate and Image Textude nodes, check "From Instancer" ("From Dupli" in 2.79), link UV output with Vector, select same image in Image Texture as in Cube material.
  7. Create Particle system for a Cube, check "Hair" as type of particle system, set Render -> Render As "Object", select Plain as object

Event Timeline

Sebastian Parborg (zeddb) lowered the priority of this task from Needs Triage by Developer to Confirmed, Medium.

Actual cycles render seems to work fine (it is just viewport rendering that fails...)

Eevee: this is a know limitation for now, listed here https://docs.blender.org/manual/en/dev/render/eevee/materials/nodes_support.html#other-nodes-support
quote:

Texture Coordinate Node: From Dupli and coordinate from custom Object is not supported.

What is left: viewport rendering.
Similar case in T57922 (though not the same)

But I think what sill holds true is:

regarding 2.8 and viewport rendering: UVs are only calculated if we are in DAG_EVAL_RENDER mode (see here), but we are in DAG_EVAL_VIEWPORT (even if set to cycles viewport rendering)