Image Texture sampling by int X and Y pixel indices #102289

Open
opened 2022-11-05 15:47:05 +01:00 by Iliya Katushenock · 8 comments

Implement the ability to sample an image not only by the position vector, but also by the pixel coordinates.

Since this implies some simplification of the already implemented code, it would be convenient to either reuse the existing sampling code for another node, or switch the mode of operation in the original node. The variant of the image_closest_texture_lookup method for ImageFieldsFunction with integer support looks as close as possible.
This also implies, there is no need for interpolation methods.

Implement the ability to sample an image not only by the position vector, but also by the pixel coordinates. Since this implies some simplification of the already implemented code, it would be convenient to either reuse the existing sampling code for another node, or switch the mode of operation in the original node. The variant of the `image_closest_texture_lookup` method for `ImageFieldsFunction` with integer support looks as close as possible. This also implies, there is no need for interpolation methods.
Author
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Author
Member

Added subscriber: @mod_moder

Added subscriber: @mod_moder
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Hans Goudey changed title from Image Texture sampling by int X and Y pixel positions to Image Texture sampling by int X and Y pixel indices 2022-11-05 16:13:17 +01:00
Author
Member

Also questionable. If you think of integer sampling as a way to accurately capture color, which is most often the case for ordered indices, it can be useful to have another sampling option like this: Sample by pixel index. This would mean that the input is only the index of the color in memory and it does not require any math so that the geometry can get the color through the coordinates from the indices

Also questionable. If you think of integer sampling as a way to accurately capture color, which is most often the case for ordered indices, it can be useful to have another sampling option like this: Sample by pixel index. This would mean that the input is only the index of the color in memory and it does not require any math so that the geometry can get the color through the coordinates from the indices

Added subscriber: @GeorgiaPacific

Added subscriber: @GeorgiaPacific
Author
Member

Added subscriber: @ecosky

Added subscriber: @ecosky
Author
Member

An example of how this node can be used.
2022-11-18 16-40-15.mp4

An example of how this node can be used. [2022-11-18 16-40-15.mp4](https://archive.blender.org/developer/F13941361/2022-11-18_16-40-15.mp4)

Added subscriber: @Peter-Jackson

Added subscriber: @Peter-Jackson
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:43:31 +01:00
Iliya Katushenock removed the
Status
Confirmed
Module
Nodes & Physics
labels 2024-02-19 18:33:40 +01:00
Iliya Katushenock added this to the Nodes & Physics project 2024-02-19 18:33:44 +01:00
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 Assignees
4 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#102289
No description provided.