texture coordinates using an object is not updated when an instance of the collection is created #68064

Closed
opened 2019-08-01 13:08:38 +02:00 by Daniel · 10 comments

System Information
Operating system: Windows-10-10.0.17134 64 Bits
Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 417.71

Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: f6cb5f5449
Worked: (optional)

Short description of error
If the material of an object has texture coordinates using another object when the collection is instantiated the material does not update the coordinate according to the location of the instance. The texture coordinate remains where the object is in the collection.

Exact steps for others to reproduce the error
1 create a collection
2 create an object
3 apply a material with a texture whose coordinates are obtained by means of the "texture coordinate" node
4 an empty object is created and chosen as an object in the "texture coordinate" node of the previous object
5 an instance of the collection is created
6 when moving the instance the coordinate based on the second object is not updated according to the position of this object within the instance, it remains where the original object of the collection is.

translated with google  :P
**System Information** Operating system: Windows-10-10.0.17134 64 Bits Graphics card: GeForce GTX 970/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 417.71 **Blender Version** Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: `f6cb5f5449` Worked: (optional) **Short description of error** If the material of an object has texture coordinates using another object when the collection is instantiated the material does not update the coordinate according to the location of the instance. The texture coordinate remains where the object is in the collection. **Exact steps for others to reproduce the error** 1 create a collection 2 create an object 3 apply a material with a texture whose coordinates are obtained by means of the "texture coordinate" node 4 an empty object is created and chosen as an object in the "texture coordinate" node of the previous object 5 an instance of the collection is created 6 when moving the instance the coordinate based on the second object is not updated according to the position of this object within the instance, it remains where the original object of the collection is. ``` translated with google :P
Author

Added subscriber: @Raulus

Added subscriber: @Raulus
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Not sure I understand correctly...

Here is a file:
#68064.blend

  • texture coordinates of the instance seem to be relative from the location of the instance to the empty
  • texture coordinates of the "original" seem to be relative from the location of the "original" to the empty

What would be the expected behavior vs. what is actually happening?
Sorry if I am misunderstanding, but the behavior I see is actually what I would expect?

Not sure I understand correctly... Here is a file: [#68064.blend](https://archive.blender.org/developer/F7641544/T68064.blend) - texture coordinates of the instance seem to be relative from the location of the instance to the empty - texture coordinates of the "original" seem to be relative from the location of the "original" to the empty What would be the expected behavior vs. what is actually happening? Sorry if I am misunderstanding, but the behavior I see is actually what I would expect?
Author

the empty also inside the collection, then there you can see that the instance has the empty and as it is supposed everything moves together but the texture remains where the empty "original" is in the collection and is not updated with the empty of the instance.

it is as if the material did not consider the instantiated object and retains the original object in the coordinate node

the case would be that I create an entire object and apply textures using coordinates according to other objects within the same collection and then use instances of the collection.

the empty also inside the collection, then there you can see that the instance has the empty and as it is supposed everything moves together but the texture remains where the empty "original" is in the collection and is not updated with the empty of the instance. it is as if the material did not consider the instantiated object and retains the original object in the coordinate node the case would be that I create an entire object and apply textures using coordinates according to other objects within the same collection and then use instances of the collection.
Member

Added subscribers: @fclem, @brecht

Added subscribers: @fclem, @brecht
Member

Ah Ok, get it, so it would be like
T68064_b.blend

Not sure, but assume this cannot be supported efficiently?
CC @fclem
CC @brecht

Ah Ok, get it, so it would be like [T68064_b.blend](https://archive.blender.org/developer/F7641633/T68064_b.blend) Not sure, but assume this cannot be supported efficiently? CC @fclem CC @brecht
Author

Now is the case I say. Apparently the instantiation does not reach that aspect of the materials. Thanks for your time!

Now is the case I say. Apparently the instantiation does not reach that aspect of the materials. Thanks for your time!
Member

Actually, there is kind of a way to achieve this (subtracting the Object Info > location from the Texture Coordinate > Object coordinates), see
T68064_c.blend

So maybe I spoke to soon [just forgot that we have access to per object location in the shader tree], not sure if that fits your needs @Raulus?

Actually, there is kind of a way to achieve this (subtracting the `Object Info` > `location` from the `Texture Coordinate` > `Object` coordinates), see [T68064_c.blend](https://archive.blender.org/developer/F7641931/T68064_c.blend) So maybe I spoke to soon [just forgot that we have access to per object location in the shader tree], not sure if that fits your needs @Raulus?
Author

Thank you! If it is very useful! Sometimes one loses perspective on the info that can be accessed.

Thank you! If it is very useful! Sometimes one loses perspective on the info that can be accessed.

Closed as duplicate of #56534

Closed as duplicate of #56534
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#68064
No description provided.