texture coordinate "from instancer" option does not work for verts #72101

Closed
opened 2019-12-01 23:35:48 +01:00 by aombk · 7 comments

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce RTX 2070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 441.20

Blender Versions
Broken: version: 2.82 (sub 3), branch: master, commit date: 2019-11-30 17:33, hash: f1ac64921b
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-20 14:27, hash: 26bd5ebd42
and probably more...

Short description of error
texture coordinate "from instancer" option does not work when instancer is set to verts. it works when set to faces
here is a simple blend file:
http://pasteall.org/blend/index.php?id=52640

**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce RTX 2070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 441.20 **Blender Versions** Broken: version: 2.82 (sub 3), branch: master, commit date: 2019-11-30 17:33, hash: `f1ac64921b` Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-20 14:27, hash: `26bd5ebd42` and probably more... **Short description of error** texture coordinate "from instancer" option does not work when instancer is set to verts. it works when set to faces here is a simple blend file: http://pasteall.org/blend/index.php?id=52640
Author

Added subscriber: @aombk

Added subscriber: @aombk
Member

Added subscribers: @Sergey, @lichtwerk

Added subscribers: @Sergey, @lichtwerk
Member

Not sure I am reading this wrong:
https://docs.blender.org/manual/en/dev/render/shader_nodes/input/texture_coordinate.html

From Instancer only works with the UV output when the object is instanced, either from particles or from faces.

Cannot really get it to work with Generated coords either though...

Might be a limitation, this is only working for faces?

Note: we had this for faces in viewport rendering #60646 (Texture Coordinate node, From Instancer option do not work as expected in 2.8) which was fixed.

Maybe @Sergey can put the nail in the coffin?

Not sure I am reading this wrong: https://docs.blender.org/manual/en/dev/render/shader_nodes/input/texture_coordinate.html > From Instancer only works with the UV output when the object is instanced, either from particles or from faces. Cannot really get it to work with `Generated` coords either though... Might be a limitation, this is only working for faces? Note: we had this for faces in viewport rendering #60646 (Texture Coordinate node, From Instancer option do not work as expected in 2.8) which was fixed. Maybe @Sergey can put the nail in the coffin?
Author

yes it only works with faces.
it works for particles that are emitted from faces as well, but not when they are emitted from verts.

yes it only works with faces. it works for particles that are emitted from faces as well, but not when they are emitted from verts.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sergey Sharybin self-assigned this 2019-12-06 08:33:39 +01:00

Quite sure it is the same as in all previous versions of Blender.

The reason why this is happening is because texture coordinate is stored per-face-corner (called loop in Blender) and a vertex can be adjacent to a multiple face-corners with different texture coordinates.

There might be a way to find an artist predictable mapping, but it's something what hasn't been done yet.

So thanks for the report, but it's just a known limitation.

Quite sure it is the same as in all previous versions of Blender. The reason why this is happening is because texture coordinate is stored per-face-corner (called loop in Blender) and a vertex can be adjacent to a multiple face-corners with different texture coordinates. There might be a way to find an artist predictable mapping, but it's something what hasn't been done yet. So thanks for the report, but it's just a known limitation.
Author

this makes perfect sense, thanks sergey
i think a better solution than the current one (returning no vertex coordinate information at all) would be to just return the coordinates of a random adjacent face-corner when from instancer is cheked.
in the meantime i will continue looking for a way to fake it

this makes perfect sense, thanks sergey i think a better solution than the current one (returning no vertex coordinate information at all) would be to just return the coordinates of a random adjacent face-corner when from instancer is cheked. in the meantime i will continue looking for a way to fake 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
3 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#72101
No description provided.