03-11-2020, 11:25 AM
If you would follow the advice by "close" and would check the "Transparency problem" sample, you would also saw the solution for the problem - you need to sort the objects so that those farther away from the camera are rendered first (have a smaller index in the Children collection).
As written by the comment in the sample, the Ab3d.PowerToys library provides a TransparencySorter class that can help you with objects sorting. There are also 2 additional samples (the next 2 samples) that demonstrate its usage.
PS:
The next version of Ab3d.DXEngine will provide 2 alternative ways to render transparent objects with transparent textures: alpha clipping and using alpha-to-coverage. Those two methods will not require to sort objects by camera distance but have disadvantages because some artifacts can be shown. The next version of Ab3d.DXEngine should be published at the end of March 2020 or at the beginning of April 2020.
As written by the comment in the sample, the Ab3d.PowerToys library provides a TransparencySorter class that can help you with objects sorting. There are also 2 additional samples (the next 2 samples) that demonstrate its usage.
PS:
The next version of Ab3d.DXEngine will provide 2 alternative ways to render transparent objects with transparent textures: alpha clipping and using alpha-to-coverage. Those two methods will not require to sort objects by camera distance but have disadvantages because some artifacts can be shown. The next version of Ab3d.DXEngine should be published at the end of March 2020 or at the beginning of April 2020.
Andrej Benedik

