open all | close all

Hash

大麻

Preview 预览Basic 基础Inputs 投入Outputs 产出

Hash

大麻

The Hash Node can be used to generate any number of random values and random colors. In this example, a new calculation of the color for each polygon of a subdivided cube was started. 哈希节点可用于生成任意数量的随机值和随机颜色。在此示例中,开始计算细分立方体的每个多边形的颜色

A Hash function is a function which maps data of arbitrary size to data of a fixed size. For example, the input might be any letter of the alphabet, and the hashed result would be a (seemingly random) whole number between 1 and 10. As there are more than 10 letters in the alphabet, obviously not each letter can be mapped to a unique number — this is then referred to as a "hash collision”.

哈希函数是一个将任意大小的数据映射到固定大小的数据的函数。例如,输入可能是字母表中的任何一个字母,散列结果将是介于1和10之间的一个(看似随机的)整数。由于字母表中有10个以上的字母,显然不是每个字母都可以映射到一个唯一的数字ーー这就被称为“散列碰撞”。

In the case of the Hash node, this function is used to generate pseudorandom colors, floats and vectors based on both the Seed and Salt values.

对于 Hash 节点,这个函数用于根据 Seed 和 Salt 值生成伪随机颜色、浮点数和向量。