Difference between revisions of "Get Texture 3D Pixel (LogiX node)"

From Neos Wiki
Jump to navigation Jump to search
m
m
 
Line 13: Line 13:
 
The '''Get Texture 3D Pixel''' node returns the color of a pixel by locating it on the input 3D texture according to the specified position. This node is distinct from from the [[Sample_Texture3D_UVW_(LogiX_node)|Sample Texture3D UVW]] node as it accepts an int3 instead of an float3; this ensures the sampling remains constrained to individual pixels rather than being [https://en.wikipedia.org/wiki/Texture_filtering interpolated across pixels].
 
The '''Get Texture 3D Pixel''' node returns the color of a pixel by locating it on the input 3D texture according to the specified position. This node is distinct from from the [[Sample_Texture3D_UVW_(LogiX_node)|Sample Texture3D UVW]] node as it accepts an int3 instead of an float3; this ensures the sampling remains constrained to individual pixels rather than being [https://en.wikipedia.org/wiki/Texture_filtering interpolated across pixels].
 
== Usage ==
 
== Usage ==
<code>Texture</code> is the texture you want to sample a pixel from. <code>Position</code> is the 2D coordinate (starting from the bottom left of the texture) of the pixel you want to return the color value of.
+
<code>Texture</code> is the texture you want to sample a pixel from. <code>Position</code> is the 3D coordinate (starting from the bottom left of the texture) of the pixel you want to return the color value of.
  
 
== Examples ==
 
== Examples ==

Latest revision as of 03:38, 8 May 2022

Get Texture 3D Pixel
'Get Texture 3D Pixel' LogiX node
Inputs
  Texture3D Texture
  Int3 Position
Outputs
  Color Color

The Get Texture 3D Pixel node returns the color of a pixel by locating it on the input 3D texture according to the specified position. This node is distinct from from the Sample Texture3D UVW node as it accepts an int3 instead of an float3; this ensures the sampling remains constrained to individual pixels rather than being interpolated across pixels.

Usage

Texture is the texture you want to sample a pixel from. Position is the 3D coordinate (starting from the bottom left of the texture) of the pixel you want to return the color value of.

Examples

Node Menu

Assets
Back Attach Audio Clip Attach Mesh Attach Sprite Attach Texture2D Bake Meshes Find Animation Track Index
Format Locale String Get Asset`1 Get Texture 2D Pixel Get Texture 3D Pixel Locale Message Count Sample Animation Track`1 Sample Texture2D UV
Sample Texture3D UVW Texture 2D Format Texture 3D Format