With WPF 3D, is it possible to have a texture with an alpha channel?
I am wanting to make a 3d scene where everything is flat surfaces (like everything is paper cutouts). I thought the easiest way to achieve this would be to create a plane, divide it into quite a few triangle (like a cloth), then apply a texture with a transparent background. This way I could use the same geometry and just swap out the texture to get completely different shapes.
I tried adding a PNG with a transparent background to a model as a brush, but it shows up with a white background. Does WPF 3D provide this functionality? how can it be done?
texture with alpha does works in wpf ( it works for me ! ).
are you sure your png alpha is ok ?
a png with alpha in a DiffuseMaterial il all you need.
here’s a chunk of xaml with a camera over two textured planar meshes.
replace the path of the png, put it in a xaml file and launch.
you should be able to see material2 behind alpha of material1.