Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Photoshop layers for texture atlas  (Read 2247 times)

0 Members and 1 Guest are viewing this topic.

NGM88

  • Full Member
  • ***
  • Posts: 162
    • View Profile
Photoshop layers for texture atlas
« on: July 23, 2017, 10:07:53 am »
Hey folks,

Turns out all my UI stuff won't fit in a single texture and I don't want to go over 2048, so I was wondering if it were possible with SFML read form different PSD layers? Even if possible, is it wise to use a single PSD file over 2 PNG files? I appreciate the help from seasoned devs.

korczurekk

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • Email
Re: Photoshop layers for texture atlas
« Reply #1 on: July 23, 2017, 01:19:07 pm »
Reading psd files with SFML seems to be a massive overkill to me in this case, why won't you simply use a few textures? PSD layers would have to be split in memory anyway.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: Photoshop layers for texture atlas
« Reply #2 on: July 23, 2017, 05:42:07 pm »
UI stuff as in UI elements or the complete UI? Maybe using something like nine-patch might help? Possible implementation: https://github.com/Hapaxia/SelbaWard/wiki/Nine-Patch

SFML doesn't support PSD files.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

NGM88

  • Full Member
  • ***
  • Posts: 162
    • View Profile
Re: Photoshop layers for texture atlas
« Reply #3 on: July 23, 2017, 10:29:16 pm »
Thank you for the answers, I guess I'll keep it simple and go with with the extra png file.

 

anything