05-07-2008, 08:35 PM,
|
|
alex25
Senior Member
   
|
Posts: 531
Threads: 42
Joined: Jun 2006
|
|
road tracing
while playing with yet another track conversion i ran across an interesting problem. the track itself is modeled as two sections. most of the time they are at the same bank angle and thus could be modeled as one but there are parts where the two sections have different bank angles and if i were to trace it as one section the traced road will be above (or below) the real road. this is a picture of the turn where this is most noticeable:
some of the problems i am having with having the sections traced separately:
you can clearly see two racing lines. i wish there was a way to combine them. if i were to have an ai car race along i am not sure what racing line it would be supposed to follow.
lap sequences don't work. i tried choosing 4 sequences, 2 on each road but it didn't help. but this problem is more general as if i were to choose one lap sequence at the starting grid and then go through the pit vdrift wouldn't think i completed the lap even though i did. maybe we should consider a more generic mechanism where we can extend the lap sequence past the traced road somehow.
anyway this is sort of academic since i don't have permission to release this particular track but the above problems are more general.
--alex--
|
|
05-07-2008, 10:03 PM,
|
|
rookie1
Member
  
|
Posts: 231
Threads: 32
Joined: Nov 2006
|
|
Each Bezier patch has 16 control points (a 4x4 grid). My understanding is that the track editor only allows you to select the 4 corner points. The rest are linearly interpolated using these 4 points. If the track editor has an option to allow a user to manually pick all the control points, it should solve your first problem.
|
|
05-10-2008, 09:43 PM,
|
|
alex25
Senior Member
   
|
Posts: 531
Threads: 42
Joined: Jun 2006
|
|
joevenzon Wrote:Could you trace whole whole road as one track instead of two by ignoring the centerline? That is, select the left side of the road and the right side of the road as you trace instead of using the centerline.
i could but in turns the two sides have different bank angles and the traced road would be above the real road (and not an accurate representation of the track at all).
--alex--
|
|
05-13-2008, 05:30 PM,
|
|
alex25
Senior Member
   
|
Posts: 531
Threads: 42
Joined: Jun 2006
|
|
joevenzon Wrote:Ah. Yeah, to deal with that we'd need to allow you to set more bezier control points in the track editor. how hard would it be to implement that?
--alex--
|
|
05-14-2008, 01:34 AM,
|
|
alex25
Senior Member
   
|
Posts: 531
Threads: 42
Joined: Jun 2006
|
|
thelusiv Wrote:If you're going to change it, might as well not limit it to 3 points for the road segment, but just be able to define the road segment as any set of points greater than one.
i agree with you here. use the left mouse button to select as many points as you want (up to a maximum if theres is an intrinsic limit) and then click on the right button to pick the last point and define the segment. 3 or more points would help in some cases but most of the time you would still use just two points.
--alex--
|
|
03-03-2009, 02:39 AM,
|
|
alex25
Senior Member
   
|
Posts: 531
Threads: 42
Joined: Jun 2006
|
|
joevenzon Wrote:Okay, I have initial experimental support for 4-vertex tracing in R75 of the track editor. can we have a 3-vertex tracing mode? most tracks have just one inflection point in the middle (just like the above track) so 3-vertex tracing makes sense for them. as for auto tracing, if it's doable i wouldn't mind but it's something i can live without.
--alex--
|
|
03-05-2009, 01:51 AM,
|
|
alex25
Senior Member
   
|
Posts: 531
Threads: 42
Joined: Jun 2006
|
|
joevenzon Wrote:The 3-vert mode is in R76. Auto-tracing for 2, 3, and 4-vert modes is supported. Let me know how it works; I haven't tested it very thoroughly.... seems to work but the new roads.txt is almost identical to the old one (i just updated ring2007). puzzled...
--alex--
|
|
03-05-2009, 09:09 PM,
|
|
joevenzon
Administrator
      
|
Posts: 2,679
Threads: 52
Joined: Jun 2005
|
|
I had a look at the new roads.trk file and it seems different in the way I would expect -- mainly that lines 2, 3, 6, 7, 10, 11, 14, 15 are the same (and their values are due to new third point you put in).
|
|
|