Texture Vector input problems when using RGB values as input #49640

Closed
opened 2016-10-12 13:39:59 +02:00 by Tobiasz Karoń · 5 comments

I use RGB data to locate pixels in my image texture.

I used an Combine XYZ node to convert Color values to Vector type to drive the Image Texture node's Vector input.

Now I need to use a Vector Transform node in the middle for the coordinates to have any effect on the texture mapping.

If I plug a straight RGB color output to the Vector input - the Image Texxture ignores it and uses mesh's UV mapping instead.
If I use Combine XYZ node to feed the Image Texture's Vector input - it's ignored also and default UV is used instead.

Gradient Texture node behaves differently though:

If RGB or Combine XYZ nodes are used to feed it - it returns black. Only works as expected if a Vector Transform node is in-between.

Looks like Combine XYZ node's Vector output is not good enough for Texture nodes for some reason, but pushing it through a Vector Transform (that does no change) makes the data acceptable and the textures are mapped as expected.

Here's a test project: Texture vector input bug test 01.blend

Screenshot:

Selection_012.png

Roll around the RGB node's color circle - the color of the cube should change.
Connect either the raw RGB, Combine XYZ or Vector transfor output to the Vector reroute.
Disconnect the Vector Reroute to see UV-mapped texture on the cube (Image Texture and Gradient mixed).

All three sources should give the same output - because the numbers fed into the Vector reroute are essentially the same. Aren't they? So why only Vector Transform node output makes the color circle change the mapping of the texture on the Cube?

In Blender 2.78 only Vector Transform works as expected.
In Blender 2.77a Vector Transform and Combine XYZ give the same result.

I'd expect pure RGB plugged into Vector to also work here the same way - why one would not want this? Am I missing something?

I use RGB data to locate pixels in my image texture. I used an Combine XYZ node to convert Color values to Vector type to drive the Image Texture node's Vector input. Now I need to use a Vector Transform node in the middle for the coordinates to have any effect on the texture mapping. If I plug a straight RGB color output to the Vector input - the Image Texxture ignores it and uses mesh's UV mapping instead. If I use Combine XYZ node to feed the Image Texture's Vector input - it's ignored also and default UV is used instead. Gradient Texture node behaves differently though: If RGB or Combine XYZ nodes are used to feed it - it returns black. Only works as expected if a Vector Transform node is in-between. Looks like Combine XYZ node's Vector output is not good enough for Texture nodes for some reason, but pushing it through a Vector Transform (that does no change) makes the data acceptable and the textures are mapped as expected. **Here's a test project:** [Texture vector input bug test 01.blend](https://archive.blender.org/developer/F377313/Texture_vector_input_bug_test_01.blend) Screenshot: ![Selection_012.png](https://archive.blender.org/developer/F377314/Selection_012.png) Roll around the RGB node's color circle - the color of the cube should change. Connect either the raw RGB, Combine XYZ or Vector transfor output to the Vector reroute. Disconnect the Vector Reroute to see UV-mapped texture on the cube (Image Texture and Gradient mixed). All three sources should give the same output - because the numbers fed into the Vector reroute are essentially the same. Aren't they? So why only Vector Transform node output makes the color circle change the mapping of the texture on the Cube? In Blender 2.78 only Vector Transform works as expected. In Blender 2.77a Vector Transform and Combine XYZ give the same result. I'd expect pure RGB plugged into Vector to also work here the same way - why one would not want this? Am I missing something?
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @TobiaszunfaKaron

Added subscriber: @TobiaszunfaKaron

This issue was referenced by blender/cycles@286fd770a3

This issue was referenced by blender/cycles@286fd770a3fbeae63043d7aa26bbe32739475e6a

This issue was referenced by 7f5441b916

This issue was referenced by 7f5441b9167e46761c944584719a556d4604da46

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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#49640
No description provided.