Amerio.Stephane Posted September 20, 2022 Share Posted September 20, 2022 Hi Is it possible to know within a material graph the AA settings? More specifically, I'm trying to adjust the noise/alpha_test of a material because its appearance changes greatly depending on the SRAA being enabled or not (it can be fully invisible with SRAA enabled if I don't adjust the shader settings). (Of course, I can adjust the shader parameters from the app code, but I feel it would be less error prone to do it from within the shader graph itself). Thanks! Link to comment
silent Posted September 20, 2022 Share Posted September 20, 2022 Hi Stephane, We do not plan to expose SRAA settings into the Material Graph, only TAA is currently available in Material Graph. Could you please send us this material (or materials) example that looks different with SRAA enabled? The issue may be related to the built-in default abstract materials not working correctly with noise or alpha test, so it's better to fix them instead. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Amerio.Stephane Posted September 21, 2022 Author Share Posted September 21, 2022 Sure, Here is attached my material graph and the geometry used. I'm trying to enhance and fix the appearance of cable for power pylons. They need to be AlphaTest, as Alpha blending wouldn't work correctly with clouds and other alpha fx (smoke). They need to be visible from very close up to 1km. I'm trying to use alpha test to simulate the dimming in the distance, with a 1px minimum visible width. Some scenario use SRAA, some don't, so I'm trying to have a material that would fit both. Thanks for your help. pylons_cable.upackage Link to comment
silent Posted September 21, 2022 Share Posted September 21, 2022 Thanks for the test material. If there will be no way to fix this in the abstract material we probably would add SRAA node to the Material Graph. So at this moment it's safer to adjust material parameters via application logic. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
silent Posted September 21, 2022 Share Posted September 21, 2022 @Amerio.Stephane You also can try to use this patched version of mesh abstract material to see if SRAA will work better in your case. Just replace data/core/materials/abstract/mesh/mesh.abstmat with attached file. Thanks! mesh.abstmat How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Amerio.Stephane Posted September 21, 2022 Author Share Posted September 21, 2022 With this mesh.abstmat, with SRAA enabled, it looks ok, but when SRAA is disabled, then alpha value is ignored and material is fully opaque. So something is wrong here. Link to comment
silent Posted September 22, 2022 Share Posted September 22, 2022 Yep, maybe in 2.15.1 there is more than a single issue with abstract materials. Can't see any issues with 2.16, so I think it's better to wait until the new version (or continue to use custom logic to control material settings with stock abstract material). Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts