Skip to content

u/panic

In this archive from Oct 2009 to May 2018

8
posts
34
comments
1
media
279
score

Almost every icon is impossible to understand right away. Like, what's the difference between "sideways repeat sign" and "two sideways repeat signs on top of each other" in the object script editor? Obviously you can click on them to see what they do, but a lot of people won't be confident enough to just click on every mysterious icon they see. I think putting labels next to the icons would help a lot.

2 points

This is really cool! I feel like the tutorial is a little too on rails, and it's easy to just click through without understanding what it is you're doing. It might be better to focus on more inline documentation (like tooltips and text -- a lot of the icons are hard to understand). I also ran into some problems where things were either broken or just taking a long time to load. Would it be possible to do all the loading up-front?

Anyway, I'm happy to see more tools like this. Once you start figuring it out, it seems really easy to use -- no arcane javascript or command-line incantations. All you really need now is a community!

1 points

It looks like your code is rendering the text in a linear color space (where 0.5 is half as bright as 1.0) but you are outputting it as sRGB (where 0.5 is 21% as bright as 1.0). Notice how the grays are much darker in your version than in Photoshop. You either need to render as sRGB, apply the sRGB curve to the current rendering, or configure whatever you're using to draw the texture to treat its color channels as linear instead of sRGB.

6 points

I don't think this helps, unfortunately: the Z-buffer just doesn't store enough information per pixel to let you solve the problem. Normal alpha blending uses a "coverage" model, where within each pixel, an object with alpha covers a certain percentage of what's below it. At 100% alpha, the objects below are fully covered; at 50%, half of the light gets through.

What isn't modeled, however, is which 50% is covered. That's the problem here. If you have a button background and a label on top, both with 50% alpha, you'll get about 25% of the background showing through when you blend them individually. But since they're part of the same object, their coverage ought to line up, letting a full 50% of the background through. Here's some ASCII art to illustrate what I mean:

Normal alpha coverage model: random placement, 25% of background shown.

         \
         light
           \
            \
|--label--|  v
     |--button-|
|----background----|

Correct, grouped coverage: 50% of background shown.

         \
         light
           \
            \
|--label--|  \
|--button-|   v
|----background----|

A Z-buffer isn't enough to track this per-pixel coverage information. If you're OK with only a few levels of transparency, you could use "alpha to coverage" and directly store the sub-pixel values in an MSAA buffer, using the resolve step to perform the final blending. But this probably isn't appropriate for UI, where you need smooth fades.

2 points

The only option I see is rendering the whole button into a texture and then drawing that texture with the given Alpha. In a complex hierarchy with many controls where many of them could have different alpha set and which can be animated this sounds like an expensive solution. Is there some smarter way to achieve this?

As far as I know, rendering to an intermediate texture is the best way to do this. You can speed it up by skipping the render-to-texture when none of the children of an element with opacity overlap one another. A lot of UI systems just punt on this problem, though, and leave it up to the people designing the UI to make things look good despite incorrect blending.

1 points

A "flag" in programming is something that can be either set or not set. A feature flag will enable a feature if the flag is set and disable it if the flag isn't set. Feature flags let you enable and disable features without changing the code.

8 points

Nice work! The purple wall/floor material is especially snazzy. Some comments:

  • It's somewhat hard to distinguish Samus and the space pirate from the background. If you look at 2D Metroid screenshots, almost every background is dark, which provides contrast with lighter foreground objects.
  • The energy meter is a bit cramped: the energy tanks are just one pixel away from the number.
  • The missile and super missile are small and somewhat difficult to make out at first glance. A border or more abstract icon might help.
1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.