Modified Track Path Editor + Tracks/Discussion

Sorry for the late reply, you should remove the "^<>" characters, i.e. the pythonenv.bat should look like this:

Code:
set PATH=C:\Python34;%PATH%
Hope this helps, if there are still errors, please post a screenshot of the output in the cmd window.

This got me one step further but then the same problems with pip install as @OdeFinn's occured. Finally I got them solved and can run your tool now. Thanks for the help mate! :cheers:
 
How do i use the Track Layout Creator?

[EDIT]: Actually Eran, could you or do you have a page where all of the stuff you and others made can be found. Also a list of all commands.
 
Last edited:
How do i use the Track Layout Creator?

[EDIT]: Actually Eran, could you or do you have a page where all of the stuff you and others made can be found. Also a list of all commands.

You need Python 3.6 or higher.
Start the file called Track Layout Creator [version number].py
  • Select the pen tool from the toolbar at the top of the window and click on the canvas to place a polygon point.
  • With the pen tool selected, click on a polygon line to insert a polygon point at the location.
  • When at least three points are placed, a track is drawn based on these points. The corners of the polygon are rounded to create the curves. You can increase or decrease the turn radius by right-clicking on a polygon point and dragging up or down.
  • Press <j> to join the track into a circuit (you can still add more points after this step). The application only supports circuits for now, so don't forget this step!
  • Select the selection tool (arrow) from the toolbar and click on a point to select it. Shift-click to add more points to the selection or to remove points from the selection. Click on a selected point and drag to move it.
  • With two or more points selected, click on the rotation tool or the scale tool to enter rotate mode or scale mode. Click and drag to rotate or scale.
  • With two or more points selected, click on one of the mirror tools (there is an x-axis and a y-axis mirror) to mirror the selected points.
  • Click on the icon with two arrows pointing left / right to flip the direction of the track.
  • Press <left arrow> key or <right arrow> key on the keyboard to move the start of the track to the next / previous polygon point.
  • Click on the die icon to generate a random polygon (this deletes any current points).
  • Click on the magnifying glasses or press <+> or <-> on the keyboard or use the mouse scrollwheel to zoom in / out.
  • Click on the camera icon to export a postscript file of the current canvas view. The file is saved as screen.ps and can be found in the folder named img. This file can then be converted to a .jpg or a .png online (I recommend this site: http://psviewer.org/ConvertPsToJpg.aspx)
  • Click on the scenery menu to switch to a different location (Eifel, Eifel Flat, Andalusia, Death Valley).
  • The help menu doesn't do anything currently...
  • In the edit menu you can generate a random polygon (same as clicking on the die icon).
  • In the file menu you can load and save a polygon. The save polygon option exports the polygon you have created to a .pgn file which can be loaded later on. The .pgn file doesn't currently save any information about the scenery, road width, banking, etc so you'll have to set those manually when loading a polygon.
  • In the file menu you can also export the track to the TED format, which is what you'll be uploading to the GT6 server. The Export postscript option is the same as the camera icon.
  • In the left panel you have a number of options.
    • Track data
      • Road width: Set the width to anywhere between 2 and 20 meters.
      • Max camber angle: Set the maximum camber angle of the corners. Camber will never be greater than this value.
      • Camber rate of change: Set the maximum camber transition in degrees per meter. The rate will never be greater than this value.
      • Road length factor scales the road items. You don't have to worry about this unless you want to do something very special. Just leave it at 1.0.
    • Display
      • Border: Display/hide the border around the track.
      • Labels: Display/hide labels.
      • Relative distance: Switch track distance labels between segment length / distance from first segment point.
      • Ruler: Display a "tape measure" along the track. This replaces the track distance labels.
      • Grid: Display / hide the canvas grid.
      • Corner count: Display / hide labels indicating the corners of the track.
      • Polygon: Display / hide the polygon.
      • Heightmap: Display / hide the contours of the height map (hiding may improve performance)
      • Heightmap fidelity: Set the elevation gap between contours. 5 = 1 meter, 4 = 2.5 meters, 3 = 5 meters, 2 = 10 meters, 1 = 25 meters, 0 = 50 meters.
      • Label font size: Set the font size of the labels.
      • Corner treshold: Sets the corner detection sensitivity, how sharp and long a turn must be to be counted as a corner. Increasing makes it more sensitive, decreasing makes it less sensitive.
      • Corner merge distance: Sets the maximum gap between consecutive corners for them to be counted as a single corner. A value of 30 means that if the straight between two turns is less than 30 meters long, the two turns will be counted as a single corner.
  • Easter egg: Press <p> to generate a grid of DTM-spec racecars. Press <spacebar> to start the race.
 
Track Layout Creator 1.5.1b

Changes:
  • Contour map lines are now rounded
  • Contour map values changed to absolute values (0 m = 0.0 in the heightmap file)
  • Graphics made more efficient (and faster)
  • Toolbar added above the canvas
  • New tools:
    • Pan (hand icon): click and drag to pan the view (note: the contour map is currently not updated when panning with the pan tool)
    • Selection (arrow icon): click on polygon points to select. Shift-click to add to/remove from selection.
    • Pen (pen icon): click to add a point. Click on a line to insert a point. Shift-click to delete a point.
    • All tools: Right-click on a point and drag to change corner radius.
    • All tools: Right-click elsewhere and drag to pan the view (panning in this way updates the contour map)
  • Control for road length factor added. Used to increase/decrease the length of all road segments (excluding start). Example: 100 m road * 1.2 road length factor = 120 m road; 50 m road * 1.2 road length factor = 60 m road.
  • Checkpoints cap set to 9, to avoid timing error and game crash.
I think there is an issue with Mac OS as i have a launch error with the new png files:
Code:
Loading heightmap /Users/xxxxxxx/PS3/GT6/Track Layout Creator 1.5.1b/maps/eifel_flat
(-166.0749969482422, 166.0749969482422) (0, 332.1499938964844)
Traceback (most recent call last):
  File "/Users/xxxxxx/PS3/GT6/Track Layout Creator 1.5.1b/Track Layout Creator 1.5.1.py", line 2265, in <module>
    tools.append(IconRadiobutton( toolBar, os.path.join(mypath, 'pan.png'),       variable=toolMode, value='pan') )
  File "/Users/xxxxxx/PS3/GT6/Track Layout Creator 1.5.1b/layoutClasses.py", line 253, in __init__
    self.icon = tk.PhotoImage(file=icon)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 3539, in __init__
    Image.__init__(self, 'photo', name, cnf, master, **kw)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 3495, in __init__
    self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't recognize data in image file "icons/tools/pan.png"
>>>
 
You need Python 3.6 or higher.
Start the file called Track Layout Creator [version number].py
  • Select the pen tool from the toolbar at the top of the window and click on the canvas to place a polygon point.
  • With the pen tool selected, click on a polygon line to insert a polygon point at the location.
  • When at least three points are placed, a track is drawn based on these points. The corners of the polygon are rounded to create the curves. You can increase or decrease the turn radius by right-clicking on a polygon point and dragging up or down.
  • Press <j> to join the track into a circuit (you can still add more points after this step). The application only supports circuits for now, so don't forget this step!
  • Select the selection tool (arrow) from the toolbar and click on a point to select it. Shift-click to add more points to the selection or to remove points from the selection. Click on a selected point and drag to move it.
  • With two or more points selected, click on the rotation tool or the scale tool to enter rotate mode or scale mode. Click and drag to rotate or scale.
  • With two or more points selected, click on one of the mirror tools (there is an x-axis and a y-axis mirror) to mirror the selected points.
  • Click on the icon with two arrows pointing left / right to flip the direction of the track.
  • Press <left arrow> key or <right arrow> key on the keyboard to move the start of the track to the next / previous polygon point.
  • Click on the die icon to generate a random polygon (this deletes any current points).
  • Click on the magnifying glasses or press <+> or <-> on the keyboard or use the mouse scrollwheel to zoom in / out.
  • Click on the camera icon to export a postscript file of the current canvas view. The file is saved as screen.ps and can be found in the folder named img. This file can then be converted to a .jpg or a .png online (I recommend this site: http://psviewer.org/ConvertPsToJpg.aspx)
  • Click on the scenery menu to switch to a different location (Eifel, Eifel Flat, Andalusia, Death Valley).
  • The help menu doesn't do anything currently...
  • In the edit menu you can generate a random polygon (same as clicking on the die icon).
  • In the file menu you can load and save a polygon. The save polygon option exports the polygon you have created to a .pgn file which can be loaded later on. The .pgn file doesn't currently save any information about the scenery, road width, banking, etc so you'll have to set those manually when loading a polygon.
  • In the file menu you can also export the track to the TED format, which is what you'll be uploading to the GT6 server. The Export postscript option is the same as the camera icon.
  • In the left panel you have a number of options.
    • Track data
      • Road width: Set the width to anywhere between 2 and 20 meters.
      • Max camber angle: Set the maximum camber angle of the corners. Camber will never be greater than this value.
      • Camber rate of change: Set the maximum camber transition in degrees per meter. The rate will never be greater than this value.
      • Road length factor scales the road items. You don't have to worry about this unless you want to do something very special. Just leave it at 1.0.
    • Display
      • Border: Display/hide the border around the track.
      • Labels: Display/hide labels.
      • Relative distance: Switch track distance labels between segment length / distance from first segment point.
      • Ruler: Display a "tape measure" along the track. This replaces the track distance labels.
      • Grid: Display / hide the canvas grid.
      • Corner count: Display / hide labels indicating the corners of the track.
      • Polygon: Display / hide the polygon.
      • Heightmap: Display / hide the contours of the height map (hiding may improve performance)
      • Heightmap fidelity: Set the elevation gap between contours. 5 = 1 meter, 4 = 2.5 meters, 3 = 5 meters, 2 = 10 meters, 1 = 25 meters, 0 = 50 meters.
      • Label font size: Set the font size of the labels.
      • Corner treshold: Sets the corner detection sensitivity, how sharp and long a turn must be to be counted as a corner. Increasing makes it more sensitive, decreasing makes it less sensitive.
      • Corner merge distance: Sets the maximum gap between consecutive corners for them to be counted as a single corner. A value of 30 means that if the straight between two turns is less than 30 meters long, the two turns will be counted as a single corner.
  • Easter egg: Press <p> to generate a grid of DTM-spec racecars. Press <spacebar> to start the race.

camera icon, die icon?? and scenery menu?? i'm missing those and other features mentioned. I'm using v1.2
 
@eran0004 Difficult update idea:

  • Select the pen tool from the toolbar at the top of the window and click on the canvas to place a polygon point.
  • With the pen tool selected, click on a polygon line to insert a polygon point at the location.
  • When at least three points are placed, a track is drawn based on these points. The corners of the polygon are rounded to create the curves. You can increase or decrease the turn radius by right-clicking on a polygon point and dragging up or down.
  • Press <j> to join the track into a circuit (you can still add more points after this step). The application only supports circuits for now, so don't forget this step!
  • Select the selection tool (arrow) from the toolbar and click on a point to select it. Shift-click to add more points to the selection or to remove points from the selection. Click on a selected point and drag to move it.
  • With two or more points selected, click on the rotation tool or the scale tool to enter rotate mode or scale mode. Click and drag to rotate or scale.
  • With two or more points selected, click on one of the mirror tools (there is an x-axis and a y-axis mirror) to mirror the selected points.
  • Click on the icon with two arrows pointing left / right to flip the direction of the track.
  • Press <left arrow> key or <right arrow> key on the keyboard to move the start of the track to the next / previous polygon point.
  • Click on the die icon to generate a random polygon (this deletes any current points).
  • Click on the magnifying glasses or press <+> or <-> on the keyboard or use the mouse scrollwheel to zoom in / out.
  • Click on the camera icon to export a postscript file of the current canvas view. The file is saved as screen.ps and can be found in the folder named img. This file can then be converted to a .jpg or a .png online (I recommend this site: http://psviewer.org/ConvertPsToJpg.aspx)
  • Click on the scenery menu to switch to a different location (Eifel, Eifel Flat, Andalusia, Death Valley).
  • The help menu doesn't do anything currently...
  • In the edit menu you can generate a random polygon (same as clicking on the die icon).
  • In the file menu you can load and save a polygon. The save polygon option exports the polygon you have created to a .pgn file which can be loaded later on. The .pgn file doesn't currently save any information about the scenery, road width, banking, etc so you'll have to set those manually when loading a polygon.
  • In the file menu you can also export the track to the TED format, which is what you'll be uploading to the GT6 server. The Export postscript option is the same as the camera icon.
  • In the left panel you have a number of options.
    • Track data
      • Road width: Set the width to anywhere between 2 and 20 meters.
      • Max camber angle: Set the maximum camber angle of the corners. Camber will never be greater than this value.
      • Camber rate of change: Set the maximum camber transition in degrees per meter. The rate will never be greater than this value.
      • Road length factor scales the road items. You don't have to worry about this unless you want to do something very special. Just leave it at 1.0.
    • Display
      • Border: Display/hide the border around the track.
      • Labels: Display/hide labels.
      • Relative distance: Switch track distance labels between segment length / distance from first segment point.
      • Ruler: Display a "tape measure" along the track. This replaces the track distance labels.
      • Grid: Display / hide the canvas grid.
      • Corner count: Display / hide labels indicating the corners of the track.
      • Polygon: Display / hide the polygon.
      • Heightmap: Display / hide the contours of the height map (hiding may improve performance)
      • Heightmap fidelity: Set the elevation gap between contours. 5 = 1 meter, 4 = 2.5 meters, 3 = 5 meters, 2 = 10 meters, 1 = 25 meters, 0 = 50 meters.
      • Label font size: Set the font size of the labels.
      • Corner treshold: Sets the corner detection sensitivity, how sharp and long a turn must be to be counted as a corner. Increasing makes it more sensitive, decreasing makes it less sensitive.
      • Corner merge distance: Sets the maximum gap between consecutive corners for them to be counted as a single corner. A value of 30 means that if the straight between two turns is less than 30 meters long, the two turns will be counted as a single corner.
  • Easter egg: Press <p> to generate a grid of DTM-spec racecars. Press <spacebar> to start the race.
 
I think there is an issue with Mac OS as i have a launch error with the new png files:
Code:
Loading heightmap /Users/xxxxxxx/PS3/GT6/Track Layout Creator 1.5.1b/maps/eifel_flat
(-166.0749969482422, 166.0749969482422) (0, 332.1499938964844)
Traceback (most recent call last):
  File "/Users/xxxxxx/PS3/GT6/Track Layout Creator 1.5.1b/Track Layout Creator 1.5.1.py", line 2265, in <module>
    tools.append(IconRadiobutton( toolBar, os.path.join(mypath, 'pan.png'),       variable=toolMode, value='pan') )
  File "/Users/xxxxxx/PS3/GT6/Track Layout Creator 1.5.1b/layoutClasses.py", line 253, in __init__
    self.icon = tk.PhotoImage(file=icon)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 3539, in __init__
    Image.__init__(self, 'photo', name, cnf, master, **kw)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 3495, in __init__
    self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't recognize data in image file "icons/tools/pan.png"
>>>

You need Tkinter 8.6 to display png files. For some reason it seems like Python for Mac uses 8.5.

I'll see if I can make the icons gif for Mac users.

Edit: I attached a version using gif icons instead of png. Try it and see if it works.

camera icon, die icon?? and scenery menu?? i'm missing those and other features mentioned. I'm using v1.2

The toolbar was added in 1.5.1b, you can download it from the file attached to this post.

Edit: A big benefit of the polygon system: It's super easy to create great serpent roads :D

serpent.png
 

Attachments

  • Track Layout Creator 1.5.1b.zip
    3.7 MB · Views: 37
Last edited:
You need Tkinter 8.6 to display png files. For some reason it seems like Python for Mac uses 8.5.

I'll see if I can make the icons gif for Mac users.

Edit: I attached a version using gif icons instead of png. Try it and see if it works.
It works 👍. I have just launched it to see and the icon are displayed.

Edit: A big benefit of the polygon system: It's super easy to create great serpent roads :D
That's really great !
Is it possible to embed an image in the tool, whatever the constraints are in terms of resolution/Zoom to prepare ? Otherwise is there anyway other than measurements to reproduce real world google map data (like in elevation editor).
 
I'm making progress with my project of recreating Potrero de los Funes Circuit. The TED Editor and the overhauled Elevation Editor are some neat tools making it so much easier - great work @eran0004 and @tarnheld!:bowdown: Btw thanks for mentioning me in the credits of the TED Editor, though I've no clue what exactly I've been contributing.:lol:

I'm right in the process of hex editing now and have a question on the ROAD Segments:
How much can the standard lengths (50 m or 100 m) be scaled to still be working? I'm guessing that in the range of 90 - 110 % no major problems should occur as even the original lengths in a ted file differ by some percents of the true values. I'm sure aware that overlap shouldd always be excluded.
 
I'm right in the process of hex editing now and have a question on the ROAD Segments:
How much can the standard lengths (50 m or 100 m) be scaled to still be working? I'm guessing that in the range of 90 - 110 % no major problems should occur as even the original lengths in a ted file differ by some percents of the true values. I'm sure aware that overlap shouldd always be excluded.

It's safe to scale them anywhere between 50% and 200%. That's the ranges I've been testing, and it's quite likely that they work fine outside of that range as well.

What happens is that meshes and textures are squeezed/stretched (at Eifel), so it may be visually awkward to change the size too much. I haven't done any tests on scaling the pit roads so I don't know how that works.
 
Track Layout Creator 1.5.1b
I have an error when dragging points on the canvas
Code:
Exception in Tkinter callback
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 1699, in __call__
    return self.func(*args)
  File "/Users/xxxxxx/PS3/GT6/Track Layout Creator 1.5.1b/Track Layout Creator 1.5.1.py", line 1676, in b1Motion
    trackChange()
  File "/Users/xxxxxx/PS3/GT6/Track Layout Creator 1.5.1b/Track Layout Creator 1.5.1.py", line 1552, in trackChange
    drawTrack(polygon)
  File "/Users/xxxxxx/PS3/GT6/Track Layout Creator 1.5.1b/Track Layout Creator 1.5.1.py", line 1032, in drawTrack
    draw_rounded()
  File "/Users/xxxxxx/PS3/GT6/Track Layout Creator 1.5.1b/Track Layout Creator 1.5.1.py", line 1236, in draw_rounded
    draw_label(index, labelDistance, tag=('label', 'track'))
  File "/Users/xxxxxx/PS3/GT6/Track Layout Creator 1.5.1b/Track Layout Creator 1.5.1.py", line 1341, in draw_label
    angle=degrees(textangle), tag=tag)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 2498, in create_text
    return self._create('text', args, kw)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 2474, in _create
    *(args + self._options(cnf, kw))))
_tkinter.TclError: unknown option "-angle"
EDIT : Same error when clicking on Border/Labels/Ruler check boxes
 
Last edited:
I have an error when dragging points on the canvas
Code:
Exception in Tkinter callback
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 1699, in __call__
    return self.func(*args)
  File "/Users/xxxxxx/PS3/GT6/Track Layout Creator 1.5.1b/Track Layout Creator 1.5.1.py", line 1676, in b1Motion
    trackChange()
  File "/Users/xxxxxx/PS3/GT6/Track Layout Creator 1.5.1b/Track Layout Creator 1.5.1.py", line 1552, in trackChange
    drawTrack(polygon)
  File "/Users/xxxxxx/PS3/GT6/Track Layout Creator 1.5.1b/Track Layout Creator 1.5.1.py", line 1032, in drawTrack
    draw_rounded()
  File "/Users/xxxxxx/PS3/GT6/Track Layout Creator 1.5.1b/Track Layout Creator 1.5.1.py", line 1236, in draw_rounded
    draw_label(index, labelDistance, tag=('label', 'track'))
  File "/Users/xxxxxx/PS3/GT6/Track Layout Creator 1.5.1b/Track Layout Creator 1.5.1.py", line 1341, in draw_label
    angle=degrees(textangle), tag=tag)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 2498, in create_text
    return self._create('text', args, kw)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 2474, in _create
    *(args + self._options(cnf, kw))))
_tkinter.TclError: unknown option "-angle"
EDIT : Same error when clicking on Border/Labels/Ruler check boxes

Looks like text angle isn't available in tkinter 8.5. I can make an exception handler and skip the angle. All text will be horizontal then, but you'll have to live with that I'm afraid.
 
Looks like text angle isn't available in tkinter 8.5. I can make an exception handler and skip the angle. All text will be horizontal then, but you'll have to live with that I'm afraid.
It should be fine as i have checked again Python for Mac:
you should only use IDLE or tkinter with an updated third-party Tcl/Tk 8.5 (not 8.6), like ActiveTcl 8.5 installed.
Tried it anyway (as it was 'should'). It does not work.
 
It should be fine as i have checked again Python for Mac:

Tried it anyway (as it was 'should'). It does not work.

8.5 doesn't support text angle, that is why it doesn't work for you. And 8.6 doesn't seem to be available for Mac.

Edit: Try this and see if it works. The labels should all be horizontal now.
 

Attachments

  • Track Layout Creator 1.5.1b.zip
    3.7 MB · Views: 24
Last edited:
8.5 doesn't support text angle, that is why it doesn't work for you. And 8.6 doesn't seem to be available for Mac.

Edit: Try this and see if it works. The labels should all be horizontal now.
Perfect ! 👍 The track is drawn now. Playing with polygons, it's quite intuitive.
 
Track Layout Creator 1.5.1b
I am working on a first circuit using "Track Layout Creator".
Starting with something simple with a flat track (i have attached the ted file).
Haute Saintonge Track.png

I have uploaded it using 2 methods :
- @tarnheld 's TED Editor
- @Razerman 's GT6Web_WFA extractor and uploader
I used second method in case of .ted file changes by TED Editor.
Both times the uploaded track was the same.

The are some artefacts on the generated .ted file
- Turn 5 : there is a glitch on the rail but also something strange on the ted
Haute Saintonge - Turn 5.png

When opening it with TED Editor, you see a hole on turn 5 (edit) segments with a 0 value :
Haute Saintonge - Turn 5 ted.png

- Turn 3 : there is a glitch on the rail. There is something wrong at the connection point between the end of the startline and the first segment.
Haute Saintonge - Turn 3.png

- Turns 4 and 9 : The driving line is disapearing or going under the track. Something should be going wrong.
Haute Saintonge - Turn 4.png

Haute Saintonge - Turn 9.png
 

Attachments

  • Haute Saintonge.ted.zip
    3 KB · Views: 18
I am working on a first circuit using "Track Layout Creator".
Starting with something simple with a flat track (i have attached the ted file).
View attachment 636486
I have uploaded it using 2 methods :
- @tarnheld 's TED Editor
- @Razerman 's GT6Web_WFA extractor and uploader
I used second method in case of .ted file changes by TED Editor.
Both times the uploaded track was the same.

The are some artefacts on the generated .ted file
- Turn 5 : there is a glitch on the rail but also something strange on the ted
View attachment 636495
When opening it with TED Editor, you see a hole on turn 5 (edit) segments with a 0 value :
View attachment 636496
- Turn 3 : there is a glitch on the rail. There is something wrong at the connection point between the end of the startline and the first segment.
View attachment 636497
- Turns 4 and 9 : The driving line is disapearing or going under the track. Something should be going wrong.
View attachment 636498
View attachment 636500

Turn on the labels and look for any 0 m segments. Typically, you shouldn't use more than two polygon points per turn. If you want to do some very specific corner shape it's better to create the basic shape using one or two polygon points, and then import the track in the Ted Editor for final adjustments.

Edit: Something like this.

RenderImage (3).png
 
Last edited:
Simpler drawing than the points reduction i am trying to achieve (less accurate as well).
I have a working version now without artefacts but i have to learn better how to use polygons.

There is a bunch a complexity hidden behind the generation so that it is easy to generate a lot of segments in the ted.
If i have correctly understood from a general point of view :
  • Each point is a pink dot for TED Editor so 2 segments should be generated for each polygon point.
  • In addition of that, some strait segments are added to connect turn segments if necessary.
Those straight segment can be 0 or close length, that generates some problems that can be solved under TED Editor with some cleaning.
Haute Saintonge - Turn 4 Design.png

Haute Saintonge - Turn 5 Design.png
 
Simpler drawing than the points reduction i am trying to achieve (less accurate as well).
I have a working version now without artefacts but i have to learn better how to use polygons.

There is a bunch a complexity hidden behind the generation so that it is easy to generate a lot of segments in the ted.
If i have correctly understood from a general point of view :
  • Each point is a pink dot for TED Editor so 2 segments should be generated for each polygon point.
  • In addition of that, some strait segments are added to connect turn segments if necessary.
Those straight segment can be 0 or close length, that generates some problems that can be solved under TED Editor with some cleaning.
View attachment 636509
View attachment 636510

It's actually very simple: straight lines are drawn between the points and then the corners are rounded off based on the radius you set for each corner. Corner radius is limited so that the corner can't occupy more than 50% of the distance to the nearest polygon points.
 
It's actually very simple: straight lines are drawn between the points and then the corners are rounded off based on the radius you set for each corner. Corner radius is limited so that the corner can't occupy more than 50% of the distance to the nearest polygon points.
OK.
I have simplified the number of points i need (i have done like you at corner 2 but i had again a 0 length segment)
I have understood the process anyway and i polish everything in TED Editor.

It would be fine if @tarnheld is still working on TED Editor to have 2 things more:
  1. Import the image from the Top-Left corner of the canvas instead of the middle 0-0
    You can only use one quarter of the map with the images.
    It would be easy then to offset the image anywhere on the map.

  2. The capability to translate the track (x,y) on the map.
    It would help to find a location that fits the terrain without redesigning all the track.
Everything is just great but those things would help a lot, may be it's lack of tools knowledge from myself.
 
I think next on the to-do list is to make some kind of decoration editor. Adding them manually on long tracks takes a lot of work! I'm working on a 15 km track, and just the rocks decorations alone are 98 items I have to add manually!
 
Hold on, i'm confused.
I've seen some pictures in the thread where people used background images of tracks to create
in the editor. Did i miss something?

Also i failed to launch any tool, even after i downloaded the newest Python build.
So kinda gave up for now.
 
Hold on, i'm confused.
I've seen some pictures in the thread where people used background images of tracks to create
in the editor. Did i miss something?

Also i failed to launch any tool, even after i downloaded the newest Python build.
So kinda gave up for now.
Some tips i use for embedding real world tracks.

You can import images in TED Editor using the menu:
TED Editor- ImportImg.png


Then i embed a scale in my image aligned on the left border (it will be aligned on a graduation)
TED Editor - Scale.png


Then you have to play with the scaling of your image Discard/Resize/Import up to the point where your scale is aligned on the grid (you can't zoom/unzoom in TED Editor)
it's not a hard job to scale your image, moreover the advantage is that when you are done, the image and track are always reloaded with perfect fit at once.

EDIT
The image is always loaded at 0,0 which the center of the canvas, so you can only use the lower right quarter of the canvas for a mapping.
 
Hold on, i'm confused.
I've seen some pictures in the thread where people used background images of tracks to create
in the editor. Did i miss something?

Also i failed to launch any tool, even after i downloaded the newest Python build.
So kinda gave up for now.

What happens when you try to launch?
 
That DOS-black background window appears for a second and closes down.
And nothing else.
I'm at my knees right about know, begging for something to work.
I think i'm going to wipe everything and download it all again.

What are the tools again that i need?
Can't find them here easily...
 
@tarnheld
There is an annoying bug in TED Editor (or embedded @eran0004 Elevation Editor).
It took me a while to find it as it was freezing my PS3 on each track download.

When you define a point to point track and apply an elevation profile, the last point is set the initial point (edit) when you save the .ted to disk.
Even if you ensure in the elevation editor window that the last point is set correctly.
This happens even when auto-rejoin is set to "None".
So, if your final point is quite high on the terrain, the PS3 is not to be able to compute the fall and freeze.
(not tested while the track is in RAM as i save each time first before upload).

A workaround is to edit the .ted each time you save it so as to set correctly the last point.
Don't forget or freeze.
 
Last edited:
Wow, this is way beyond my capabilities. The Ted Editor will not work for me as it cannot find 'numpy'.

Have just installed Python 3.4, and am still missing module 'numpy'
 
Last edited:

Latest Posts

Back