Jump to content

Chris, an easy method to add visual character to Xenonauts


Recommended Posts

I was watching Lord of the Rings extras a few days ago(yeah, still on my sick leave) and they told about this digital color grading they used in many scenes to create a specific mood. So I got this idea that the similar method could be used in Xenonauts to ephasise different moods in different tilesets and night time.

I suppose the implementation should be really easy, just one alphatexture rendered behind the UI texture. Please add one, just for us modders atleast! :)

Here's a visual concept what I was thinking...

Middle east, a bit of sand in the air:

c19VuUI.jpg

Arctic, freezing blue mist:

i0K3N8n.jpg

Night time, blue hue and dark corners:

8pw3P1I.jpg

These are just really quick few minutes examples, and I overdid the effect on purose to make it stand out, but I think this could really add to the mood and graphical fidelity of the game and to further differentiate tilesets from each other.

Edited by Skitso
Link to comment
Share on other sites

It isn't there to actually represent dust storm or haze per se, but to create a subtle mood. As I mentioned in the OP, I overdid the effect to make my idea clear, but the effect needs to be toned suitably low to be almost subconscious. It's there, you feel it, but can't quite see it.

Link to comment
Share on other sites

dem shaders!

Skitso's right, if effects will be subtle enough, little tiny shades, they can work wonders.

But i'm not sure if the engine really supports shaders, and doing this through surfaces can be.. suboptimal.

Edited by a333
Link to comment
Share on other sites

If somebody more knowledgeable can alter (know what I need to alter) ground combat script to draw one extra transparent texture below GUI, I can make the graphics for the mod. The problem is, the texture should just be different with different tile sets... which I think is not possible?

Link to comment
Share on other sites

I was watching Lord of the Rings extras a few days ago(yeah, still on my sick leave) and they told about this digital color grading they used in many scenes to create a specific mood.
Man, you must have really hurt yourself. I hope you're back at 100% soon. Those Lord of the Rings extras are like going to intro to filmmaking. I loved them almost as much as the movies themselves. Obviously, you learned something too. Ain't modern media awesome?
Link to comment
Share on other sites

Hey, thanks StellarRat! :) Yeah, I slipped on our icy doorsteps few weeks before christmas and broke my little fingers metacarpal bone. It needed surgery so I'm out for 6-7 weeks.. I just got my plaster cast away, so I'm getting there... two weeks and 5 physioteraphy sessions left.

Well, atleast I have time to play and mod xenonauts. :D

Link to comment
Share on other sites

Hey, thanks StellarRat! :) Yeah, I slipped on our icy doorsteps few weeks before christmas and broke my little fingers metacarpal bone. It needed surgery so I'm out for 6-7 weeks.. I just got my plaster cast away, so I'm getting there... two weeks and 5 physioteraphy sessions left.

Well, atleast I have time to play and mod xenonauts. :D

Wow, all that for a little finger...amazing. I don't feel too bad for you if you're getting paid to stay and play Xenonauts though...LOL... In the USA we don't have nearly the health benefits you probably have over there. I'd have to work with my cast on and most people don't have enough paid time to take a month off under any circumstances.
Link to comment
Share on other sites

+1 for the idea! Can we see a picture half with and half w/o the extra layer you added to do your concept? just to see how much it changes the visual feel.

If somebody more knowledgeable can alter (know what I need to alter) ground combat script to draw one extra transparent texture below GUI, I can make the graphics for the mod. The problem is, the texture should just be different with different tile sets... which I think is not possible?

Right now there is no code to link the ground combat UI to the tileset being used in the GC, so that wouldn't be feasible. maybe if Chris approves that..

(we'd need to pass an extra parameter to the script telling the tileset name. Then is modder's turn, you'd just add a series of IFs to choose the colour to display.. ;) )

Link to comment
Share on other sites

Yeah, I'll make a comparison picture tomorrow morning. Meanwhile, hopefully Chris stumbles in this thread and falls in love with the idea so we'll get these beautiful color graded GC levels! Btw everyone, it warms my heart to see so many like my idea. Thanks for the support! :)

Edited by Skitso
Link to comment
Share on other sites

+1 for the idea! Can we see a picture half with and half w/o the extra layer you added to do your concept? just to see how much it changes the visual feel.

Okay, here are the new pictures with comparison to vanilla version:

YXDyK3Y.jpg

vH9MVrG.jpg

AWQJmeU.jpg

I also experimented how farm tileset would look if I added a bit of "sunshine" on it.

2ocJVk8.jpg

Link to comment
Share on other sites

If somebody more knowledgeable can alter (know what I need to alter) ground combat script to draw one extra transparent texture below GUI, I can make the graphics for the mod. The problem is, the texture should just be different with different tile sets... which I think is not possible?

So, you want to try in in-game? just open up scripts/combatguiexport.lua (scripts/combatguiexport_large.lua if you're using a resolution with width>1680px) with a text editor (Notepad++ highly reccomended) and add the following text right after name="combatguiexport",

NonUniformScaledImage

{

x = 0,

y = 0,

w = kMax,

h = kMax,

image = "uitextures/white",

tint = Color(255,0,0,25),

},

where of course you can customize the tint given to the overlay (the format is rgba, i find that alpha=25 (=10%) is enough).

Tip: you can set x to be half of your screen width to see the effect just on half of the screen.

Meanwhile I'll write a note to Chris to aks him to take a look at this thread, it would be matter of minutes to me to add the currently used tileset to the script. ;)

Link to comment
Share on other sites

Wow, thanks Gio! I'll try it later when I get back to my computer. (Typing from my phone atm.)

What changes I need to do to that script if I want to load a specific alpha channel bitmap instead of a flat color? (i'd prefer the colorgrading to intensify a little towards the edges of the screen.)

Edited by Skitso
Link to comment
Share on other sites

What changes I need to do to that script if I want to load a specific alpha channel bitmap instead of a flat color? (i'd prefer the colorgrading to intensify a little towards the edges of the screen.)

Just change uitextures/white to the path of another png you'll create yourself, which will have a less transparent white on the edges and still white but with an higher transparency on the center.

That won't need to be big as the screen resolution, but keep in mind it will get scaled so maybe using a medium-size texture would be better (so you won't see the transparency change areas too much). Rushed example: https://dl.dropboxusercontent.com/u/54854483/alphatexture.png

Link to comment
Share on other sites

Giovanni just helpfully committed the overlay code to the SVN, giving me and Aaron a good twenty minutes of bemusement before we worked out what was happening. I have at least seen this thread now though.

I'm not really sure I like the effect too much though, to me it just makes everything look less sharp and less colourful. I don't really have a problem the tileset script being added at some point in the future, but right now Giovanni's got quite a lot else to be doing at the moment (if he thinks otherwise, it's just because I've not finished writing my emails yet! :) )

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...