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

Add plane and cube shapes to material viewer #789

Open
zndxcvbn opened this issue May 19, 2024 · 2 comments
Open

Add plane and cube shapes to material viewer #789

zndxcvbn opened this issue May 19, 2024 · 2 comments

Comments

@zndxcvbn
Copy link

Is your feature request related to a problem? Please describe.

This innovation will help you better see .vmat textures and other texture representations

Describe the solution you'd like

Add plane and cube shapes, and also add a button to the interface where you can select a shape to view the .vmat texture

Describe alternatives you've considered

No response

@xPaw xPaw changed the title Add plane and cube shapes to view .vmat textures in 3D-viewer Add plane and cube shapes to material viewer May 19, 2024
@xPaw xPaw added the renderer label May 19, 2024
@xPaw
Copy link
Member

xPaw commented May 21, 2024

I wonder how we could detect which shape would be best to show by default for a given material.

Also doesn't a cube practically cover the same use case as a cube? Perhaps we could just show both a cube and a sphere?

@xPaw
Copy link
Member

xPaw commented May 28, 2024

To add to this, some models have a "PreviewModel"

For example gloves/paints/bloodhound_snakeskin_brass.vmat_c has this in DATA:

    m_stringAttributes = 
    [
        {
            m_name = "PreviewModel"
            m_value = "characters/models/shared/arms/glove_brokenfang/v_glove_brokenfang.vmdl"
        },
    ]

xPaw added a commit that referenced this issue May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants