0

HelixToolkit.Wpf.SharpDX - Transparency and Sorting

Anonymous 10 years ago updated by egon sepp 8 years ago 1
This discussion was imported from CodePlex

eonxxx wrote at 2014-06-26 22:56:

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

objo wrote at 2014-07-02 13:21:

Sorry, I don't think transparency is supported yet in the SharpDX library.

eonxxx wrote at 2014-07-06 10:59:

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...

objo wrote at 2014-07-11 21:58:

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

eonxxx wrote at 2014-08-09 22:46:

I struggled with a more basic problem:
How to bind in a custom shader to my HELIX app?
+2

Is there a working way for transparency by now?