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

Extraction of individual Alpha blends from Lightmapped_4WayBlend textures #7

Open
Herobrine24 opened this issue Oct 30, 2020 · 3 comments

Comments

@Herobrine24
Copy link

Hi,
I was wondering if PyVMF is capable of extracting the individual Alpha Values from 4 blended textures using Lightmapped_4WayBlend and insert the Alpha Values for specifc textures of the blend into different displacements using WorldVertexTransition.

@surf-gorange
Copy link
Owner

I'm very confused about what you're trying to achieve here, what alpha values would you extract from the textures? Where in the displacement do you want to "insert" those alpha values?

PyVMF doesn't do .vmt and .vtf stuff, though it does allow you to change the displacement values.

@Herobrine24
Copy link
Author

Herobrine24 commented Oct 30, 2020

Im involved in porting Black Mesa maps to SFM and since SFM doesnt support the blending of 4 textures on displacements, these displacements have to be retextured. Right now were just using the dominant texture seen on the displacement however Im curious if PyVMF could extract the blend values of individual textures from the vmfs so that they can be applied to displacements with a texture with a supported material type.

TL;DR: can PyVMF extract the blend data of 4 textures individually, inside the vmfs and apply it to a different vmf?

@surf-gorange
Copy link
Owner

It's technically possible, but I haven't added support for 4 way textures yet so you would have to write it yourself.

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

No branches or pull requests

2 participants