Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract all faces from .vtf #10

Open
ghost opened this issue Jan 21, 2021 · 1 comment
Open

Extract all faces from .vtf #10

ghost opened this issue Jan 21, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Jan 21, 2021

No description provided.

@NeilJed NeilJed added the enhancement New feature or request label Jan 21, 2021
@NeilJed
Copy link
Owner

NeilJed commented Jan 21, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant