HelixToolkit.Wpf.SharpDX - Transparency and Sorting

Jun 26, 2014 at 8:56 PM
Edited Jun 26, 2014 at 8:57 PM
Hithere,

anyone knows something about transparency and sorting with the sharpdx fork?
In the Helix3D lib there's an container object called HelixToolkit.Wpf.SharpDX. It is sorting faces/models related to their camera position. It's quite a bit slow on huge amount of faces. Thats why I'm switched to try the sharpdx fork.

With no sorting, models in the back of the transparent model are often invisible, what destroys the effect of transparency.

In the sharpdx fork, there's no equivalent on the first sight. If it is coded managed, I'd like to say it's same kind of slow. (what is ok for lower count of faces)

Is there a "natural" way of sharpdx, even the use of shaders, for sorting / natural looking transparency / see-through?
Anyone knows?
Thanks in advance!
eon
Coordinator
Jul 2, 2014 at 11:21 AM
Sorry, I don't think transparency is supported yet in the SharpDX library.
Jul 6, 2014 at 8:59 AM
Just transparency is supported via:
          // model materials
            this.RedMaterial = PhongMaterials.Red;
            var diffColor = this.RedMaterial.DiffuseColor;
            diffColor.Alpha = 0.5f;
...a material thing. But sorting is the problem.
I'll gonna try a shader approach.
Thank you...
Coordinator
Jul 11, 2014 at 7:58 PM
Let us know if you solve this with shaders, getting transparency working properly with SharpDX would be a really nice feature!

http://en.wikipedia.org/wiki/Order-independent_transparency
Aug 9, 2014 at 8:46 PM
I struggled with a more basic problem:
How to bind in a custom shader to my HELIX app?