Reload texture/gmt during session?

Discussion in 'Plugins' started by formula1996, Mar 21, 2017.

  1. formula1996

    formula1996 Registered

    Joined:
    Nov 2, 2012
    Messages:
    42
    Likes Received:
    1
    Is there a way to reload a texture or .gmt when the car is on track?
     
  2. lordpantsington

    lordpantsington Registered

    Joined:
    Oct 5, 2010
    Messages:
    849
    Likes Received:
    79
    What is the problem you are attempting to fix with a forced texture/gmt reload?
     
  3. formula1996

    formula1996 Registered

    Joined:
    Nov 2, 2012
    Messages:
    42
    Likes Received:
    1
    I want to change tyre texture when the wheel is on grass or gravel and then back to the normal texture when its clean again.
     
  4. blakboks

    blakboks Registered

    Joined:
    Oct 20, 2010
    Messages:
    843
    Likes Received:
    30
    I don't think this is possible for the following reasons:
    • AFAIK rF2 loads everything that's needed to race (all cars and track assets) into memory/vram on track load. Which means that your texture would have to be assigned to the shader/loaded into memory already. So, even if you could switch the texture on the application side, I don't think there's any way to get that to update in VRAM.
    • Even if you created a new shader for the tires that had both the clean and grassy texture, you'd have to pass some custom data into the shader, which AFAIK isn't possible, currently. Hopefully this changes with DX11.
    If there is a way, and it doesn't cause issues, I'd love to know it as well.
     
  5. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,382
    Likes Received:
    6,600
    Even if you could do it, you're be representing graphically a situation that isn't real; ie you would see a dirty tyre, but the physics side just has it as a normal tyre still. We could hope S397 will be willing to put in some fakery in areas like this, instead of the ISI approach of not putting in anything until it's done properly (ie gravel trap stone size, density, stickiness of tyres, leading to a certain amount of pickup at a given temperature with wheel rotation speed also factored in, then the individual stones factored into the contact patch grip calculations, and finally the stones being flung off due to centrifugal force as speed increases). A few simpler variables and a couple of alternative textures would do the job well enough (and maintain a correlation between graphics and physics).
     

Share This Page