Sometimes you just gotta ignore the priority list.

One of the things that will become apparent for those in the alpha is that I don’t really work in a linear fashion. ūüėČ

I have a todo list of things that is long, and there are things of relative priority in there even within priority categories.

One of the things that is funny about todo lists like that is that if you never take time off from the highest-priority category, often the lower-priority ones don’t get done at all. ¬†The highest-priority one just fills up again and again, etc.

At any rate, the other comment I have is that typically you have to seize upon inspiration when it strikes. ¬†Sometimes I look at a piece of code or other work and just think “oh man that’s going to be a slog,” but I’m excited about something else on the list.

In those circumstances, unless the house will burn down if I change items, I switch to the item that I’m excited about. ¬†That gets that item off my list, and I’ll wind up doing it faster because I’m more excited about it.

Later I’ll revisit the thing that I had been dreading, and one or more of three¬†things will now be true:

  • I’ll be excited about that now; or
  • I’ll have at least had an epiphany about it so it doesn’t feel so bad; or
  • I’ll feel so guilty for “slacking off” that the energy from that will propel me through.

Sometimes people comment on how darn fast Keith and I are at doing various things. ¬†I don’t know what Keith’s methods are, but I tend to use various¬†tricks to get myself to work harder than my natural inclinations. ¬†“Slack off” by doing a lot of little things, then tackle the big thing out of guilt, etc. ¬†It’s surprisingly effective at chewing through large todo lists.

The last couple of days I’ve felt particularly slack because there’s been so much OS-specific stuff that I haven’t been able to really focus much on my todo list at all. ¬†I’ve gotten a few things done, maybe a dozen at most, but it’s not what I’d prefer. ¬†A lot of the other things I got done never made it onto that todo list at all.

Today is another funky day for me, in that regard. ¬†Cinth made some mockup derelict ships that look amazing, but are very metallic and thus PBR-lighting-model-based. ¬†I told him I’d have to redo that of course, which he knew going in, but dang if we both didn’t really love the look.

Soooo… I thought about the performance gains that we’ve unexpectedly had with the game thus far, and started wondering about going with a PBR pipeline approach with the main game ships themselves. ¬†It means throwing away my rim lighting shaders and a variety of other things, but it could be awesome, right?

Turns out: yes.

So I’ve been working on a hybrid style that gives those homeworld-2-looking flat shaded models a more modern metallic styling to go with them. ¬†The approach actually works really well!

But it does make the ships a little bit darker, which fits with another issue I have in general, which is to do with the space backgrounds for the game.  It was way down on my list, but I had already noted I hate the backgrounds for the skyboxes, and wanted to change them.

So that’s also happening. ¬†We’ll see where performance winds up, but this is all GPU-side stuff. ¬†It’s possible that my Mac will have some sort of issue with this on the GPU side, but somehow I suspect not. ¬†I have some more shader work to do with the lower LODs than 0, but I think that I can get some really interesting things going there.

Also of note, on windows in particular it was using DirectX9 in builds up until now, which means that the BC7 compression format was being uncompressed and then sent to your GPU in an uncompressed format, wasting a lot of bandwidth on the GPU bus as well as VRAM. ¬†I’m switching over windows to primarily use OpenGLCore, since that can use BC7, near as I can tell.

I could just make it use DX11 on windows, but I have endless problems with the unity editor itself bugging out on me in DX11 for some reason.  On like 5 computers with fresh installs on 3 different windows versions (7, 8.1, 10), over multiple years, on many different unity versions (4.x to 5.x).  Curiously, almost nobody else has this problem, so I guess I just have some sort of strange DX11 Editor curse.  Actually running DX11 in the standalone player works fantastically.

Anyhow, that’s yet another aside. ¬†But basically I’m now finding that I want to toy with a few more styles and options now that we have all these different machines with different performance coming back to us. ¬†Almost all the machines are running at 60fps+, and I’m wondering if I can keep that happening while also sliding in a few more advanced bits.

I’m betting so, but we’ll see for sure when the next build comes out tonight. ¬†That’s what I’m working on today, anyhow.

Cheers!

Fuel Generator Model (WIP) Becomes Reactor Model

Remarking on the last WIP for this, forumite¬†MHB noted that it looked more battery/electrical-like than fuel-styled. ¬†I kind of brushed that off with “yeah, you’re right, but wait until you see it with paint, since that tends to change things a lot.”

Well, paint is in progress (still WIP), and it looks even more electrical now. ūüėČ

We often have “happy little accidents” (in the best Bob Ross sense), when it comes to art, design, coding, and so on. ¬†This is actually a much cooler Reactor design than I’d initially envisioned, and when I brought this up with Blue she thought it would be a great thing to switch over, and she could work on more detailing to make it look even more electric.

Happy little accidents — one of my favorite things. ūüôā

Thanks, MHB! ¬†I’m not sure I would have called that appropriately had you not said something.

AI War 2 Alpha v0.103 released!

Here are the release notes, which are mostly bugfixes and more quality of life adjustments.

A Tale About Linux

Okay, so — Linux support, grr. ¬†Mostly that has been going fantastically, and we have a lot of folks playing the game on linux machines with no issues. ¬†That said, we’ve had a few problems with some of them, including the VM install of linux on my mac. ¬†My new linux laptop arrived today, although I haven’t unpacked it quite yet.

Today and yesterday, I’ve spent hours and hours researching various things on linux, and here’s a lot of what I’ve found, just kind of in random bullet points:

1. On my OSX machine, the issue is just because of the VM version of linux, not the hardware itself.¬† This is almost 100% certain, because it’s well within the supported parameters. ¬†Obviously the game runs great on that machine in OSX, so it was always a strange thing that it didn’t work on linux there.

It looks like it’s just a matter of anything higher than OpenGL2 not being supported in a pass-through fashion between ubuntu and OSX using Parallels between them. ¬†I looked into doing a dual-boot situation with linux and OSX on that machine (I already have a dual-boot with Windows 8.1 on there, so I guess triple-boot), but that looked like it would eat up even more time and not yield information that is too useful at this point.

2. Anything older than a Sandy Bridge integrated GPU is no longer supported except for on windows, so that means pre-2011.  But on windows it would still work because of DirectX9.

Basically, OpenGL2.x support was completely removed in Unity 5.5, which is quite frustrating and was not well-advertised as something that would happen: https://www.gamingonlinux.com/articles/unity-55-released-removes-legacy-opengl-support.8627

A linux box with only integrated graphics and a CPU older than the sandy bridge architecture (sixth generation intel) will need to use WINE and DirectX9 in order to run the windows version of the game. ¬†On OSX, it’s possible that the Metal support would work on a machine that old, but honestly I have no idea. ¬†That also might be a case for WINE.

Either way, we’re talking here about machines that are 7+ years old and which only have integrated graphics, so the CPU load is¬†likely to start becoming problematic once you pass that point, anyway.

3. If you ARE running a Sandy Bridge processor — or newer — and are using that for integrated graphics, then you need to have Mesa drivers that are at least from very-very late 2014 or newer.

Thanks to Unity 5.5 only supporting OpenGLCore, that means anything OpenGL 3.2 or newer is needed. ¬†Those integrated cards can do OpenGL 3.3, but they’ll report that they cannot do 3.2 if you don’t have recent-enough drivers. ¬†And there are new Mesa drivers that are awesome!

4. We have someone else with a¬†Radeon card who is having a crash on linux, and I have no idea what is going on with that just yet. ¬†He’s on the latest Catalyst drivers, which could mean there’s a bug in them, or… who knows, really. ¬†I’ve heard from various reports of the driver support for Radeon on linux being pretty dodgy, so it could simply be a bug in the latest version of the drivers. ¬†I honestly am not sure on that just yet.

As you can see in the link I posted there, there were a few other things I changed in the last build prior to this one that should make it more likely to run on that machine.  In that particular instance, some of the OpenGL Core command line parameters might actually work to solve the issue.

-force-opengl has been established to no longer work on Unity, particularly on Linux, since the removal of OpenGL2 support.

However, this one might work quite well: -force-glcoreXY: XY can be 32, 33, 40, 41, 42, 43, 44 or 45; each number representing a specific version of OpenGL. If the platform doesn’t support a specific version of OpenGL, Unity will fallback to a supported version

This one might also be of some use: -force-clamped: Request that Unity doesn’t use OpenGL extensions which guarantees that multiple platforms will execute the same code path. This is an approach to test if an issue is platform specific (a driver bug for example).

All of that said, it may simply be an issue that can’t be resolved outside of driver fixes.

5. We also have someone for whom the game crashes to blue screen on linux every other run, which is something I saw limited mention of elsewhere on the internet yesterday… and now can’t find for the life of me. ¬†If anyone finds threads or topics about that in unity 5.5, can you please send me the link? ¬†Anyhow, I’m not positive if there’s much we can do on that or not, aside from possibly updating to a later version of unity 5.5. ¬†They are currently on 5.5.1p4, whereas we’re using 5.5.0p3. ¬†There just haven’t been enough changes to the newer 5.5 builds to warrant our update quite yet, in my opinion.

6. Overall this works really well for most people! ¬†Which I am very glad for. ¬†But we’ve had some folks fishing for the lower end of the system specs range, which I super appreciate, and these are the things we’ve been running into.

Vulkan!

There’s a new “Bleeding Edge Graphics Test” that I’ve included in the latest build and that I’d really appreciate if you ran and let us know how it went. ¬†Basically that new build uses unity 5.6 for a simple scene completely unrelated to AI War 2, and it also uses the Vulkan Renderer for linux and windows (and Metal on OSX).

That may very well solve the Radeon crash, I don’t know. ¬†However, driver support for Vulkan is much more limited than something like OpenGL or DirectX — so far. ¬†Vulkan is the successor to OpenGL, meant to replace it and modernize it, and it looks set to beat the pants off DirectX as well. ¬†Metal is kinda Apple’s answer to DirectX11, and for some reason they don’t really do Vulkan yet. ¬†Bummer.

Anyway, I’m reluctant to¬†make people use Vulkan, because that immediately excludes a lot of pre-2014 hardware. ¬†As it currently stands, that would be moving the minimum spec up to be more recent by 3-4 years, depending on platform. ¬†Not my preference. ¬†But if Vulkan gives people who¬†can use it a speed boost, as well as maybe getting around some driver issues on linux, then that’s super exciting.

If you run the bleeding edge graphics test programs and it just utterly fails, you might try doing so with the following command line arguments mentioned from above:

-force-glcoreXY: XY can be 32, 33, 40, 41, 42, 43, 44 or 45; each number representing a specific version of OpenGL. If the platform doesn’t support a specific version of OpenGL, Unity will fallback to a supported version.

Those would let you use Unity 5.6, but going back to an earlier version of OpenGL Core. ¬†I’d suggest force-glcore32 or force-glcore33 (3.2 or 3.3). ¬†March 31st is the official date that Unity 5.6 comes out of beta, and¬†“Bleeding Edge Graphics Test” will help tell us whether to upgrade to that ASAP or give it a wait-and-see-for-now attitude.

Anyhow…

Those¬†substantial snafus with the initial rollout of alpha keys to some alpha-tier backers are all fixed up, by the way — thanks again for your patience on that!

Best,

Chris

Rethinking the icons…

I already complained about the icons today, and there are a few things going on with them that are definitely moving in the right direction. ¬†And I’ve figured out the math on how to handle them even better.

However, Blue and Cinth and I were talking today, and there may be a better, more attractive way for us to handle the icons in general.  We still need to do some mockups, but basically it would involve making the icons 2D and trying to keep them feeling like HUD elements that move around, tracking the squads, rather than elements in the 3D world.

For reference, the center of this screen is more or less the general style of GUI we’re going for:

Bear in mind, of course, that’s still incredibly early as a mock for the GUI.

In this new concept for squad icons, people will see those as basically being “part of the GUI,” kind of like how Iron Man would see targeting icons laid over top of real-world objects through his helmet, if that makes sense. ¬†We’ll see if it works out visually or not, but in theory it might.

Load-wise, we can probably do it in a way that is approximately equal in cost to rendering the 3D icons the way we’re doing them right now. ¬†In theory.

Luckily we have a ton of testers now, so we can easily do A:B testing on a wide array of hardware and OSes, right? ¬†Such an awesome resource to have you folks. ūüôā

Anyway, we’re going to do¬†some prototypes of the bomber and fighter, and then see where that gets us. ¬†Worst case, we keep with the existing style we’ve already established, minus being so crazy over-glowy.

I already have plans on changing up how squad selection visually looks, so this might fit well with that. ¬†The actual visuals for the ships themselves are already nicely set and we’re cranking through them, but there are various other areas of the game that aren’t nearly so far along.

  • Obviously the GUI itself is just completely test junk right now in the actual game.
  • I had thought the icons were pretty final, but we think we might be able to do better.
  • The planets are pretty final, but I’m less happy with the background spaceboxes at this point and want to redo those if possible.
  • I’m not really happy with the shot graphics at all, but that’s not really a crisis because it’s just the first one anyhow. ¬†That’s right up my alley in terms of making a lot of that stuff look amazing.
  • The wormholes I created are something I hate, and both Cinth and I have been poking at ways to do a replacement.
  • The ship contrails are reasonably final unless we think of something better as a way to handle that, although I’d had concerns about performance.
  • The particle effects for ships exploding and similar are nice, but I don’t see those as being final anymore. ¬†I had thought they were, except needing to be scaled better for the types of ships in question… but now I want something more dramatic, and have a good idea of how to do it.

Overall I’ve been getting a much better idea even since just yesterday of how much room I have in which to play with visuals before it starts making some hardware unable to be used. ¬†I’m really pleased with early results, since so far I have a bit more room to play than I thought.

Anyhow, apologies for not having the next release ready today. ¬†I will definitely have that out tomorrow. ¬†Thanks also for the torrent of early feedback, it’s been really useful!

Thanks, Amazon…

We’ve been using repositoryhosting.com for years (since 2011 I think), and I can count the number of times they’ve had downtime on one hand…ish.

But today, the day after our alpha starts… naturally we get this:

Keith notes: “I’m particularly fond of We have now repaired the ability to update the service health dashboard.” From the AWS side.

Not sure how that’s going to impact our ability to get a new build out today; we’re still working away at things, but we can’t check in code or share it between us as of about 3 hours ago, and this outage is lasting longer than usual.

Working on icon colors and flicker.

Cinth has been complaining about the neon signs that are the main icon colors for some time now, and many others have also brought it up. ¬†Just haven’t gotten around to it yet, until today, since he kind of prompted me to do some more work with it.

Ultimately he wound up making a goodly selection of new things down in the bottom rows there (the topmost row is mine, the rest are his).

These are easily moddable, by the way, so technically Cinth made the “first mod,” although that’s dubious since it’s just part of the main game now since he’s directly helping create the game… but he wanted to note that, heh.

Anyway, the topmost row is actually after a whole lot of work on my end, working on completely new shaders today, too.  So that row is a lot better than things were before.

That Stupid Flicker!

Problem is, we’re still getting an absolutely awful flicker at times with the icons in general. ¬†The problem overall is z-fighting because of floating point precision issues on your GPU at far distances despite us scaling these things up. ¬†The glow exacerbates that.

What I’m going to wind up doing is recoding these things so that they don’t exist in the same space, but instead so that they exist in a layered camera that uses fake distance, and uses no rotation whatsoever. ¬†By faking the distance, I can minimize chances for floating point errors, and by avoiding the rotation I avoid any form of rotation-based strangeness.

This will mean that I need to translate from the target point of the icon in world space into screen space, then back over to “other camera world space, with fake distance applied,” but that’s a pretty cheap calculation and I don’t have to do it every frame. ¬†In the end, it’s probably cheaper than some of the math that I have to do now in order to make them billboard, and it will solve the flicker.

Frustratingly, I have bigger fish to fry right now. ¬†So I’m not sure if I’ll get to that this week. ¬†But I wanted to let folks know I figured it out, at least.