Vanishing Point Detection in VDrift - Printable Version
+- Forums (http://www.vdrift.net/Forum)
+-- Forum: Community (/forumdisplay.php?fid=3)
+--- Forum: Help (/forumdisplay.php?fid=5)
+--- Thread: Vanishing Point Detection in VDrift (/showthread.php?tid=2235)
Vanishing Point Detection in VDrift - andwor - 11-08-2016 04:57 AM
in the context of automated driving, we're experimenting with VDrift as an environment for creating test data. We have established a binding between VDrift an out middleware and currently are investigating to exttract vanishing points from VDrift recordings. This is challenging as, from the required perspective, on racing tracks - and in contrast to highways or cities - usually only a single lane marking is visible.
Do you know, whether there is something in the VDrift API or track information that could help computing vanishing points? Easiest could maybe to calculate something based on track data (which, however, would not take perspective into account).
P.S: If this is the wrong forum, please move the thread as necessary.
RE: Vanishing Point Detection in VDrift - NaN - 11-08-2016 01:05 PM
You could abuse the racing line as an additional visual cue. If you disable racing line calculation in track loader the default racing line will be the road center I think.
Car AI also had some debugging code that would draw road patch outlines ahead of the car. I am not sure if it is still working though.
The track itself is defined is a list of roadstrips. A strip is a list of (bezier) patches.
RE: Vanishing Point Detection in VDrift - andwor - 11-09-2016 04:11 AM
thanks for the hint. With the racing line, we probably can use established vanishing point detection methods. Although we had to do horrible things to the tracks' textures
Could you please point me to the track loader. I couldn't find anything in forum or wiki by this name.
RE: Vanishing Point Detection in VDrift - NaN - 11-11-2016 04:54 PM
With track loader I meant src/trackloader.cpp.
Look for Track::Loader::CreateRacingLines().