mirror of
https://github.com/Nexoniarz/YAPF.git
synced 2026-11-03 04:54:26 +00:00
Python binding and Blender read YAPF 2
yapf.load_texture / decode_texture expose every surface and the texture description; rgba_float() for display (blocks decoded, 16-bit / float kept). Blender imports 16-bit / HDR as float images packed as EXR, decodes GPU blocks, follows the normal-map convention (DirectX flip, Z rebuilt for XY normals). Errors say why. Tested in Blender 4.4.3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DVrVthWN8GsmgHGUhhsCYm
This commit is contained in:
parent
a6c032d824
commit
fdbd0a6b8f
5 changed files with 242 additions and 16 deletions
|
|
@ -12,6 +12,14 @@ Blender 5.1).
|
|||
Blender cannot read `.yapf` on its own, so imported images are **packed into
|
||||
the .blend** and survive saving and reopening.
|
||||
|
||||
Every YAPF file opens, version 1 and 2: 8-bit images; GPU blocks (BC1–BC7,
|
||||
BC6H) decoded; 16-bit, half and float textures as **float images** (HDR
|
||||
values above 1 are kept, packed as EXR); for cubes, arrays and animations
|
||||
the first image. Normal maps follow Blender's OpenGL convention: DirectX
|
||||
normals get their green flipped, and X/Y-only normals (such as BC5) get Z
|
||||
rebuilt. Version 2 files need the bundled native library; the pure-Python
|
||||
fallback reads version 1 only. Tested in Blender 4.4.3 (nixpkgs).
|
||||
|
||||
## Install
|
||||
|
||||
1. Get `yapf_image-blender.zip` from the
|
||||
|
|
|
|||
Loading…
Reference in a new issue