Hi there,
i start a project months ago, and it finally go far enough to build a GUI.
But after a moment and after a lot of optimisation, a visual artefact appear.
http://www.pasteall.org/pic/show.php?id=31433 (screen-shoot)
I will rapidly explain the rendering process:
voxel of the world are generated by a coherent noise generator and saved with semantic information in a octree.
After that, the 2D renderer run through the octree, adding sprite to many sf::RenderTexture to buffer a "zone" and after it, sf::RenderTexture are put on the main vue (as sprites) to show the world.
the sf::RenderTexture is cleared with sf::Color::Transparent, but, when put on each other sf::RenderTexture seam to keep (black) color from the background and when transparent sprite are on a border we can see a black/gray gradien.
( sf::Color::Transparent is a black transparent but if i use (255,255,255,0) as background color the border look white instead of black)
Maybe I made a mistake using RenderTexture but it look like a bug from the lib.
What's your point of vue?