FinalGear.com Forums  

Go Back   FinalGear.com Forums > General Discussion > Entertainment > Live For Speed

Welcome to the FinalGear.com Forums!

This is the place to discuss everything related to Top Gear, Fifth Gear, and more! However, to gain full access to these forums, you will need to register. As a registered member, you will be able to:

  • Remove all ads from the forums. If you've taken the time to register, we'll thank you by not bothering you with them.
  • Make your own posts and threads. The shows' producers have been known to read these forums, so you may just influence the shows by posting here!
  • View the Video Offers and Video Requests forums which contain lots of great content.
  • Get to know a bunch of friendly people and participate in an ever-growing community.

All this and much more is available to you absolutely free when you register for an account, so sign up today!

If you have any problems with the registration process or logging into your account, you can contact us. Already have an account? Login to the upper-right to hide this message and all advertisements on the forums.


Live For Speed Discussion on Live For Speed and our weekly races.

Reply
 
LinkBack Thread Tools Search this Thread
Old December 10th, 2007, 06:52 PM   #21
Not the Browser
 
FireFox's Avatar
 
Joined: Feb 7th, 2005
Last Online: 01:35 PM
Location: Dutchieland
Age: 22
Posts: 1,206
Car: Sold Toyota Carina II. AC Cobra 427 *dream*
LFS Status: LFS Status
Rep Power: 19
FireFox has between 150 and 249 reputationFireFox has between 150 and 249 reputationFireFox has between 150 and 249 reputation
Default

You can make one if the language has a TCP connection. Haven't done much PHP programming lately. Sure its possible, but how would you keep the connection alive? Create an Ajax script that executes every 30 seconds a php file? How would a disconnect be?
__________________
LFS - Team Finalgear
FireFox is offline   Reply With Quote
Want To Remove This Ad? Just Register For A FREE Account!
Old December 15th, 2007, 01:55 PM   #22
Not the Browser
 
FireFox's Avatar
 
Joined: Feb 7th, 2005
Last Online: 01:35 PM
Location: Dutchieland
Age: 22
Posts: 1,206
Car: Sold Toyota Carina II. AC Cobra 427 *dream*
LFS Status: LFS Status
Rep Power: 19
FireFox has between 150 and 249 reputationFireFox has between 150 and 249 reputationFireFox has between 150 and 249 reputation
Default

Updated the GUI a bit images/smilies/smile.gif and fixed some bugs.
  • Fixed driver swap. RS did hang when a driver swap took place in a populated server.
  • Race info, column now sorted on position
  • Give total time to the next driver in a driver swap action
http://thumb.phyrefile.com/2007/12/15/racespectatorv0.2.2.jpg
Click the image for fullscreen.
Todo: Add the new South City (SO6) pth file,
__________________
LFS - Team Finalgear
FireFox is offline   Reply With Quote
Old December 17th, 2007, 03:45 PM   #23
Not the Browser
 
FireFox's Avatar
 
Joined: Feb 7th, 2005
Last Online: 01:35 PM
Location: Dutchieland
Age: 22
Posts: 1,206
Car: Sold Toyota Carina II. AC Cobra 427 *dream*
LFS Status: LFS Status
Rep Power: 19
FireFox has between 150 and 249 reputationFireFox has between 150 and 249 reputationFireFox has between 150 and 249 reputation
Default

Righ, I need some Math help images/smilies/smile.gif, as you can see in the image above, the track is displayed with a single line. The track exist out of few hundererd 'nodes', and i'm drawing a line through the x and y positions of each node. Simple and effective.
Now the more advanced bit: Each node has more information about how wide the track is, and where you can drive.
Visual aid:
http://img225.imageshack.us/img225/7379/lfsnodeig7.gif
Code:
Console.WriteLine(n.CenterX + "," + n.CenterY); 
Console.WriteLine(n.LimitLeft + " " + n.DriveLeft); 
Console.WriteLine(n.DirectionX + " " + n.DirectionY); 
  
-2513179 -32655587 
-10.10002 -2.349999 
-0.9909657 0.1341159
I'm drawing the black x and y position values atm. The yellow/red arrows are the distance values for LimitLeft & DriveLeft.
How can I get an X and Y position of "LimitLeft" and "DriveLeft"? So i can draw the outline of the track.
__________________
LFS - Team Finalgear
FireFox is offline   Reply With Quote
Old December 17th, 2007, 05:52 PM   #24
Your Guide to TG/FG
 
ESPNSTI's Avatar
 
Joined: Dec 9th, 2003
Last Online: Yesterday
Location: Decorah, IA
Age: 36
Posts: 4,297
Car: 2004 Subaru Impreza WRX STI (USDM)
LFS Status: LFS Status
Rep Power: 35
ESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputation
Default

Quote:
Originally Posted by FireFox View Post
I'm drawing the black x and y position values atm. The yellow/red arrows are the distance values for LimitLeft & DriveLeft.
How can I get an X and Y position of "LimitLeft" and "DriveLeft"? So i can draw the outline of the track.
You need to find the direction angle. I'm not sure what exactly DirectionX and DirectionY is. Is that the angle from 0,0 (x,y)?

Once you have the angle, you can use that to find out how much to add to centerX and centerY using Trigonometry:
http://www.visualtrig.com/Default.aspx

But given that that is high school stuff (and I haven't done that in close to 20 years), did I misunderstand your question?
ESPNSTI is offline   Reply With Quote
Old December 17th, 2007, 08:12 PM   #25
 
pdanev's Avatar
 
Joined: Oct 4th, 2004
Last Online: Yesterday
Location: Netherlands
Age: 25
Posts: 5,643
LFS Status: LFS Status
Rep Power: 24
pdanev has between 150 and 249 reputationpdanev has between 150 and 249 reputationpdanev has between 150 and 249 reputation
Send a message via MSN to pdanev
Default

Can't you have a look at those replay analyser applications that use the raf (?) files for comparing & analysing driving lines speed etc?

I mean either look at the code of those if possible or maybe PM the guys who made those applications?
pdanev is offline   Reply With Quote
Old December 17th, 2007, 09:22 PM   #26
Not the Browser
 
FireFox's Avatar
 
Joined: Feb 7th, 2005
Last Online: 01:35 PM
Location: Dutchieland
Age: 22
Posts: 1,206
Car: Sold Toyota Carina II. AC Cobra 427 *dream*
LFS Status: LFS Status
Rep Power: 19
FireFox has between 150 and 249 reputationFireFox has between 150 and 249 reputationFireFox has between 150 and 249 reputation
Default

I've almost got it... kinda. Not sure why the lines are intersecting. images/smilies/mad.gif
Green line should be the DriveLeft and the blue line should be DriveRight.
http://pic.phyrefile.com/2007/12/17/rsimage.jpg
I've tried this approach, look at solution number 3.
Tried all kind of different stuff. Why is such an 'easy' math question so difficult to solve images/smilies/dry.gif
__________________
LFS - Team Finalgear
FireFox is offline   Reply With Quote
Old December 17th, 2007, 09:29 PM   #27
Your Guide to TG/FG
 
ESPNSTI's Avatar
 
Joined: Dec 9th, 2003
Last Online: Yesterday
Location: Decorah, IA
Age: 36
Posts: 4,297
Car: 2004 Subaru Impreza WRX STI (USDM)
LFS Status: LFS Status
Rep Power: 35
ESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputation
Default

Quote:
Originally Posted by FireFox View Post
I've almost got it... kinda. Not sure why the lines are intersecting. images/smilies/mad.gif
The "direction angle" is the angle of the track right, and not the direction of the car?
If it's the direction of the car then that might explain why it's intersecting.
The other possibility is that the angle is wrong (it should be 90 degrees from the direction of the track).

Quote:
Originally Posted by FireFox View Post
I've tried this approach, look at solution number 3.
Tried all kind of different stuff. Why is such an 'easy' math question so difficult to solve images/smilies/dry.gif
That is the correct approach I think.
ESPNSTI is offline   Reply With Quote
Old December 17th, 2007, 09:35 PM   #28
Not the Browser
 
FireFox's Avatar
 
Joined: Feb 7th, 2005
Last Online: 01:35 PM
Location: Dutchieland
Age: 22
Posts: 1,206
Car: Sold Toyota Carina II. AC Cobra 427 *dream*
LFS Status: LFS Status
Rep Power: 19
FireFox has between 150 and 249 reputationFireFox has between 150 and 249 reputationFireFox has between 150 and 249 reputation
Default

Its the angle of the node. Each node has his own direction.
__________________
LFS - Team Finalgear
FireFox is offline   Reply With Quote
Old December 17th, 2007, 09:47 PM   #29
Your Guide to TG/FG
 
ESPNSTI's Avatar
 
Joined: Dec 9th, 2003
Last Online: Yesterday
Location: Decorah, IA
Age: 36
Posts: 4,297
Car: 2004 Subaru Impreza WRX STI (USDM)
LFS Status: LFS Status
Rep Power: 35
ESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputationESPNSTI has between 1000 and 1499 reputation
Default

Quote:
Originally Posted by FireFox View Post
Code:
Console.WriteLine(n.CenterX + "," + n.CenterY); 
Console.WriteLine(n.LimitLeft + " " + n.DriveLeft); 
Console.WriteLine(n.DirectionX + " " + n.DirectionY); 
  
-2513179 -32655587 
-10.10002 -2.349999 
-0.9909657 0.1341159
Wait, I think I see what they're doing with DirectionX and DirectionY.
Is it possible that it's as simple as this (not sure if I have the plus or minus correct):

Code:
DriveLeftX = CenterX - (DirectionX * DriveLeft)
DirveLeftY = CenterY - (DirectionY * DriveLeft)

DriveRightX = CenterX + (DirectionX * DriveLeft)
DriveRightY = CenterY + (DirectionY * DriveLeft)

Last edited by ESPNSTI; December 17th, 2007 at 09:50 PM..
ESPNSTI is offline   Reply With Quote
Old December 17th, 2007, 09:55 PM   #30
Not the Browser
 
FireFox's Avatar
 
Joined: Feb 7th, 2005
Last Online: 01:35 PM
Location: Dutchieland
Age: 22
Posts: 1,206
Car: Sold Toyota Carina II. AC Cobra 427 *dream*
LFS Status: LFS Status
Rep Power: 19
FireFox has between 150 and 249 reputationFireFox has between 150 and 249 reputationFireFox has between 150 and 249 reputation
Default

Tried that, its displays the line above the 'normal' x,y position one. You need an angle aswell, and cos or tan, sin...
Note, i've also got DriveRight and LimitRight.
__________________
LFS - Team Finalgear
FireFox is offline   Reply With Quote
Old December 19th, 2007, 08:22 PM   #31
Not the Browser
 
FireFox's Avatar
 
Joined: Feb 7th, 2005
Last Online: 01:35 PM
Location: Dutchieland
Age: 22
Posts: 1,206
Car: Sold Toyota Carina II. AC Cobra 427 *dream*
LFS Status: LFS Status
Rep Power: 19
FireFox has between 150 and 249 reputationFireFox has between 150 and 249 reputationFireFox has between 150 and 249 reputation
Default

The beta version, LFSForum post.
Some feedback would be nice images/smilies/smile.gif
Espn, I'm not sure how to calculate the angle, or what the directionx/directiony values mean. I'll leave it like this now.
With the info above, someone could calculate the position for DriveLeft, then i can check if the solution is ok by putting it in RS.
oh and vote here images/smilies/mrgreen.gif
__________________
LFS - Team Finalgear
FireFox is offline   Reply With Quote
Old December 20th, 2007, 12:00 AM   #32
 
Mischief007's Avatar
 
Joined: Dec 3rd, 2004
Last Online: Yesterday
Location: London, Ontario, Canada
Age: 27
Posts: 4,370
Car: 2004 GP GTP CompG
LFS Status: LFS Status
Rep Power: 24
Mischief007 has between 350 and 449 reputationMischief007 has between 350 and 449 reputationMischief007 has between 350 and 449 reputationMischief007 has between 350 and 449 reputation
Default

Already voted for you images/smilies/wink.gif.
__________________
2004 Pontiac Grand Prix GTP CompG
66,750 km - 41,477 miles
Mischief007 is offline   Reply With Quote
Want To Remove This Ad? Just Register For A FREE Account!
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Go Back   FinalGear.com Forums > General Discussion > Entertainment > Live For Speed
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I rode in my dream car, around a race track, and it was on race slicks Vitamin J General Automotive 45 March 1st, 2007 11:46 PM
Race by Race Analysis - Statistics, Graphs, Data! pdanev Live For Speed 73 December 18th, 2005 03:38 PM
13th of August Online Race *2nd Race-Test League* Jostyrostelli Live For Speed 18 August 13th, 2005 06:55 PM
6th of August Online Race *1st Race-Test League* Jostyrostelli Live For Speed 41 August 8th, 2005 03:21 AM
16th of July Online Race + Endurance Race!! Jostyrostelli Live For Speed 59 July 24th, 2005 12:41 AM

All times are GMT. The time now is 08:48 PM.
All content © FinalGear.com unless stated otherwise.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Page generated in 0.17652 seconds with 19 queries