Complete node pack with ZeroCLIP-A through ZeroCLIP-D conditioning nodes, shared utilities, core modules, vocab files, and example workflows. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
13 lines
431 B
Python
13 lines
431 B
Python
"""ZeroCLIP-B seed-to-coordinate encoding."""
|
|
|
|
from .hash import fnv64, pack_seed, child_hash, hash_to_float
|
|
|
|
|
|
def seed_to_coords(concept_id, style_id, mood_salt, world_seed):
|
|
packed = pack_seed(concept_id, style_id, mood_salt, world_seed)
|
|
base = fnv64(packed)
|
|
cx = hash_to_float(child_hash(base, 0))
|
|
cy = hash_to_float(child_hash(base, 1000))
|
|
cz = hash_to_float(child_hash(base, 2000))
|
|
return (cx, cy, cz)
|