![]() | |
| |||||||
| Register | iSpy | Wiki | All Albums | gXboxLive | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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:
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. |
![]() |
| | LinkBack | Thread Tools | Search this Thread |
| | #21 |
| Not the Browser | 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 |
| | |
| | #22 |
| Not the Browser | Updated the GUI a bit and fixed some bugs.
Click the image for fullscreen. Todo: Add the new South City (SO6) pth file,
__________________ LFS - Team Finalgear |
| | |
| | #23 |
| Not the Browser | Righ, I need some Math help , 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: ![]() 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 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 |
| | |
| | #24 | |
| Your Guide to TG/FG | Quote:
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? | |
| | |
| | #25 |
| 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? | |
| | |
| | #26 |
| Not the Browser | I've almost got it... kinda. Not sure why the lines are intersecting. ![]() Green line should be the DriveLeft and the blue line should be DriveRight. ![]() 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 ![]()
__________________ LFS - Team Finalgear |
| | |
| | #27 | ||
| Your Guide to TG/FG | Quote:
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:
| ||
| | |
| | #28 |
| Not the Browser | Its the angle of the node. Each node has his own direction.
__________________ LFS - Team Finalgear |
| | |
| | #29 | |
| Your Guide to TG/FG | Quote:
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)
__________________ ![]() ![]() Top Gear Episode Guide (Excel) | Top Gear Episode Guide (HTML) | Top Gear Classic Episode Guide (HTML) Other Top Gear Guides | Fifth Gear Guides | Clarkson's TV/Video List | Tiff Needell's TV/Video List Last edited by ESPNSTI; December 17th, 2007 at 09:50 PM.. | |
| | |
| | #30 |
| Not the Browser | 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 |
| | |
| | #31 |
| Not the Browser | The beta version, LFSForum post. Some feedback would be nice ![]() 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 ![]()
__________________ LFS - Team Finalgear |
| | |
| | #32 |
| Already voted for you .
__________________ 2004 Pontiac Grand Prix GTP CompG 66,750 km - 41,477 miles | |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| ||||||
| Thread Tools | Search this Thread |
|
|
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 |