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

Improved Alpha channel and Transparency for exporting JSON material #185

Merged
merged 7 commits into from
Nov 9, 2023

Commits on Nov 7, 2023

  1. Improved Alpha channel and Transparency for exporting JSON material

    _Images plugged into "Principled BSDF" 's Alpha will combine with Images at BaseColor as the alpha channel (Since Ogre use 1 image for both color and alpha).
    
    _More options for texture's BlendBlock, controlled by Blender's 3 Blend modes:
    * Alpha clip = just Blend Type: REPLACE
    * Alpha Blend = a BlendBlock with custom setting, very transparent
    * Alpha Hashed =  a BlendBlock with custom setting but less transparent than Alpha Blend
    
    _There was plan for supporting other texture nodes aside from image, but I couldn't find a way to get the node's color matrices
    knn217 committed Nov 7, 2023
    Configuration menu
    Copy the full SHA
    a034edd View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2023

  1. quick fix

    some changes in prepare_texture affected the JSON config for metalness and roughness's texture paths
    knn217 committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    cdc9d06 View commit details
    Browse the repository at this point in the history
  2. Added support for standalone metalness and roughness textures

    Users now have another option to plug metalness and roughness textures into the corresponding channels, aside from using the same texture and separate RGB
    knn217 committed Nov 8, 2023
    Configuration menu
    Copy the full SHA
    253ebbb View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2023

  1. Changed some Blend settings for CLIP, BLEND and HASHED, also added OP…

    …AQUE
    
    _BLEND and HASHED generate the ssame settings now
    _CLIP only enable "alpha_test"
    _OPAQUE doesn't have alpha_test or transparency
    knn217 committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    fa57a0a View commit details
    Browse the repository at this point in the history
  2. quick fix

    diffuse value is a vector3
    knn217 committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    c173d9a View commit details
    Browse the repository at this point in the history
  3. Added support for combining Alpha texture with Base Color's default v…

    …alue
    
    _If you plugged in an Alpha texture, but Principled BSDF's "Base Color" is not plugged in, a new diffuse image will be exported, with color channels from "Base color" values and Alpha channel from the alpha texture.
    
    _The new image will only have as many details as your Alpha texture, so it should be used on stuff with detailed Alphas but simple color channels - like hair cards
    
    _Quick fix: change the condition of combining diffuse texture and alpha texture (from different file names to different paths)
    knn217 committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    a5bf9bf View commit details
    Browse the repository at this point in the history
  4. Removed Alpha texture utilities

    The remaining utils are:
    _Blendblocks types support
    _Standalone metallic and roughness texture support
    knn217 committed Nov 9, 2023
    Configuration menu
    Copy the full SHA
    2ab60ab View commit details
    Browse the repository at this point in the history