PDA

View Full Version : Guide To Realistic Lighting & Post Processing



hewi12
August 12th, 2016, 08:29 PM
Hey All

So as of late, a few people have asked me how to create realistic lighting and how to use TANE's inbuilt post processing to create shots like this:

http://hostthenpost.org/uploads/f2c0e64f6c60b11f050e8e2fd518ffa1.jpg

Instead of replying to each one I'll put this thread here for everyone who wants to can use this as a resource.
Credit goes to TRam__ for the changes to the games shaders and tips on lighting, I highly recommend the thread he created on the topic: http://forums.auran.com/trainz/showthread.php?120245-Shaders-tricks-and-tips

The thing that needs to be done is the activation of the dev tools via the TANE launcher ( Trainz Settings -> Dev -> Enable Advanced Debug Tools) this give you access to the games post processing settings that can be modified in-game.
Once the dev tools have been enabled the game & launcher will need to be restarted, after this is done you can load up the route of your choice.

Now once you are editing the route of your choice bring up the post processing setting,these can be found under the developer tab at the top of the TANE launcher, when the settings are open you need to change the mode to manual. This isn't an exact science so you can tinker around with the settings until you're happy with it, my settings are shown below:

http://hostthenpost.org/uploads/88295a623e68014b74fdd5271d5d6a48.jpghttp://hostthenpost.org/uploads/9a80e478cfe39733c3918bad65eef9a4.jpg
Once you are happy with the settings you can move onto the lighting, again this isn't exactly what you have to do but more of a base to build on. So the most important aspects of realistic lighting are; Dark shadows, bright sunlight and a realistic sunlight colour. The settings are in the order of (left to right), Morning - Midday - Afternoon:

http://hostthenpost.org/uploads/025ad3a285d146e383d03ce5838e8e18.jpg http://hostthenpost.org/uploads/ed76a02cd1081fa3dc7fc1b7d4be7f0b.jpg http://hostthenpost.org/uploads/65e278105ea907c3c13ddd20576da880.jpg

As said above, these settings are basses for anyone to build on so modify until you're happy with them.

And that's it!, I think I've rambled on enough for now so if you have any questions, feel free to ask them and I hope this all helps. :D

Regards

matruck
August 12th, 2016, 09:10 PM
Great stuff Hewi thanks mate.
Cheers Mick.:)

maruffijd
August 12th, 2016, 09:11 PM
This is sound advice. This could possibly help alot of Trainzers who are bothered by the over saturation of color I have seen "discussed" in various threads.

I will give this a whirl and see if this softens the color blooms I occasionally see when i'm slapping together my "route of the day" whims.

grazlash
August 12th, 2016, 10:17 PM
Thanks for sharing your settings Hewi. Anything that makes my screenshots look better is very welcome. I'm a bit hesitant to play around with shaders due to the problem of breaking my install, but regularly play with the post processing settings.
Without touching the shaders, I tend to leave HDR tonemapping turned off and for convolution I tried settings of: Sharpen - Add - Threshold 0.000000 and Intensity 0.300000 and got acceptable results. Still adjusting these settings for best effect. I really like your sun colour settings, they make a real difference to the overall appearance.
cheers
Graeme

hewi12
August 12th, 2016, 10:24 PM
Yeah it doesn't really matter if the shaders are modified or not, any chance you could post a screenshot so I could see the results without modification?

Regards

Roy3b3
August 13th, 2016, 12:01 AM
Thanks hewi12, I've been a little hesitant in making any changes to the general display in T:ANE particularly when constructing layouts. However your tips are most beneficial and I can see how I can make good use of them in future.

I've been building a scene around Circular Quay in Sydney Harbour and just by following your guidance, I've made these screenshots.

https://s10.postimg.org/img7t4mwp/2016_08_13_143932.jpg
https://s10.postimg.org/b7qw0r115/2016_08_13_144141.jpg
https://s10.postimg.org/yahezx2ih/2016_08_13_144221.jpg
A little more refinement may give me better results.

I did notice that by increasing 'fog' levels actually detracted from any 'backdrops' that were installed. Fog and backgrounds don't work. I try and learn something new each day, so thanks again Hewi.
Cheers,
Roy3b3

Roy3b3
August 13th, 2016, 12:49 AM
@hewi12: These shots were taken in Surveyor, but I did notice that when I used Driver mode and maintained the same 'manual' settings, I was unable to change the 'time' from 10.00 to something later, it reverted to 00.00 and my display went to midnight. I wasn't able to change it back and had to exit Driver. Any thoughts?

https://s10.postimg.org/6eq2941d5/2016_08_13_151039.jpg

https://s10.postimg.org/r04u10iy1/2016_08_13_153557.jpg
Cheers,
Roy3b3

davesnow
August 13th, 2016, 02:01 AM
Thanks. This has enhanced my T:ANE experience.

hewi12
August 13th, 2016, 02:14 AM
Rob, would you be editing the time via quick-drive? Because I don't think you can edit a saved session while you're in driver mode.

Roy3b3
August 13th, 2016, 04:34 AM
Rob, would you be editing the time via quick-drive? Because I don't think you can edit a saved session while you're in driver mode.

Yes, that's it. I should have thought a bit more about that.
Cheers,
Roy3b3

ATSF854
August 13th, 2016, 06:25 PM
thanks for posting this. Looks great even without modded shaders. sadly some assets like grazzy grass suffer pretty badly with these settings, and I'm not sure how to prevent that.

hewi12
August 13th, 2016, 07:01 PM
Yeah, I've noticed that it seems that way for most grass that is 2D, not really sure what causes it though.

PEV
August 13th, 2016, 07:35 PM
Roy3b3,

I love your Sydney views.. Very good stuff.

Sydney is a beautiful place, but difficult to model because the major landmarks are so large. You have captured the look of it very well... great work!!

DWBennett55
August 14th, 2016, 07:56 AM
Thanks, hewi12. I've gone in and played with these settings and really help the look of my route.

Roy3b3
August 14th, 2016, 09:20 AM
Roy3b3,

I love your Sydney views.. Very good stuff.

Sydney is a beautiful place, but difficult to model because the major landmarks are so large. You have captured the look of it very well... great work!!

Thanks Peter for the kind thoughts. I spent most of my working years in Sydney, catching ferries, commuting by train, driving taxis, getting stuck in traffic jams, so it's quite familiar to me.

I also like retirement in sunny Queensland overlooking the ocean. It gives me time to 'play trains'.

Cheers mate.
Roy

Matt3985
August 18th, 2016, 07:37 PM
Thanks for posting this, this will surely help many future Trainzers get similar results. :)

scratchy
August 23rd, 2016, 08:02 AM
Thanks heaps for posting how to get to that! Dabbling in photography this makes me a happy man :) Lowering the "Base" value in SSAO produces some good results IMO.

Some screenshots, of course.

TS12
http://hostthenpost.org/uploads/d72008a5d7828589ff2cd88158e4557e.jpg (http://hostthenpost.org)

Not messing:
http://hostthenpost.org/uploads/eef71739ff38859648545e8047e858e4.jpg (http://hostthenpost.org)

Messing:
http://hostthenpost.org/uploads/dc0047e96a6517e5f7114d39bf079368.jpg (http://hostthenpost.org)

http://hostthenpost.org/uploads/75472f79f15fbd47246cdd2abffbc487.jpg (http://hostthenpost.org)

http://hostthenpost.org/uploads/7883437f5b9a008a310d74c4fd2a3ce2.jpg (http://hostthenpost.org)

MountE
August 23rd, 2016, 09:16 AM
Since this is about environment. I'll ask a question. How do you darken the screen for night? The other simulator has a very dark night while in TANE it always seems like a full moon.

scratchy
August 23rd, 2016, 09:48 AM
Click the little green light at midnight (you can add more green light thingos at different times using the + button)

Click the top right colour (ambient lighting)
adjust the swatches to how you like them
Click in the main sky box (this is split into thirds)
do the same thing
Hopefully that came through ok lol

http://hostthenpost.org/uploads/591df49fe6d172d9b2c7bdd0448afd2d.jpg (http://hostthenpost.org)

MountE
August 23rd, 2016, 09:54 AM
Thanks a lot for the quick reply. I will download your module from JR.

Rob

scratchy
August 24th, 2016, 06:27 AM
Hmm I seem to have issues applying the settings, is there a way to apply these across all layouts? It also forgets my settings when I relaunch. Can anyone assist?

JCitron
August 24th, 2016, 07:48 AM
Hmm I seem to have issues applying the settings, is there a way to apply these across all layouts? It also forgets my settings when I relaunch. Can anyone assist?

Are you doing this from the Launcher under Developer menu item?

You may have to go to settings and the Developer tab and check the box to enable Debug items.

You then apply the settings here --- per use and then ensure you've adjusted the level in-game.

You are correct that these settings aren't saved. This is something that will be implemented soon(tm).

scratchy
August 24th, 2016, 08:31 AM
You are correct that these settings aren't saved. This is something that will be implemented soon(tm).
I think this what I was after, dammit, ok so I have to redo it everytime. Thanks for confirming

chris2001trainz2010
August 24th, 2016, 10:10 AM
I think this what I was after, dammit, ok so I have to redo it everytime. Thanks for confirming

Yup. It's a huge PITA.

scratchy
January 27th, 2017, 10:21 AM
http://hostthenpost.org/uploads/37963cba17c05c9c857ee94fa1964ce2.jpg (http://hostthenpost.org)

Bringing this thread back to life instead of making a new one. Can anyone tell me what the highlighted three options do and their impact on performance? Also while im here when I run fraps it tells me TANE runs at 30fps, is there a way to bump this up?

JCitron
January 27th, 2017, 11:36 AM
http://hostthenpost.org/uploads/37963cba17c05c9c857ee94fa1964ce2.jpg (http://hostthenpost.org)

Bringing this thread back to life instead of making a new one. Can anyone tell me what the highlighted three options do and their impact on performance? Also while im here when I run fraps it tells me TANE runs at 30fps, is there a way to bump this up?

Hi Scratchy.

The top two help with the performance.

Use multiple render threads sends more data to your video card and makes use of the multi-threading capabilities - the multiple cores in your video card.

Texture Streaming is an option that sends data to your video card in chunks, and may or may not be necessary for you. This helps with slower cards from what I remember.

Use PhysX simulation is for the particle collisions to work. This is so that smoke doesn't go through bridges and rain and snow doesn't go through tunnel roofs. Yes! Finally after 15 years we finally have dry tunnels. :)

Why you have 30 fps... V-sync is normally at the full rate of your monitor refresh, which is 60 fps. The full rate, or none for that matter, can cause a performance hit for many systems, so there is an option in T:ANE and other programs to run at half that or 30 fps, which is the default in T:ANE. So if you want your 60 fps, use the full rate instead.

How to get there:

When you start T:ANE, go to the Trainz settings in the launcher. On the first panel, you will see the various screen resolutions. To change these, you may or may not need to check the box for full screen (you do if you run windowed), after that find the same resolution you are using but with the full-sync instead of half-sync.

Hope this helps!

John

dangavel
February 5th, 2018, 02:20 AM
i am SO glad I came across this as it has solved one of my biggest issues with the built in lighting blowing out over light textures at 12 pm ( which occur about 90% of the time in the desert) this makes an incredible difference to noon day lighting.
Now, is there any way one can add moonlight ? , as i sorely miss being able to drive a train in the light of the moon with the reflections on the water of a lake...

KenGreen
February 5th, 2018, 03:18 AM
It's a pity that some of the screenshots have disappeared. Has any suggestion ever been made about adding numbers to the colours in environment settings in the same way that Paintshop Pro displays the settings for the colour selected. this would make it easier to copy other people's settings.

Ken

Paulsw2
February 7th, 2018, 04:36 PM
Good point Ken. The UI for environmental settings hasn't changed in Trainz since the beginning. Bearing in mind how important ambient lighting, shadows and post-processing effects are to the 'look' of TANE - and the ability to fully exploit the new game engine - it's high time this was redesigned, eg. to use RGB numbers rather than highly inaccurate dials. Oh, and the ability to save post-processing savings.

Wonder if TS2018 will still be using the same UI for environmental settings as Trainz 2001?

Paul

JCitron
February 7th, 2018, 04:48 PM
Good point Ken. The UI for environmental settings hasn't changed in Trainz since the beginning. Bearing in mind how important ambient lighting, shadows and post-processing effects are to the 'look' of TANE - and the ability to fully exploit the new game engine - it's high time this was redesigned, eg. to use RGB numbers rather than highly inaccurate dials. Oh, and the ability to save post-processing savings.

Wonder if TS2018 will still be using the same UI for environmental settings as Trainz 2001?

Paul

We requested this in the Trainz Dev for this and other things which require settings and mouse movement like adjusting heights of scenery items. We were told it's possible to do, but we haven't seen anything like it.

My recommendation is to bring this topic up in the Suggestion Boxcar forum.