helix-toolkit / helix-toolkit

Helix Toolkit is a collection of 3D components for .NET.
http://helix-toolkit.org/
MIT License
1.84k stars 661 forks source link

Reflections in Fill = Transparent or Visible = False #1835

Open dwpessoa opened 1 year ago

dwpessoa commented 1 year ago

On an object with Fill="Transparent" or Visible="False" the reflections are still showing, is this intentional (like in a glass)? Is there any way to avoid this?

I'm using HelixToolkit.WPF v2.20.0

<hx:HelixViewport3D>
    <hx:SunLight/>
    <hx:BoxVisual3D Width="100" Length="100" Height="100" Center="0,0,0" Fill="Red"/>
    <hx:BoxVisual3D Width="100" Length="100" Height="100" Center="50,40,10" Fill="Transparent" />
</hx:HelixViewport3D>

Screenshot_1

holance commented 1 year ago

We don't have control on how things get render in HelixToolkit.WPF, since it is handled by WPF rendering engine. You probably want to move to use HelixToolkit sharpdx versions if you want more advanced features.