Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Toggleable colored outline for creatures for visibility  (Read 8549 times)

Wokko

  • Bay Watcher
    • View Profile
Toggleable colored outline for creatures for visibility
« on: April 13, 2021, 06:50:18 am »

Please make a toggleable outline for creatures in both fortress and adventure mode for steam graphics.
Sometimes it's hard to notice some creatures on the screen, even if they will have graphics instead of ascii now. A toggle for an outline would be good.
Colors for npc/player dwarves could also be either blue/white, or blue/green, or yellow/blue, and red for enemies. Or make it customizable.
Example (modified devlog screenshot):
Spoiler (click to show/hide)
« Last Edit: April 13, 2021, 06:53:16 am by Wokko »
Logged

Bumber

  • Bay Watcher
  • REMOVE KOBOLD
    • View Profile
Re: Toggleable colored outline for creatures for visibility
« Reply #1 on: April 13, 2021, 01:05:38 pm »

It came up in the discussion/suggestions thread last year:
Toady saw the suggestion and thinks a small color-coded something below the creature, with friendly/neutral/hostile would be a good idea. With an on/off button. ;)


I think outlines were assumed to be too much work, but basic shapes that fit multiple creatures are doable.
« Last Edit: April 13, 2021, 01:17:23 pm by Bumber »
Logged
Reading his name would trigger it. Thinking of him would trigger it. No other circumstances would trigger it- it was strictly related to the concept of Bill Clinton entering the conscious mind.

THE xTROLL FUR SOCKx RUSE WAS A........... DISTACTION        the carp HAVE the wagon

A wizard has turned you into a wagon. This was inevitable (Y/y)?

Mr Crabman

  • Bay Watcher
  • A person with the head and pincers of a crab.
    • View Profile
Re: Toggleable colored outline for creatures for visibility
« Reply #2 on: April 14, 2021, 06:20:33 am »

It came up in the discussion/suggestions thread last year:
Toady saw the suggestion and thinks a small color-coded something below the creature, with friendly/neutral/hostile would be a good idea. With an on/off button. ;)


I think outlines were assumed to be too much work, but basic shapes that fit multiple creatures are doable.
Were they? I don't recall even a suggestion of outlines in the thread. It would be done programmatically; the game would find/calculate the texture borders based on which parts of a sprite/texture were empty/had nothing in it, and then render an outline at this border.

My real worry about the idea of outlines would be how noticeable they are when zoomed out a lot.

jecowa

  • Bay Watcher
    • View Profile
Re: Toggleable colored outline for creatures for visibility
« Reply #3 on: April 14, 2021, 10:18:58 am »

Maybe a pulsating glow as an outline, so it sticks out when the game is paused.

If it's done with a software effect instead of with additional graphics files for every creature, it might be possible to make it resize itself so it is visible at any zoom level.
Logged

Bumber

  • Bay Watcher
  • REMOVE KOBOLD
    • View Profile
Re: Toggleable colored outline for creatures for visibility
« Reply #4 on: April 14, 2021, 01:33:24 pm »

Were they? I don't recall even a suggestion of outlines in the thread. It would be done programmatically; the game would find/calculate the texture borders based on which parts of a sprite/texture were empty/had nothing in it, and then render an outline at this border.

It was right after images of undead with purple auras were released. Pillbo brought up colored flags/borders. MoltenIdol brought up colored auras around units.

Toady approved "a small color-coded something below the creature" afterwards. However, it's possible he only looked at the suggestion forum thread, which doesn't mention those.
Logged
Reading his name would trigger it. Thinking of him would trigger it. No other circumstances would trigger it- it was strictly related to the concept of Bill Clinton entering the conscious mind.

THE xTROLL FUR SOCKx RUSE WAS A........... DISTACTION        the carp HAVE the wagon

A wizard has turned you into a wagon. This was inevitable (Y/y)?

Mr Crabman

  • Bay Watcher
  • A person with the head and pincers of a crab.
    • View Profile
Re: Toggleable colored outline for creatures for visibility
« Reply #5 on: April 14, 2021, 01:39:53 pm »

Maybe a pulsating glow as an outline, so it sticks out when the game is paused.

If it's done with a software effect instead of with additional graphics files for every creature, it might be possible to make it resize itself so it is visible at any zoom level.
Hm, maybe that would work (making the outline thicker when zooming out would also be great).
Of course, it's always hard to tell how stuff will work without seeing it in action.

Starver

  • Bay Watcher
    • View Profile
Re: Toggleable colored outline for creatures for visibility
« Reply #6 on: April 14, 2021, 02:13:58 pm »

No. Make the outline exactly as thick when zooming. Always one screen-pixel, regardless of zoom-level.

(Whatever the zoom-adjusted sprite turns out to be, any unmasked (fully transparent) pixel of the original built composite that is orthagonally adjacent to a masked one gets converted to a border-pixel. - This would entirely depend upon there being a precedence of layer-rendering that has a 'gap' between compositing functionality that allows native-resolution functional access rather than still being stuck with the source-level graphical adjustment. Various streamlining decisions might dissallow that, without adding temporary mask-layer export also to be post-zoomed ready for final processing of an overlay, it depends on Tarn's exact approach, which of course I'm not privy to.)
« Last Edit: April 14, 2021, 02:16:06 pm by Starver »
Logged

rda

  • Escaped Lunatic
    • View Profile
Re: Toggleable colored outline for creatures for visibility
« Reply #7 on: June 10, 2021, 04:09:23 pm »

If the ring is toggleable, it would be great if there’s an option to only show it for visitors and hostile, but not your dwarves. Would make the screen look way too busy.

Instead of green and red, blue and red might be better as well, easier for colorblind people to see.
Logged