plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

ZdenniZ avatar image
ZdenniZ asked FlyingRaccoon answered

Weird glass material behavior

TestCube.zipI am working with SU7 Beta. I know overlapping glass materials are not supported, but this issue is completely different. Somehow, only the front face of the glass polygon is transparent, whereas its back side is not transparent and is mirror-like:

1641444476479.png


You can see a simple cube with one face detached and moved away. The glass material is pplied to the detached face and to the opposite side of the cube. The polygon facing the camera on the cube is transparent but the back side of the detached face is not. Here's what's happening on the other side:

1641444616693.png

So now it's vice a versa.

Here are my material settings:

1641444770712.png 1641444821502.png

Another object in my scenery compiled with an earlier SDK version shows transparency both ways no problem. Any advice? Thanks.

UPDATE: It seems to work fine if I duplicate the face with the glass material applied, flip its normal and remove the double-sided checkmark. However this doubles the polygons, not sure this is what was intended. Previously the double-sided property worked just fine.

UPDATE 2: Seems I have figured this out. It is caused by Roughness factor set to 0 as previously advised here at devsupport. Roughness 0.5 gets everything back to normal. Did this change again in SU7?

modeling
testcube.zip (1.5 KiB)
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

1 Answer

·
FlyingRaccoon avatar image
FlyingRaccoon answered

Hello @ZdenniZ

Using multiple overlapping glass layers is no longer an issue. This is part of the changes that came with SU7.

Your problem comes from using the double sided property. This should only be enabled when shading is not very important as the normals are not changed for backface. You want to duplicate faces and invert normals yourself to have a real and correct double sided material.

This was already a problem before but has become more visible with the new glass material.

@Nocturne FYI

Regards,
Sylvain

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.