Search NASASearch

DOE OSTI · code-164977

Pxl

Abstract

The code consists of several scripts. The image is fetched from a predefined URL, downloaded, and is displayed in the virtual environment at a predefined location. The image is also dynamically scaled to fit in the virtual environment depending on its size. The image is sent to have each pixel's value written to a CSV file. While the CSV is being written, a dictionary is populated with values that map each pixel to a temperature reading. The image's height, width, position and references to its corners are sent to make a button that is the same size as the image and placed right behind the image in the virtual scene. The button defines behavior that should be triggered when the user pushes the image. Unity provides visual cues that alert the user when they are about to touch something in the virtual environment. The code holds references to the cues for the left and right hands. The button queries the cue tracker and receives the position of the active cue in the form of a 3D vector. The 3D vector is compared to the bottom left corner of the image to transform the world space coordinates of the cue to the pixel space of the image. The specific pixel is approximated relative to how far left and up the user touched from the bottom left corner of the image. The approximated pixel value, which is represented as a coordinate in 2D space, is used to retrieve the temperature value associated with the approximated pixel. A window of text is then updated to display the temperature reading.

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

. Otis, KrystianeS [Idaho National Laboratory (INL), Idaho Falls, ID (United States)], Stutzman, MatthewD [Idaho National Laboratory (INL), Idaho Falls, ID (United States)], Zohner, PorterJ [Idaho National Laboratory (INL), Idaho Falls, ID (United States)]. 2025-07-31. Pxl. https://doi.org/10.11578/dc.20250924.2

Cite the original work for its findings. Save a collection to share your selection of sources.