PTEX ファイル形式とは?
.ptexファイルは、Walt Disney Animation Studiosがオープンソースとして公開した面ごとのテクスチャマッピングシステムであるPtexで作成されたテクスチャです。UV座標を介して1枚の平面画像をモデルに引き伸ばして貼り付ける代わりに、Ptexファイルはサブディビジョンまたはポリゴンメッシュのすべての面に対して、個別の小さなテクスチャを保存します。Disneyは2008年以来、自社の映画でこのフォーマットを使用しています。これにより、テクスチャアーティストはUVを展開することなく、サーフェスに直接ペイントできるようになりました。
内部的には、PtexファイルはASCIIシグネチャのPtexで始まり、リトルエンディアンでデータを保存します。サーフェスのすべての面のテクスチャを1つのファイルにまとめ、滑らかなフィルタリングのためのミップマップと、レンダラーが面の境界をまたいで目に見える継ぎ目なくブレンドできるようにするための面ごとの隣接マップを保持しています。ピクセルデータは8ビットまたは16ビットの整数、ハーフフロート、または32ビットの浮動小数点に対応し、任意のチャンネル数を持つことができ、テクスチャブロックはzlibで圧縮されます。1つのファイルで数十万個の個別の面テクスチャを保持できます。ほとんどのツールはこれらのファイルを.ptx拡張子で書き出しますが、一部のドキュメントでは.ptexという別名が使われることもあります。
セキュリティと安全性
リスク: LOWA .ptex file is passive texture data with no scripting or executable code. It is only parsed by 3D rendering and painting software. The main practical risk is a malformed or truncated file failing to load; there is no known malware vector in the format itself.
形式の詳細
概要- Material Maker procedural material - Rodz Labs' open-source Material Maker uses a .ptex extension for its JSON-formatted procedural material/texture graphs, an unrelated format from the Godot-based tool.
- PTX point-cloud export (.ptx) - Leica/Cyclone .ptx scan files are a different, ASCII point-cloud format and are not Ptex textures despite the similar extension.
PTEX ファイルを開くプログラム
技術的詳細
詳細仕様| Encoding | Binary |
| Byte order | Little-endian |
| Container | Single-file per-surface texture container storing one texture per mesh face plus mipmaps and adjacency data |
| Compression | DEFLATE (zlib compress/uncompress) applied to texture data blocks and large metadata items |
| Signature | ASCII 'Ptex' (50 74 65 78) at offset 0 |
| Data Types | Per-file pixel data type: 8-bit unsigned int, 16-bit unsigned int, 16-bit half float, or 32-bit float |
| Channels | Arbitrary number of channels per file; optional designated alpha channel |
| Mesh Types | Triangle meshes and quad meshes (meshtype field: 0=triangle, 1=quad); supports Catmull-Clark and Loop subdivision surfaces and all-quad or all-triangle polymeshes |
| Mipmaps | Multiple resolution levels stored per face; each level is a power-of-two reduction used for seamless filtering |
| Adjacency | Per-face adjacency map stored in the file for filtering across face boundaries without visible seams |
| Metadata | Key-value metadata block supporting ASCII strings, 8/16/32-bit integers, floats and doubles; standard keys include mesh geometry references |
| Structure | Header (magic, version, meshtype, datatype, alpha channel, channel count, level count, face count, size fields) followed by a face info table, compressed constant/per-face texture data across levels, an adjacency section, and an optional metadata section |
| Integrity | No built-in per-file checksum; zlib blocks provide internal consistency |
| Platforms | Windows, macOS, Linux |
| Notes | Ptex eliminates UV assignment by giving every face its own texture; a single .ptex/.ptx file can hold hundreds of thousands of individual face textures for one surface. The native extension emitted by most Ptex tools is .ptx; .ptex is an alternate label used in some documentation and file databases. |
| リリース日 | 2008 |
| 最新バージョン | File format version 1 (Ptex library 2.x) |
| オープンスタンダード | はい · ロイヤリティフリー |
| 仕様書 | ptex.us |
PTEX の変換
コミュニティ Q&A
ユーザーからの質問まだ質問はありません。PTEX ファイルについて最初の質問をしてみましょう。