March 22nd, 2017 – Notes for Cinth (or modders!) on how to use the new functionality in our custom LOD system that allows for you to do simple culling on child renderers that already dynamically batch from LOD0 onwards.
March 22nd, 2017 – Notes for Cinth (or modders!) on how to use the new functionality in our custom LOD system that allows for you to compensate for bad anchor points in models (meshes). You can always update the mesh itself, or now you can do this too.
March 21st, 2017 – Detailed notes for Cinth (or modders!) on using the custom IBL shaders that we’re now transitioning the ships in the game to using. The visual look evolves!
I have basically no time left today, so I’ll just point you to this blog post from today about IBL in the game, and then these release notes. Just in case this blows up for whatever reason, there’s a new alpha0112 beta branch in Steam that lets you roll back if you need to.
Also: fantastic news, Cinth is out of the hospital! He’s not back at work yet obviously, but this is a great step forward. 🙂
Now — screenshots!
The above wormholes are based on his torus concept, and they look WAY better in motion. Though I like how they look when still, too.
The above two screenshots are of the new science generators that you can find on planets. They were to be called “husks,” which isn’t really what this evokes to my mind, but it’s really cool-looking and so we might keep this styling. We’ll see.
And now I really have to run!
Pics lower down. 🙂
The Problem I Wanted To Solve
One of the frustrations I’ve had with the ship graphics in AI War 2 is that it’s hard to make sure that they’re both vibrant AND nicely reactive to the environmental colors and similar while being so hugely restricted in terms of how many truly-PBR techniques we can use because of limitations caused by having SO many realtime objects to light in that sort of scenario.
I’ve gotten around that with a variety of tricks that have evolved over the last months, and it’s been working well with Blue’s cel-shaded clean ship albedo/diffuse coloring. It wasn’t perfect, but I knew I’d have time to improve it later — the main issue I had was that specular highlights tended to trend to white on all models.
Part of the recent evolution in the look of ships was to give them more of a metallic-on-cel-shaded look, which allows for a lot more flexibility in the sort of visual effects we can then do. My first approach to that was to think of PBR, and so that’s what we recently converted to — the Unity Standard shader, which is heavily PBR.
There were a variety of challenges with that, though — I couldn’t control the amount of specular whiteout as much as I wanted while still having a ton of metallic feel to it. Cinth kind of set me on the path of chasing the metallic look to marry that to the cel-shaded look that Blue sent me chasing, and I really wanted to get those working together.
The New Approach!
Experimenting a bunch last night and then today, I’ve settled on an IBL approach that is using Blinn-Phong again, back to what my custom rim-lighting shader was doing before we went to the standard shader (sorry, no link on that one — it’s somewhere on the forums or kickstarter, though).
Anyhow, the big benefit of this approach is that I’m able to handle reflections via a cubemap that has nothing to do with the larger scene, and then tint the reflections as needed, along with using a fresnel effect on them. Then beyond that I’m faking a metalness map in some cases (such as for the fighter and bomber) by additively using the inverse of that data in the diffuse channel.
It’s All About The Motion
Bear in mind that the result is a lot more dramatic in motion, because as ships move around you get a lot more of them shimmering and glinting in the light as a school of fish might.
Even so — in still screenshots I think that it looks a bit better now. But in motion it’s night and day.
Also! Bear in mind that based on the lighting of the planet in question, you’ll get pretty drastically different results from what I am about to show. In one case I was frustrated because the serial number on the fighter wasn’t showing up properly… only to realize that in fact it was acting appropriately in the lower-direct-lighting environment it was in at the time.
The basic rule of thumb is that the ships wind up varying in appearance more from planet to planet in terms of the characteristics of light on them, which is a big part of the goal.
The above is what I had before, using the Standard shader and a metalness map. I was particularly unhappy with that one.
Now a few shots of what the new one looks like from various angles:
You’ll notice that in the two different angles give a really different feel to the color, even within one lighting profile. That has a lot to do with the fresnel effect and cubemap for the reflections, but also just the specular highlights based on the view angle toward the light, too.
In a couple of angles that makes it looked a little more washed out in the cool orange parts, but very metallic — and then in other angles it looks rich and deep like the original cel-shading work that Blue did. I’m really pleased with how these feel like they’re a living and interesting part of the scene, rather than just a flat piece of junk that always looks the same no matter where you see it or from what angle. Perish the thought. 😉
So the above is again the “before shot,” prior to today’s IBL work. I was actually really happy with this one already. Then here are a few angles of what it looks like now:
In some lighting angles, you can see that this one is really dark on some of the surfaces. But there’s also a very metallic sheen to it. From other angles the main color comes right back out, and from yet others there’s this kind of bluish shimmer that passes over it as the camera or the ship turns, either way.
I might need to make the cockpit a little brighter, I dunno. Minor tweaks.
More To Come!
At any rate, the space dock and Ark and warp gate and planet controllers also really got a huge upgrade out of all this. All the rest of the ships are still using the PBR approach, which looks similar-enough but not quite the same by any stretch.
This wasn’t really on my list of things to work on this week originally, but with Cinth having some major health issues and there also being some major health issues with a couple of my extended family members, it’s been a week where I wanted to focus on some things that were productive, but not quite as mentally taxing. This was a tricky problem to solve, but not as tricky as some.
Anyway — enjoy! Thanks for reading.
This is something I’m really jazzed to show you — it’s basically the replacement for the Electric Shuttle from the first game, except a bit revamped in a good way.
You may recall that Blue has been working on icons lately? She actually finished those up yesterday, and the ball has been in my court since then. She’s moved on to working on other things, including the Eyebots (not yet painted, but modeled) and then what you see above.
There are a variety of higher-priority ships than these that Keith put on his list, but I’ve been sampling from a few areas simply to get us a few more small ships earlier than later in the art process. Those are a nice break for Blue compared to doing all the really giant ships first. Variety being the spice of life, and all that.
No release today, but there should be one tomorrow, I expect. Lots of things have been inwork, it’s just one of those times where it doesn’t fit to do a release on a given day.
Since the last blog post I made, we’ve done two intermediate versions, and this is the third.
In cases when I just don’t have time to update the blog for whatever reason, bear in mind that there are three places that always get updated:
- Steam itself will auto-update you unless you’re on a specific locked-in “beta” branch for whatever reason.
- Our official forums always gets a quick post, because that’s super fast.
- The release notes page always gets a new entry, and the date logged for the build.
At any rate, apologies for not updating the blog on the last two builds. It’s something I try to avoid doing, but I’d rather miss a blog post than a release.
So: what’s new lately?
- Keith updated a ton of stuff with the modding capabilities in 0.110, which is a big deal for modders. It really increases the power/flexibility of the modding system.
- I upgraded the version of unity that the game runs on in that same build.
- As part of 0.111, Keith fixed a bug that was causing crashes on linux and milder problems elsewhere.
- This new 0.112 build includes three new units in the game.
- This build also now includes DirectX11 support, to deal with an OpenGLCore crash bug on at least one windows install.
- There are a variety of under the hood improvements in this new 0.112 build that are getting us a bit of extra performance and quality in a few areas, and which get us closer to getting into some of the GUI work.
- Blue has been pulling her hair out working on the new icon system for the game, and the results are coming along really well at this point. It’s been a big task and the topic of much discussion with players; even after the direction was set late last week, that still left a lot of experimenting to get something that looks cohesive and clear while still being attractive. Getting just the right amount of detail is a big deal. We’ll be ready to show that off later this week, I think.
- There is a backlog of 3D models and textures that are done and ready to get into the game, but unfortunately Cinth had a very serious medical emergency over the weekend and so will be out for a few weeks at bare minimum, and possibly more like months. At the moment he’s still in the hospital. Please share your well wishes for his recovery. At any rate, a bunch of that stuff will drop all at once sometime soon once I have a chance to get to it.
- In general, Keith has been looking at the GUI more now that I’ve gotten the unity project set up for him to be able to do that sort of thing. So we’ll see what happens with that, in terms of what he does with it both with and without Blue at this point. He can speak to that better than I can.
- I’ve been working on a modified version of the sort of sprite batching system that I use in starward rogue for actually displaying the ship icons that Blue is creating. That’s been a tricky thing, because they are pretty different systems, but after a lot of study I just don’t think there’s a more efficient way of handling it. The actual GUI won’t use that system (that would be less efficient, not more), and of course the main game doesn’t either (same deal when it comes to large ships). But for this particular case it should pan out well.
- I was also working on some cool stuff relating to a new system for explosions of ships, although I’ve temporarily set that aside. The general principle of it works and looks great and seems to perform well, so that’s enough for me for the very short term — I have bigger fish to fry before I finish that one up.
So that’s what’s going on with us. Thanks for reading!
Version 0.109 – Special Forces And Modding is short on release notes but long on impact.
There are two really major components added in this one that Keith and I have been wanting to get in there for a while. The first one is the special forces from Keith, which you may remember from The AI From Within: Part 4. So that’s… a pretty awesome big deal. 🙂
The second item is one that has been on my todo list since before alpha even started, which is the unity project for modders. That link has a good video tutorial that covers the setup on all that, and it’s that screenshot that you see above.
This lets modders start experimenting with graphics, and soon sound, for the game. But this also is a project where we’re going to be putting all our GUI bits — meaning that Keith is able to manage those assets more directly when they are in the prototyping phase at least, and meaning that the GUI will be as open as possible for people to make any sort of edits to.
Blue and Cinth are both still plugging away at some cool things at the moment. She’s finished well over half a dozen new ship models that had backed up in my queue for processing into the game, and Cinth is taking that load off of me.
Blue is working on a new version of the icons for squads, based on lots and lots of feedback from folks so far, and then our interpretation of the overall trends (since individual opinions vary quite widely).
We’re not going to show off the new icons at all until they’re fully integrated (sometime early next week, I imagine), because we’re now to the point where it will be most helpful for all of us if you can see the next prototype fully in place in the game. We’ve had a lot of people having to try to imagine how things will look in actual practice when there’s a lot of stuff onscreen at once, and while people have done a fabulous job with that, hopefully we can all agree it’s time to stop imagining and start seeing. Then we’ll continue iterating from there, as needed.
Anyhow, there’s a lot of other random bits of things inwork as well. As always, I suppose. Definitely an enjoyable time at the moment. 🙂
Thanks for reading!
This video is directed at external modders, for whom we’ve now set up a unity project that comes with the game and which makes it easy for you to add your own ships, models, sounds, visual effects, and more.
This does NOT cover code additions or changes, and data changes like balance statistics, etc. Those are handled through the AIWarExternalCode visual studio project, and the GameData/Configuration xml files, respectively.
Actually creating content for any of the above is beyond the scope of this particular video, which is more about how to get set up and find what you need. There is an ongoing series of videos that I’ve created that does cover all sorts of topics related to this, however.
And in the future I’ll create more videos that are more concisely focused on specific modder-oriented topics.
This video requires you be on version 0.109 or later of the game.
Thanks for watching!