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.
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!
Have you finished a shorter project before? IME one of the best ways to learn these skills is by planning and finishing a shorter project and then working your way up.
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.
I think the feeling of choppiness might be coming from how your character moves up and down. Does the game still have that choppy feeling if you disable the character animation or make it play super fast (just as a test)?
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.
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.
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.
No, this is definitely a bug. Typing more should narrow down the search, not change the order. You should be able to predict what will happen if you press enter. There's no way most people will expect or want this behavior.
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.
Yeah, and it's the same mathematically: multiplying a 3x3 transformation matrix with a vector is the same as doing all three dot products at once.
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.
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!
Have you finished a shorter project before? IME one of the best ways to learn these skills is by planning and finishing a shorter project and then working your way up.
A time offset would probably be better than an index -- offsets don't have to be contiguous, and you'd have more control over the timing.
PICO-8 uses a stripped-down version of Lua, and it's very easy to get started with (if you can afford to pay $15).
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.
I think the feeling of choppiness might be coming from how your character moves up and down. Does the game still have that choppy feeling if you disable the character animation or make it play super fast (just as a test)?
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.
Correct, grouped coverage: 50% of background shown.
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.
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.
A penny for your ÞòðÞ
Needs more JPEG.
I think the only practical thing DeepMind has done so far is that datacenter cooling thing
That list of irregular verbs could of been much more complete.
Before iOS 9.3.1, it would automatically connect to any network called "attwifi". I'm sure that's not what the article is about though.
wow your computer must be pretty messed up to superimpose that text and facebook watermark all on its own
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.
No, this is definitely a bug. Typing more should narrow down the search, not change the order. You should be able to predict what will happen if you press enter. There's no way most people will expect or want this behavior.
It could be your third-party keyboard drawing that snapshot, since it overlaps the keyboard.
Nice work! The purple wall/floor material is especially snazzy. Some comments:
Looks normal to me. You sure you're really human?
Epic Winn!
Love the knife shark!
That's pretty awesome.