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

Question for Sirnoname...

Discussion in 'DIY Motion Simulator Projects' started by telfordtim, Jan 21, 2011.

  1. telfordtim

    telfordtim New Member

    Joined:
    Jan 21, 2011
    Messages:
    2
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Hi Sirnoname! Sorry to post this question in the forum, I hope you dont mind :(... I tried to PM you but it wouldn't let me for some reason.

    I understand you are on of the main developers behind X-Sim, it's an awesome bit of software.. have really enjoyed messing around with it here! :)

    I just wondered if you could offer me a little advice.. I'm doing a project for university and want to be able to log telemetry info (namely acceleration data) from a car in an existing windows app using just its current position / rotation info - I don't have the source code for this app so I'm using d3d API hooking. I noticed recently you're doing something very similar with your new 'Project Plugfree' add-on, it seems you are locating the correct structure for the car, catching directX calls and taking the position data out of each one to calculate the acceleration. The problem I'm having is I've tried doing this but there is a big issue with timing - although I record the current time (in millis with 1ms accuracy) from frame to frame (each time I catch the data) to calculate the elapsed time, I can't get consitent acceleration data - it jumps about all over the place indicating I'm doing something wrong :-/ I'm guessing its down to the call time being dependant on the actual frame render time to that point (unknown until you start drawing), it just seems that if the elapsed time is calculated to be even very slightly out there are massive jumps in the acceleration data. I've tried averaging but it's still very spikey :(

    Just wondered if you could offer any advice, did you experience the same problem and if so could you offer any pointers as to how I'd work around it? I'd be extremely grateful for your help or advice in this area, I'm tearing my hair out and need to submit the finished article for a deadline by feb 20th :-o Not looking for source-code or anything like that, just a bit of advice.

    Take care dude, and thanks again in advance if you can offer any help - happy to make a donation to the running of the x-sim site in return for your time if you have a paypal account for it... You seem to be the only person I've found doing something the same!

    Tim (timbradford89@hotmail.co.uk)
  2. sdecorme

    sdecorme New Member

    Joined:
    Aug 24, 2010
    Messages:
    31
    Occupation:
    Devellopper
    Location:
    Pierrelatte
    Balance:
    372Coins
    Ratings:
    +0 / 0 / -0
    Hi,
    To get the value you need you can use cheat engine there is a lot of tutorial on the net about it.
    Good luck
  3. telfordtim

    telfordtim New Member

    Joined:
    Jan 21, 2011
    Messages:
    2
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Hi,

    Thanks for the reply.. It's not finding the values that is the problem, it's synronization with the timestep of the physics engine, which is a complete unknown using the method exploited by Project PlugFree as the frame render time prior to the API call is indeterminate. In order to achieve accurate acceleration results from positional values, the precise elapsed time between each telemetry structure update needs to be known.

    I'm guessing from the lack of response this is a problem sirnoname hasn't yet managed to solve :( Sirnoname, I'd be interested to beta-test Project PlugFree if it helps, maybe we can work together if there is something that has been missed on this front..

    All the best,

    Tim
  4. bvillersjr

    bvillersjr Active Member

    Joined:
    Oct 11, 2008
    Messages:
    1,174
    Location:
    Ohio, USA
    Balance:
    437Coins
    Ratings:
    +23 / 1 / -0
    :) Tell us more abou your university project and post the code you have thus far.
  5. sdecorme

    sdecorme New Member

    Joined:
    Aug 24, 2010
    Messages:
    31
    Occupation:
    Devellopper
    Location:
    Pierrelatte
    Balance:
    372Coins
    Ratings:
    +0 / 0 / -0
    If you don't know the frame speed , you can make a polling system to be sure to read faster than they are refreshed.