1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Lesson VRC Input - Source Code and Application

Discussion in 'Tutorials and Tips by the Developer' started by yobuddy, Sep 12, 2018.

  1. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,160
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,139Coins
    Ratings:
    +5,036 / 16 / -0
    VRC Input (Video Ride Creator Input) is a little example app designed to show how live telemetry recording works in the Video Ride Creator.
    With this little test app you can draw telemetry for a video while it is being played.
    So there is no reason to have to move all of the telemetry points by hand.

    Here you can turn output on and off, select the input you wish to write the telemetry for, and use the slider to adjust the value while the video is playing.
    23.jpg


    To setup the Video Ride Recorder to use the Input app, take a look at the following settings.
    First, open your video file and adjust the play speed of the file. (all files I have tried work except for .mpg’s)
    Set the play speed to something you can actually keep up with. (I suggest 20% to start with.)

    11.jpg

    Now select which input you will record first and deselect all the other telemetry points so you can clearly see what is happening.
    Once you have de-selected all but one telemetry line, press the REC button in the bottom left of the screen.

    12.jpg

    If you wish to actually see a bit of the line you are drawing while the video is being played you can adjust the offset during the recording like so.
    (But be sure to set the offset back before saving the file!)

    13.jpg

    Now open VRC Input and turn it on, you will see that you can move a point on the screen of the Video Ride Recorder.

    Press play on the video and carefully draw the telemetry you need for the input you are using.
    Once the video is over, make sure the recording is off, touch up anything you need to by hand, and save the file. (Remember to put offset back to zero first!)

    Download the test application here:
    VRCInput_Executable.zip

    Download the Source Code for the application here:
    VRCInput_SourceCode.zip

    I really hope to see some unique input device applications made.
    Whether they be for a Anolog Joystick or an Nintendo Nunchuck, with the source available, anything is possible!

    Take care!
    yobuddy
    • Like Like x 1
    • Winner Winner x 1
  2. Mu-KwangKim

    Mu-KwangKim Run, Run, Run SimAxe Beta Tester Gold Contributor

    Joined:
    Mar 14, 2012
    Messages:
    124
    Location:
    South, Korea
    Balance:
    - 689Coins
    Ratings:
    +33 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SCN5, SCN6, Joyrider, Motion platform, 4DOF, 6DOF
    The sample version does not seem to be able to manipulate the slide with the joystick.

    Do I have to create a separate VRCInput to use it as a joystick?




  3. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,160
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,139Coins
    Ratings:
    +5,036 / 16 / -0
    Hi @Mu-KwangKim,
    There is an example app, and the source code posted.
    The example app that is posted uses a slider for input, but the idea could be extended to anything really.
    Full source code showing how the input works is also posted to play with and extend to anything needed.
    Take care buddy!
    Dustin
  4. Ola Shaw

    Ola Shaw SHAWSOME Gold Contributor

    Joined:
    Dec 7, 2020
    Messages:
    12
    Balance:
    101Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    3DOF, Arduino, 6DOF
    @yobuddy
    Any idea why video ride recorder takes hours to process a recorded session? 18s at 4k 50 frames?
    It seems like it’s stuck in buffering blue light flashing in the top right hand corner....
  5. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,160
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,139Coins
    Ratings:
    +5,036 / 16 / -0
    @Ola Shaw,
    Please try it with a lower capture resolution. (Somewhere in the 1080p range)
    (Just to prove its working as it should)

    May i see you settings for video ride recorder?
    Maybe i will see something?
    take care,
    yobuddy
  6. NewRider

    NewRider New Member

    Joined:
    Apr 14, 2014
    Messages:
    9
    Balance:
    305Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    DC motor
    Hello @yobuddy
    I'm involoved in .net development and I could find your greate tools VRC and VRC input

    I'm planning to record my offroad ride (using my real car) as a video and move my 2dof rig sim as per the video
    I will make improvments on VRC input software so it can take input from Accelerometer sensor on pitch and roll.
    Actually I'm not using Simtools for this since I'm making my custom software.
    Also I would like to share my developments on VRC input here to have the ability to receive joystick inputs
    and any other ideas that people would like to add to make composing the telemetry easier.

    I wished that VRC and VRC input are combined in one software (not separated)
    So if you give me the chance to make developments on both tools to combine them together it would be greate.
    but since VRC source code is not available that will make my mission harder since that will take me more time.

    So is there any way than can make me contribute combining them together?

    Thank you in advance.
    Last edited by a moderator: Feb 1, 2022
  7. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,160
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,139Coins
    Ratings:
    +5,036 / 16 / -0
    Hi Buddy,
    That's cool you have been working on VRC input!
    The slider was just an example of how you can introduce input.
    Be cool to see what you come up with.

    Know that with the Video Ride Creator, you can import telemetry from saved text files for videos.
    So you can record the video and the telemetry and put them together in Video Ride Creator and sink them.
    Then smooth and adjust the telemetry at will...

    I have plans to refine the video ride side of things when i get v3 out the door.
    So we can combine it then, or make a plugin system for it or something.
    Take care,
    yobuddy
    • Like Like x 1
  8. NewRider

    NewRider New Member

    Joined:
    Apr 14, 2014
    Messages:
    9
    Balance:
    305Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    DC motor
    Hi yobuddy

    Very glad to hear that you are still planning to get V3 of Video Ride Creator

    One thing I wish if would be available is to be able set the full range for axis's rather than keeping it within big range from -32767 to +32758, my Sim range is from -1000 to +1000 so if I could set this range I can see the chart change more clearly.
  9. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,160
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,139Coins
    Ratings:
    +5,036 / 16 / -0
    But the ride would suffer, as you only have 2000 stop points, instead of 65,534 stop points.

    Either way would work, as the range gets set in the Max/Min for the plugin.
    Example, if roll is using 1000 to -1000, then for roll max/min would be 1000, -1000.
    But if roll is using 32767 to -32767, then for roll max/min would be 32767, -32767 with this one giving the better ride.

    Hope that helps,
    Take care!
  10. gcy0203

    gcy0203 New Member

    Joined:
    Jan 22, 2022
    Messages:
    3
    Balance:
    - 37Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    3DOF
    Does go pro have telemetry data?
  11. gcy0203

    gcy0203 New Member

    Joined:
    Jan 22, 2022
    Messages:
    3
    Balance:
    - 37Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    3DOF
    Can the G-force data of Go Pro be imported directly into the production video?
  12. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    5,160
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    48,139Coins
    Ratings:
    +5,036 / 16 / -0
    I have a 90 percent done go-pro 8 and above direct to ride flick app done.
    I have not played with it for a bit because of v3 Alpha, but i will dust if off and try to finish it at some point.
    • Informative Informative x 1
  13. gcy0203

    gcy0203 New Member

    Joined:
    Jan 22, 2022
    Messages:
    3
    Balance:
    - 37Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    3DOF
    Great I'm looking forward to it