How can I make a specific 3d model transparent? Is it as simple as changing the opacity of the model's material?
I tried the following:
SolidColorBrush br = (SolidColorBrush)matDif.Brush; //matDif = DiffuseMaterial
br.Opacity = 0.3;
When it tries setting the opacity it says that it is in a read-only state and cannot be changed?
Try
Color c = new Color();
c.A = 128;
c.R = Colors.PeachPuff.R;
c.G = Colors.PeachPuff.G;
c.B = Colors.PeachPuff.B;
Material Material = new DiffuseMaterial(new SolidColorBrush(c));
works for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With