vsg-dev / VulkanSceneGraph

Vulkan & C++17 based Scene Graph Project
http://www.vulkanscenegraph.org
MIT License
1.32k stars 212 forks source link

Font rendering displaying artefacts #978

Closed lufriem closed 1 year ago

lufriem commented 1 year ago

Describe the bug I see artefacts around glyphs when rendering text. The whole thing is probably a driver issue though, not sure there could/should be something done in VSG?

To Reproduce I just run the vsgText and vsgTextgroup examples. The artefacts are immediately visible, when zooming in they disappear.

Expected behavior No artefacts :)

Screenshots vsgTextGroup

vsgFonts

Desktop (please complete the following information):

rolandhill commented 1 year ago

Hi Lee,

FYI, there was a long discussion about this here https://github.com/vsg-dev/VulkanSceneGraph/issues/680.

Text rendering is very sensitive to rendering order - you need to render them last, and if they overlap then they need to be depth sorted or use some type of order independent transparency.

Regards, Roland

On Wed, 20 Sept 2023 at 22:37, LeeRiva @.***> wrote:

Describe the bug I see artefacts around glyphs when rendering text. The whole thing is probably a driver issue though, not sure there could/should be something done in VSG?

To Reproduce I just run the vsgText and vsgTextgroup examples. The artefacts are immediately visible, when zooming in they disappear.

Expected behavior No artefacts :)

Screenshots [image: vsgTextGroup] https://user-images.githubusercontent.com/76054616/269281179-52aa3eb6-7b4d-40df-82d5-a0f7e234984b.png

[image: vsgFonts] https://user-images.githubusercontent.com/76054616/269280819-10782e68-4f6f-4b24-b12e-62397893bb75.png

Desktop (please complete the following information):

  • OS: Windows 10
  • NVidia Geforce RTX 2070 with 536.99 and 537.34 (this one downloaded/installed today) drivers. I am using the default driver settings, not sure if there's something I could do to improve the situation.

— Reply to this email directly, view it on GitHub https://github.com/vsg-dev/VulkanSceneGraph/issues/978, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPOEQ6MUWJBWLDFGLUQSW3X3LPQRANCNFSM6AAAAAA473G77A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

lufriem commented 1 year ago

Hi Roland,

thank you very much for your reply, my bad for not searching for this issue before. I shall try the suggestion from the issue you mentioned.