Starfinder Playlist
  1. #1

    Reference manual image question

    are there any other file formats (like .png) that will work in a ref man layout
    wiki only shows one <bitmap></bitmap>

    Thanks
    madman
    "Over thinking, over analyzing separates the body from the mind."...MJK... Tool frontman




  2. #2

    Join Date
    May 2016
    Location
    Jacksonville, FL
    Posts
    2,211
    Blog Entries
    7
    There are two methods, currently:

    There's the "image" blocktype which is what the majority of images in a reference manual should be. It uses the <bitmap> tags to denote the image filename, and yes it will support JPG, PNG and possibly BMP though I haven't tried that one since bitmap files are uncompressed, which is a Bad Thing for Fantasy Grounds. The tradeoff is that the current image rendering system does not support alpha channels in PNG images, so you will see the background just like with a JPG. Not confirmed at this time, but I'm hoping the renderer in Unity will correct this technical limitation.

    Secondly, there's the "token" blocktype. That's what we use to show a PNG with alpha channel right now, but SmiteWorks wants us to keep those to an absolute minimum because just like your token images are always loaded into memory whether you're using them or not, any images called with the "token" blocktype is also loaded into memory (and shows in the token bag window) while the reference manual is open. So, right now it's just a "cheat" for us to have a couple fancy-looking pages until (again, hopefully) Unity fixes this and allows PNG with alpha channel in the normal "image" blocktype.

    Technically, there's a third option: the "icon" blocktype, which you can use to display any of the icons defined in the ruleset you're using, including the CoreRPG icons if you're using a layered ruleset. Those are PNG icons with alpha channel, and it uses the same renderer as the "token" blocktype above. But you have to dig into the ruleset files to get the icon names for that one.
    Last edited by Talyn; June 28th, 2017 at 02:01.

  3. #3
    that is what i needed to know, Thanks.
    i wanted transparency guess we wait!

    madman
    "Over thinking, over analyzing separates the body from the mind."...MJK... Tool frontman




  4. #4
    pindercarl's Avatar
    Join Date
    Jan 2015
    Posts
    974
    Blog Entries
    2
    Quote Originally Posted by Talyn View Post
    Not confirmed at this time, but I'm hoping the renderer in Unity will correct this technical limitation.
    Confirmed. Images in FGU will support alpha channels.

  5. #5
    Nice!
    "Over thinking, over analyzing separates the body from the mind."...MJK... Tool frontman




Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in