Page MenuHome

"From Dupli" in Cycles Texture Coordinates not working
Closed, ResolvedPublic

Description

System Information
Operating system and graphics card

Ubuntu 14.04 x86

Blender Version
Broken: 2.71 RC2
Worked: (optional)

Short description of error

"From Dupli" in Cycles Texture Coordinate node not working

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

Open the attached .blend, render/start preview

Event Timeline

I got the same Problem withe Particels

The following file is simpler, it works in 2.69 but not in 2.70 and not in 2.71 RC2:

It does not work in the UV Map node either (anymore).

Lukas Toenne (lukastoenne) triaged this task as Confirmed, Medium priority.Jun 20 2014, 10:40 AM

The issue was caused by changes to "for_render" flags during the threaded depsgraph commit:
rB709041ed0b7e1848068c9d53543ed114229a9f5b

This replaced widespread usage of G.is_rendering and derived flags by a common EvaluationContext struct with a for_render setting.

Problem is that the previous dupli code was not so strict about the meaning of this flag and now there is some ambiguity: for_render is really only true for full render evaluation ("F12 render"), while false for viewport preview renders. The old G.is_rendering checks were also generating Orco/UV coordinates for previews, but this is now omitted.

For reference:

dupliverts:
https://developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/object_dupli.c;d1b45f7f7c77c964a0dfd27c5518c063cbb77026$545

duplifaces:
https://developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/object_dupli.c;d1b45f7f7c77c964a0dfd27c5518c063cbb77026$807
https://developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/object_dupli.c;d1b45f7f7c77c964a0dfd27c5518c063cbb77026$765

dupliparticles:
https://developer.blender.org/diffusion/B/browse/master/source/blender/blenkernel/intern/object_dupli.c;d1b45f7f7c77c964a0dfd27c5518c063cbb77026$837

I just tried again and it works with UV when hitting F12 in my second test. The file I sent earliers seems to have more problems. Strange :(

Hi Lukasstoenne
many thank you that you have this request approved as soon