Simon.Anderson Posted July 23, 2015 Share Posted July 23, 2015 Hi all, I'm trying to set a material to always render on top of a particular material in the scene. I've been playing around with the depth_mask setting in the material file bu to no avail. Does anyone have an idea of how to do this in a material file? Cheers, Simon Link to comment
silent Posted July 23, 2015 Share Posted July 23, 2015 Hi Simon, What kind of effect you are trying to achieve in this case? Maybe some screenshots with desired results?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
Simon.Anderson Posted July 23, 2015 Author Share Posted July 23, 2015 well - I'd post a screenshot but it keeps telling me: "you cannot post a file with that extension on this community". What does this mean? I've tried to link to both a png and a jpeg - same error. Link to comment
silent Posted July 23, 2015 Share Posted July 23, 2015 Hi Simon, In this case maybe a increasing a Polygon offset and Rendering group value in material settings could help. Have you tried to change these settings? 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
Simon.Anderson Posted July 23, 2015 Author Share Posted July 23, 2015 ok thanks - will give it a go. Is there any good documentation available for material properties? My only source of doco is the examples at the moment. Link to comment
silent Posted July 23, 2015 Share Posted July 23, 2015 Hi Simon, For general settings you can check this article: https://developer.unigine.com/en/docs/1.0/tools/editor/materials_settings/ For more detailed per-material settings you can check this: https://developer.unigine.com/en/docs/1.0/content/ Polygon offset is often used to cover artifacts when 1 thin object is on top of another (for example, decal) and depth precision is not enough to handle this objects overlapping. 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
Simon.Anderson Posted July 24, 2015 Author Share Posted July 24, 2015 Great - one more question - as you can see from the picture the object is flat shaded. It's actually a cylinder that I would like to receive shadows on. I attempted to use receive_world_shadow and receive_shadow but it didn't work. Any ideas as to why I can't receive shadows? Cheers! Link to comment
silent Posted July 24, 2015 Share Posted July 24, 2015 Hi Simon, Could you please provide a simple test scene so we can check the whole world and materials settings? Also, please make sure that you set shadow settings in surfaces and in material (according to this article: https://developer.unigine.com/en/docs/1.0/principles/lights_shadows/shadows/shadows). 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