Skip to content

What's the correct way to upload the msdf generated atlas to GPU using Vulkan? #44

Answered by Chlumsky
GasimGasimzada asked this question in Q&A
Discussion options

You must be logged in to vote
  • Your image is flipped because msdf-atlas-gen represents bitmaps as starting from the bottom row, which is the case for OpenGL, but not Vulkan.
  • The characters are ordered differently because not all of the parameters are exactly the same, so the algorithm simply packs it differently.
  • Seeing the same result for MTSDF as with MSDF happens most likely because you do not actually interpret the alpha channel when viewing your image data. Ignoring the alpha channel, the RGB channels will be the same. You can check if this is the case by calling msdfgen::savePng after generating your image.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@GasimGasimzada
Comment options

@Chlumsky
Comment options

Answer selected by GasimGasimzada
Comment options

You must be logged in to vote
1 reply
@GasimGasimzada
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants