Hello community! i was wondering on how to properly do edits to Rail Vehicle Numbers as im currently struggling to get it perfect. ive attached a screenshot to make more sense on what i mean and if you have any advice and/or guidance on this topic then, please let me know as i would really like to create a /2 variant of the Class 350. Since the game assigns the numbers from a texture file to said train with correct numbers printed without modifing the texture file, i was wondering whether i can do the same here. Ive tried looking inside RVV | RVM | RVD | RVA files but cant find how the 3501 part is shown in the pc editor viewport of RVV file. The 2 shown in the attached screenshot, ive edited the texture file and updated it to reflect within the editor but the 2 is too close to the 0 (not to mention that its being eaten into) and there should be a gap to seperate the first 3 numbers with the last 3 numbers. Many Thanks ColeTheGamer2048
Would anyone know how, with stock numbers texture file be able to put 350 on the train? i know that the 350 is already on the train but am wanting to know how it does that
I think this is more of a shader math problem rather than it being done through code. Basically you want a material that takes four numbers and then splices the right pieces of the texture together based on them. I think the easiest way to do that would be with shifting UV maps. Let's say the sign on the train has UV coordinates 0-1 both horizontally and vertically so it's like a full texture projected on it. There are also four numbers on it so the first one needs to fit into 0-0.25 horizontally, second one into 0.25-0.5 and so on. Then the first number on the sheet is 0-1 vertically (no need to shift anything) and 0-0.1 horizontally (1/10 of the whole sheet). With that, you just need to map texture space from 0-0.1(first number in the sheet) to 0-0.25 (first position on the sign) and add offsets for different numbers and different positions. Not gonna make it right now because it's getting a bit late but it's not that hard if you know how UVs work.