antony.wells Posted April 24, 2020 Share Posted April 24, 2020 Hi, I'm trying to create a custom post-processing material, but although it works, the parameters tab in the ide remains blank. I've tried reloading but to no avail. here is the material. <?xml version="1.0" encoding="utf-8"?> <base_material version="2.0" name="titleblur_post" editable="0"> <!-- Post-effect shaders --> <shader pass="post" defines="BASE_POST" vertex="shaders/pp/vertex/blurTitle.vert" fragment="shaders/pp/frag/blurTitle.frag"/> <!-- Textures --> <texture name="color" pass="post" unit="0" type="procedural"/> <!-- Parameters --> <parameter name="grayscale_power" type="slider" shared="1" min="0.0" max="1.0" flags="max_expand">0.5</parameter> </base_material> grayscale_power being the one that won't show. Link to comment
antony.wells Posted April 24, 2020 Author Share Posted April 24, 2020 And the material/shaders are working aside from that. I changed the output to the simple fragment shader and it make the picture more dim as it should. Just cannot seem to get parameters to display. Link to comment
rohit.gonsalves Posted April 25, 2020 Share Posted April 25, 2020 Dear Antony, 1. Which Version are you using? 2. Are you just taking it from Documentation? For Yes; Documentation needs a little update. I am using 2.10 and when I change the parameter to <!-- Parameters --> <slider name="grayscale_power" min="0.0" max="1.0" max_expand="1" shared="1">0.5</slider> It shows. I suggest to look for other base materials straight away for comparison. Because code is updated but sometimes Documentation lags in terms of time. I hope it will solve your issue. Regards, Rohit Link to comment
rohit.gonsalves Posted April 25, 2020 Share Posted April 25, 2020 Custom Material documentation needs little update https://developer.unigine.com/en/docs/2.11/content/materials/custom?rlang=cpp But Base Material File Format explains everything nicely. https://developer.unigine.com/en/docs/2.11/code/formats/materials_formats/base_material_format?rlang=cpp Hope this helps. Rohit Link to comment
Recommended Posts