Snow Shader
1 / 4
Wir begrüßen euch in der Fan-Community zu den Spielen Transport Fever und Train Fever, den Wirtschaftssimulatoren von Urban Games. Die Community steht euch kostenlos zur Verfügung damit ihr euch über das Spiel austauschen und informieren könnt. Wir pflegen hier einen freundlichen und sachlichen Umgang untereinander und unser Team steht euch in allen Fragen gerne beiseite.
Die Registrierung und Nutzung ist selbstverständlich kostenlos.
Wir wünschen euch viel Spaß und hoffen auf rege Beteiligung.
Das Team der Transport-Fever Community
Kommentare 30
Neu erstellte Kommentare unterliegen der Moderation und werden erst sichtbar, wenn sie durch einen Moderator geprüft und freigeschaltet wurden.
Neu erstellte Kommentare unterliegen der Moderation und werden erst sichtbar, wenn sie durch einen Moderator geprüft und freigeschaltet wurden.
Nordwestexpress
Mod funktioniert und sieht auch schön aus.
Allerdings: Ich habe versucht, die Schneegrenze durch ändern der Werte const float snow0 und const float snow1 niedriger zu bekommen - nix passiert...
DarkMo
Wie eins weiter unten geschrieben, muss man der grass_colors.tga in der oberen Hälfte in etwa Schneefarben spendieren. Zur Zeit komm ich nicht wirklich dazu mich drum zu kümmern, also warte ich warscheinlich den Patch ab oder so, mal schauen.
Nordwestexpress
Ich spiele allerdings nicht das Nordic DLC - nur Att800. Oder macht das keinen Unterschied?
DarkMo
Da wird halt die grass_color.tga vom Hauptspiel dann genutzt. Die enthält zwar weis, aber solange du da an der textur nix änderst, wird sich an der Schneegrenze nix ändern
Um ehrlich zu sein: Ich wusst selber nix mehr von diesem Umbau
Ich muss mir das alles nochmal genau anschauen. Zur Zeit scheinen die Schneegrenze-Variablen einfach keinen Einfluss zu haben (was mich irgendwie selber bissl stört).
Nordwestexpress
Thx für die Info - dann drück ich Dir mal die Daumen...
TheMawiLP
Bei mir mache ich rigendwie alles faltsch ich zihe in in dem TFMM Und aktivire ihn im spiel abe rich habe nie schnee
DarkMo
Das ist das selbe Spielchen wie mit dem Nordic DLC
Shader werden NICHT per Mod-System unterstützt. Wenn du aber die News ordentlich verfolgst (siehe gerade die von heute Nacht), dann wüsstest du, dass es anfang 16 implementiert wird. Dann kann man das auch wie andere Mods installieren. Bis dahin musst du händisch die originalen Shader überschreiben (genau wie beim Nordic). Also Sicherheitskopie machen!
Wenn das TF-Update raus ist, werde ich dann hier sicher nochmal ramba zamba machen und das aktualisieren
TheMawiLP
Ist der auch fit für das Nordische DLC ?
DarkMo
Prinzipiell ja, das Problem ist, dass die grass_color.tga kein weis als Farbe hat. Hab mir da selber schon was gebastelt und war am rumspielen, kann ich sicher dann mal hier mit reinbauen
MontePlaysGames
I am excited to see the snow shader working for the Nordic DLC at some point. Great Mod
obv
Hello!
this mod with mod Graphic HQ mod 3v0 by A100N don't work? why?
thanks
DarkMo
I really have no clue. Do you have some comparison images for me? Perhaps we can find it out
obv
what images do you want?
obv
maybe if you install the graphic hq mod and you can try to work i don't know....
i'm only download darkmo_snowShader_2 as this is more recent
but in your terrain_gen.fs you have 4 comments lines maybe?
//const float snow0 = .13733 * hmax;
//const float snow1 = .15733 * hmax;
float snow0 = .5 * hmax2 + diff1;
float snow1 = snow0 + 25 + diff2;
//const float snow0 = .75 * hmax;
//const float snow1 = .77 * hmax;
i 'm uncomment two
//const float snow0 = .13733 * hmax;
//const float snow1 = .15733 * hmax;
but the problem persist
I have also checked with the other two
DarkMo
Images how it looks like. The comments are original lines (the first 2) and version1 lines from me (the last 2). Is there totally no effect or how do you see that it doesnt work? So load a Map, go to a nice position, save it there. Now make a screen, close TF, add or delete my shaders and restart. Now load the map again and take a picture of the same location. Those 2 Pics would be intresting
Btw: You cant add my shaders with a Mod-Manager
Seems TF ignores shader-files provided in this kind. It only loads the Originals in res. So you have to overwrite the originals - what means: BACKUP them befor 
obv
well i'm try this last post but enable or disable two original lines and others two the game CRASH in last build game 6219
chrigulix
Hallo DarkMo, bei mir gibt's da ein Probleme: Ich habe den Mod mit TFMM 0.9.133 installiert. Dann habe ich den Mod mit dem Ingamemodmanager aktiviert und eine neue Karte (hügelig) erstellt, doch der Schnee ist nirgends zu sehen. Ich habe es nacheinander mit beiden Versionen versucht und jeweils sichergestellt, dass sich der Mod auch tatsächlich im TrainFever/mods ordner vorhanden ist (btw. dabei habe ich festgestellt, dass beide Versionen als Verzeichniss darkmo_snowshader_1 entpacken). Hast du da irgend eine Idee?
DarkMo
Joa, scheinbar lassen sich Shader nicht über das Modsystem ändern. Man muss wohl zwingend die Originalen in res ersetzen. Also ZWINGEND! ein Backup der Originalen machen.
chrigulix
Ach so! Jetzt hab auch ich noch begriffen, was du in den ersten paar Zeilen beschreibst...
Zerope
Kann man das verstellen (Schneegrenze z.B. auf 250 schon machen?)
DarkMo
Siehe Antwort zu Yippieyak - oder den Thread im Forum
Dubs
Könnte man auf diese Art und Weise auch die Baumgrenze bestimmen? Oder zumindest andere Bäume auswählen? Weil grüne Bäume auf weißem Untergrund sieht schon ein wenig ... "interessant" aus
DarkMo
Hab ich mir noch nicht angeschaut. Aber ich wollte eh mal aus Lust und Laune bissl rumexperimentieren. Gibt halt nur zig zig zig verschiedene Shader xD Wenn es bei den "Baum-Shadern" eine Höhenangabe gibt, ließe sich da sicher was machen. Aber obs die gibt...
yippieyak
Works with mountain mod 3?
How to lower the snow line?
DarkMo
I dont use the Mountain Mod, but as i understood, this Mod only changes a basic-texture needed for terrain-generation. So it should have no influence on terrain-rendering and this changed shader should work as well.
damn
So my snowline ist actually at ~372m
Well, perhaps i enable an update or just leave it this way *think*
To lower the snow-line open the shader-file (i prefer notepad++) and have a look at the lines 62 and 63. The both next lines are the Original ones out-commented. As you see i only changed the factor from .75 to .113 and so on. In line 31 right after main() is the declaration of the hmax-variable with ~3.2km. To set the snowline to your desired height just do this calculation: Your wanted snow-line / the given hmax-value = the factor you have to enter in line 62. In my case it was 450/3276.75 = 0.1373... and i see i doubled the 1 and wrote 113
At least: I have no idea for what line 63 is - i just left it 0.02 higer as in the original values
But i wanted to play with that numbers a bit anyways 
yippieyak
My game is heavily modified and perhaps this explains my problems. I tried changing your values many times, but it made zero effect in my game. I uninstalled yours and still my map looked the same (used the same seed for tests). I changed the original game file values and the effects occurred just as you have written here.
Celestino
i do not understand where to go to change the values
yippieyak
Celestino, to make the changes open you PC, the hard-drive that steam is on, then Program Files (x86), then Steam, then steamapps, then common, then TrainFever, then res, then shaders, then misc.
Once inside the "misc" file, click "Terrain_gen.fs"
Open with notepad or Notepad++ (Notepad++ is my preference)
Look for lines 62 and 63
const float snow0 = .075 * hmax;
const float snow1 = .095 * hmax;
This contains two distinct shades of snow. One being "deep snow '1' " and the other "melty snow 'o' ". Not the actual names, just my thinking. Snow will melt at lower altitudes due to higher temperatures, so the DEVs added two shades of snow. Melty snow for lower altitudes and heavier snow for higher. If you lowe rthe numbers, the respective snow field will go lower.
Nicky21
Awesome !
DarkMo
Its UG's work, i just had to "enable" it
*disclaim* 