program to measure Length (in pixel) and Speed of a track

Discussion related to Turbo Sliders and beta version feedback.

Moderator: Forum Moderators

User avatar
Mouse
Community User Level: 5
Community User Level: 5
Posts: 1358
Joined: Fri May 20, 2005 1:56 am

Post by Mouse » Fri Aug 25, 2006 9:41 pm

Slider wrote: it would be nice to have a program taht allows you to choose a track and car and it'll tell you wats the average of secs of the car's speed on this trk per lap or tell you the secs of the line you would draw :shock: :D
It is not so hard to figure out an average speed for a car. You can make a special track with a very long straight. Make sure the car can go through 2 checkpoints at it's top speed.

Figure out the time it took to go from A to B. Then figure out the distance from A to B.

Speed/Velocity is figured out based on Time and Distance, so it can be calculated.

A nice format that all would use is Pixels per second. Can say "EasySlider goes 30p/s" it will be a nice car stat.

Actually, i am going to make a track that can be used to figure car speeds, i will post here after i do it.
Image

User avatar
Mouse
Community User Level: 5
Community User Level: 5
Posts: 1358
Joined: Fri May 20, 2005 1:56 am

Post by Mouse » Fri Aug 25, 2006 10:03 pm

Well, i forgot that TS does not suppot an A-B type lap...so timing would need to be done with a stop watch.

V = D/T or Velocity is calculated by deviding distance by time.

Say EasySlider makes 300 pixels in .78 second. The velocity (speed) of the EasySlider is 384 P/S

I am going right now to actually figure this out for all default cars.

EDIT -

I have done a few runs and calculations, here are car speeds:

Note - All speeds are Pixels per Second

AntiSlider - 206
Slider - 285
EasySlider - 260
Speeder - 315
Spinner - 205

Since i had to use manual timing, the speeds may be off by 3+- p/s
Wow, physics class actually paid off? :shock: ......... :)
Image

Jarno
Community User Level: 3
Community User Level: 3
Posts: 355
Joined: Wed Sep 21, 2005 7:14 am
Contact:

Post by Jarno » Sat Aug 26, 2006 9:04 am

And in ts you can think that pixels per second are like km/h :) that's way top speeds looks good and realistic :)
Spinnering on limits...

mikko
Community User Level: 2
Community User Level: 2
Posts: 217
Joined: Fri Jan 13, 2006 8:38 pm

Post by mikko » Sat Aug 26, 2006 9:51 am

Jarno wrote:And in ts you can think that pixels per second are like km/h :) that's way top speeds looks good and realistic :)
Good point! I can already feel the speed. :wink:

User avatar
Mouse
Community User Level: 5
Community User Level: 5
Posts: 1358
Joined: Fri May 20, 2005 1:56 am

Post by Mouse » Sat Aug 26, 2006 11:49 am

Haha yep thats true, it does look realistic! It can be nice for car makers to tell their cars top speed as a nice stat, before people download. :)
Image

User avatar
Jazzyclub
Community User Level: 3
Community User Level: 3
Posts: 586
Joined: Sun Nov 14, 2004 2:11 am
Contact:

Post by Jazzyclub » Sat Aug 26, 2006 2:58 pm

Brands hatch was tested with this program using the middle way of the road, the pixels are 6406.
This can be used too to say: my track is long 6.406 meters or 6.4 km...


Now , how can i figure a lap time? if my toca car have this parameters:

Code: Select all

  acceleration 105
  enginefriction 0
  viscosity 0.40
  nonslidesector 1.5
  slidebraking 25
  slidedeceleration 35
  braking 85
  steering 1.9
  elasticity 0.8
  grip 210
what the middle lap time?

User avatar
u9
Community User Level: 1
Community User Level: 1
Posts: 65
Joined: Thu Aug 24, 2006 9:04 pm
Contact:

Post by u9 » Sat Aug 26, 2006 6:32 pm

mouse wrote: [...] Say EasySlider makes 300 pixels in .78 second. The velocity (speed) of the EasySlider is 384 P/S [...]
You could make the track bigger so that you measure over a longer period of time. That would make the human error of the timing have less impact on the times. E.g. 5 seconds... but that would be one hell of a track I guess hehe...
Jarno wrote:And in ts you can think that pixels per second are like km/h :) that's way top speeds looks good and realistic :)
It actually does. Then one pixel is the equivalent of 1/3.6 = 0.277m making the cars a bit big (EasySlider=6.4m long and Speeder a whooping 7.7m long), but what the hell :)
The most likely way for the world to be destroyed, most experts agree, is by accident. That's where we come in; we're computer professionals. We cause accidents. (Nathaniel Borenstein)
http://www.wirednerd.com

User avatar
Mouse
Community User Level: 5
Community User Level: 5
Posts: 1358
Joined: Fri May 20, 2005 1:56 am

Post by Mouse » Sat Aug 26, 2006 7:26 pm

I used 300 Pixels, most of the track was used to be sure the car was at 100% speed. It was not very hard to measure the time, i did 3 trials per car, all of them were within 0.08.

It may work to base the times off a replay going at 50% speed, it will make timing much easier, but i dont know if the replays actually go at a perfect 50%.
Image

Post Reply