-
Notifications
You must be signed in to change notification settings - Fork 865
Handling 3dsMax's Simplified Physical Material import. #569
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
Handling 3dsMax's Simplified Physical Material import. #569
Conversation
etienne-unity
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All values and textures are applied properly within the restrictions of the conversion to Autodesk Interactive Unity shader.
- Tested in HDRP and URP with all fields used with both values and textures.
|
This is a bit offtopic, but FYI: It's a bit unfortunate that the shader uses "_MainTex" and "_Color" instead of "_BaseMap" and "_BaseColor" like the most of the shaders in URP. It would be nice to have consistent naming. I added shader attributes [MainTexture] and [MainColor] to get rid of hardcoded names and mark any property as the main tex/color. This is used in the scripting API. |
eh-unity
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine.
608a066 to
2f11307
Compare
* Handling 3dsMax's Simplified Physical Material import. (#569) * [Skip CI] Virtual Texturing cache settings (#536) * Hdrp/docs/volumetric lighting format fix (#628) * Updated volumetric lighting and subsurface scattering docs * Update Override-Diffusion-Profile.md * Adds mention of fidelityfx-cas as requested by AMD (#629) * * Updated XR mirrorview logic to use `TryGetAdditionalCameraDataOrDefault`. (#641) * Update Light-Component.md (#682) * Update HDRP-Camera.md (#706) * Revert "[Skip CI] Virtual Texturing cache settings (#536)" This reverts commit 9794586. Co-authored-by: Thomasch-unity3d <30902625+Thomasch-unity3d@users.noreply.github.com> Co-authored-by: NicoLeyman <49522355+NicoLeyman@users.noreply.github.com> Co-authored-by: JordanL8 <lewis.jordan@hotmail.co.uk> Co-authored-by: thomas-zeng <49886741+thomas-zeng@users.noreply.github.com>
Guide : https://github.com/Unity-Technologies/Graphics/blob/master/.github/pr-read.png.md
Display Addon : https://userstyles.org/styles/182991/unity-graphics-pr-readme
Purpose of this PR
This PR adds support for 3DsMax's 2021 Simplified Physical Material ( also referred to as PBR (metal/rough) ) from FBX files in the Model Importer.
In order to avoid adding new shaders, this material maps to the existing Autodesk Interactive shader.
AssetPostprocessor versions were not updated to avoid unnecessary re-imports as it's likely that a vast majority of FBX files already imported are not impacted by the change.
Testing status
Manual Tests
Manually tested with assets with several materials with varying settings/maps.
Tested upgrade of SRP version from released package to branch.
Automated Tests
No new test added.
Links
Yamato: (Select your branch) https://yamato.prd.cds.internal.unity3d.com/jobs/902-Graphics
Comments to reviewers