Tuesday, July 8, 2014

Mouse Lock and FXAA

I solved a riddle today.
This one you need to see at 100% to appreciate. NVIDIA has this tech they call FXAA, which is fairly cool. It does Anti-aliasing on the cheap, and it is apparently turned on by default on my laptop, which means that it has been affecting Legacy this whole time.

The thing about it is, when you apply anti-aliasing to text and ui elements, you get blurry text and ui elements. I finally figured this out today because I sat down and made a mouse cursor, in order to implement mouse lock so I can have edge-panning, which I think will be much more intuitive for most people.

So I made this cursor,
Which is ok maybe a little silly but that's not the point. When I first loaded it in, I noticed it looked blurred, it was not pixel perfect. Turns out it was FXAA. When I turn it off, all of the UI elements suddenly look much better, and of-course all of the in-world elements look a lot worse. But that is something I'm going to have to deal with anyway because app-level FXAA is not available on every card, so I won't be able to rely on it.

I should be able to use it on just the in-world stuff by linking in the shader NVIDIA provides, which ought to be a nice performance boost over straight MSAA, which was what I originally thought I was going to have to do. And mostly I'm happy to finally have crisp clear text.

Ahem and edge panning is in. It feels.. I don't know. I need to play around with the controls more I think. It's usable though and good enough to move on. When I know what to tweak I'll probably revisit it. I'm playing with stats a bit too and iterating on the "Hunt" scenario.

The goal is for 3 farmers to barely but reliably be able to defeat a Boar monster. Right now it's just a little too tough, and I think I need to add in a defensive buff, ala "hunker down" or "dodge," that the farmers can use in order to more safely surround the boar. I want the boar to feel dangerous, and I want the farmers to have enough tactical tools that the puzzle has a solution every time.


No comments:

Post a Comment