VTFLib icon indicating copy to clipboard operation
VTFLib copied to clipboard

Extract all faces from .vtf

Open ghost opened this issue 5 years ago • 1 comments

ghost avatar Jan 21 '21 08:01 ghost

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.

NeilJed avatar Jan 21 '21 16:01 NeilJed