Jump to content

Render Depth


photo

Recommended Posts

Posted

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

Posted

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.

 

post-676-0-44209500-1437650695_thumb.png

Posted

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:

Posted

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.

Posted

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:

Posted

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!

Posted

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:

×
×
  • Create New...