NeilJed / VTFLib

VTFLib is a LGPL open source programming library that provides a C and C++ API for reading and writing Valve VTF and VMT format image files.
GNU Lesser General Public License v2.1
159 stars 52 forks source link

Extract all faces from .vtf #10

Open ghost opened 3 years ago

NeilJed commented 3 years ago

Can you clarify what you're trying to do? Are you trying to make a sphere map? I know Valve used them in and early iteration of the Source engine and theres code for generating sphere maps inside VTFLib (see. the CVTFFile::GenerateSphereMap() which I wrote).

You can load your VTF Cubemap and use GetData() to get a pointed to each face to pass to the GenerateSphereMap function. That way you wouldn't need to extract the faces.