[REL] Delta Best plugin for rFactor 2

Discussion in 'Other' started by cosimo, Apr 20, 2014.

  1. GauchoRS

    GauchoRS Registered

    Joined:
    Nov 23, 2011
    Messages:
    471
    Likes Received:
    9
    +1 !!
     
  2. GauchoRS

    GauchoRS Registered

    Joined:
    Nov 23, 2011
    Messages:
    471
    Likes Received:
    9
    +1 !!
     
  3. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Does anyone know how to draw a rectangle on screen? :)

    I'm thinking of adding the a dynamic bar, similar to what iRacing does.
    I tried with Direct3D DrawPrimitive() and a TriangleStrip, but I have no idea where I'm drawing in the 3D space. What I want is just painting a rectangle in "sort of 2D mode".
     
  4. John.Persson

    John.Persson Registered

    Joined:
    Oct 17, 2011
    Messages:
    944
    Likes Received:
    13
    Hows v8 comming along? ;)
     
  5. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    I think I'll start looking at this article about sprites with Direct3D: http://www.toymaker.info/Games/html/sprites.html

    About v8, I think it's the best version yet. Upcoming changes:
    • much more accurate delta timing, using high speed telemetry (every 0.01 s) updates in-between the scoring updates (every 0.2 s)
    • much better visual display of delta time changes. Counter now accelerates more or less depending on the difference. Not easy to explain, but works similarly to the iRacing delta time counter. Counter updates feel much smoother now.
    • fixed bug that kept the best lap reference across different tracks/cars/sessions. Now best lap is reset every time you start a new session. I prefer this behaviour for now, even if it's not ideal, to having a completely wrong reference time that was recorded on a different track.

    I'm still trying to implement the colored bar, but v8 overall is already better IMHO.
    Will release something tonight (in 4-5 hours I think).
     
  6. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Here's a preview video of version 8 (still marked as in-development, "v8-dev"):



    (still uploading as of now, check back in an hour or so)

    I won't spoil the surprise... check out the video :)
    Not released yet, as you can see there's a few minor glitches. I'll see if I can iron them out before releasing v8.
    Of course, if you have strong opinions, let me know.

    I also want to thank everyone for the fantastic positive feedback and especially want to thank the ones of you who donated.
    It's not required, and I don't need financial support, but it's nice to know there's people who appreciate this work :)
    For full disclosure: I usually buy books out of contributions like these :)
     
    Last edited by a moderator: May 4, 2014
  7. GauchoRS

    GauchoRS Registered

    Joined:
    Nov 23, 2011
    Messages:
    471
    Likes Received:
    9
    video not available for me .... but I am shure that v8 will be great !
     
  8. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    eh eh... I think it's the best version yet :)
     
  9. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Great v8 :)

    Cosimo, could you please provide me the code snippet you have used to draw the grey rectangle?
    Thanks in advance.
     
  10. Daytona 675

    Daytona 675 Registered

    Joined:
    Jan 1, 2014
    Messages:
    210
    Likes Received:
    30
    Great work. Before watch the last video I donĀ“t understand (with words) the use of the bar, now is perfectly clear. :)
     
  11. GauchoRS

    GauchoRS Registered

    Joined:
    Nov 23, 2011
    Messages:
    471
    Likes Received:
    9
    now video was running ... and I am very impressed ! Thats an awesome tool !
     
  12. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
  13. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Maybe I should have explained. I made a simple 1024x64 white texture (DeltaBestBackground.png). By using Sprite->Draw() it's possible to draw several rectangles with different color masks.

    The code at this point is a pile of junk and I have no idea if this is sane or not. It's my first venture into DirectX...
     
  14. Gerald Jacobson

    Gerald Jacobson Registered

    Joined:
    Jan 26, 2013
    Messages:
    827
    Likes Received:
    18
    Thanks. I did the same thing.
     
  15. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Released version 8, codename "Indy" :)
    Updated first post and explanatory video.

    This is the first release that implements the dynamic color bar like iRacing does.
    It's still less refined visually, but the functionality is (I believe) the same.

    Enjoy!
     
  16. ViSo

    ViSo Registered

    Joined:
    Feb 25, 2013
    Messages:
    316
    Likes Received:
    0
    +1 for ''just the number'', is the bar needed?

    It is a great work, but is possible to have a v8 ''bar edition'' and another v8 ''no bar edition''? thx!
     
  17. Mr.Thor

    Mr.Thor Registered

    Joined:
    May 25, 2013
    Messages:
    244
    Likes Received:
    48
    thanks for the v8! its getting better with every version :)
    maybe you can add 2 options to the ini file:
    1. bar on / off
    2. edit option for key shortcut to toggle the plug in, would be nice to change it.
     
  18. McFlex

    McFlex Registered

    Joined:
    Feb 23, 2012
    Messages:
    1,031
    Likes Received:
    317
    Indeed if you want to go fast in relation to laptimes it is a lot easier to figure out if your gained or lost time by interpreating a bar than numbers? It is more important to easily see if you lost/gained time than knowing how much it acually was.

    So let the bar where it is or even change the sides (right side gaining time/negative values; left side loosing time/positive values)
     
  19. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Implemented now in version 9, via the Enabled=0/1 attributes in the INI file.
    It is possible to enable or disable either the colored bar or the text.
    Check the first post!
     
  20. cosimo

    cosimo Registered

    Joined:
    Apr 14, 2013
    Messages:
    827
    Likes Received:
    99
    Both of these suggestions are now implemented in version 9 via the INI file.
     

Share This Page