One dial background texture shared by more than one indicator

LesiU

Is it possible, and how, to use one background texture for more then one gauge? For example, water temp and fuel level are sharing the same dial. Water is on the top and fuel is at the bottom.
I've made material "water_fuel_gauges", named background texture the same "water_fuel_gauges.tga" and use it for both indicators in cockpitinfo as the background texture but only one indicator will work.

Any suggestions?
 
I would suggest creating 2 textures for the one gauge since rFactor needs that name to know where to put the needle. Then split your 3d object that is your gauge in half so they are 2 separate models. When they are put together they will look like one gauge. You will probably have to play around a bit to get the needles exactly where you want them but that is how I would do it.

You may have to reverse the direction the needle sweeps so this entry in your cockpitinfo.ini will let you do that

FuelLevelClockwise=0 // 0 = counterclockwise, 1 = clockwise (this is obviously the default)

Bob
 
Yes, thanks. That's how I would do this to get around the problem but is that mean, rFactor can't support texture sharing for this purpose?
 
Not that I know of. Maybe someone else knows more about it than I do but as far as I know the entry in the Cockpitinfo.ini file is specifying what texture to use, what parameters to move the needle and what needle texture to use. The needle is then placed on the specified texture. I think each gauge name is hardcoded so I don't think you can mix and match them.
 
Well, I'm afraid there's no other way to do it. Or at least i don't know it. We do it as Bob already explained. We also split the gauge in two, applying different materials (pointing to different texture files) to each part. Then we define the cockpitinfo.ini as he wrote.

Of course the texture used in both materials can be the same but they must have different file names, but in the end you can't share just one texture file.

Best regards
 

Back
Top