Good you used B-splines to model your road, since simple Bezier curves don&#39;t have continuous curvature between segments, which results in all kinds of trouble.<div><br></div><div>It&#39;s really great to see many bright people like you and Quicksilver working on code like this. This is really something Haskell desperately needs IMHO :)</div>
<div><br></div><div><div><div><div class="gmail_quote">2009/3/26 Patai Gergely <span dir="ltr">&lt;<a href="mailto:patai_gergely@fastmail.fm">patai_gergely@fastmail.fm</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">&gt; Maxim Shemanarev, the author of the open source anti-grain 2D rendering<br>
&gt; engine, seems to have tackled the curve stroking (dealing with cusps etc)<br>
</div>&gt; pragmatically: &lt;<a href="http://www.antigrain.com/mcseem/index.html" target="_blank">http://www.antigrain.com/mcseem/index.html</a>&gt;<br>
&gt;   &lt;<a href="http://www.antigrain.com/mcseem/index.html" target="_blank">http://www.antigrain.com/mcseem/index.html</a>&gt;<br>
<div class="im">&gt; <a href="http://www.antigrain.com/research/adaptive_bezier/index.html#PAGE_ADAPTIVE_BEZIER" target="_blank">http://www.antigrain.com/research/adaptive_bezier/index.html#PAGE_ADAPTIVE_BEZIER</a><br>
<br>
</div>I did something similar in my car racing game (currently under<br>
development, naturally in Haskell ;), where the track is defined with<br>
B-splines. I keep subdividing those parts where the cosine of the angle<br>
between subsequent segments is below a certain limit. I also found that<br>
by adding well-chosen textures, this limit--hence the polygon count--can<br>
be decreased drastically without any perceivable loss in quality.<br>
<br>
Gergely<br>
<font color="#888888"><br>
--<br>
<a href="http://www.fastmail.fm" target="_blank">http://www.fastmail.fm</a> - Or how I learned to stop worrying and<br>
                          love email again<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Reactive mailing list<br>
<a href="mailto:Reactive@haskell.org">Reactive@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/reactive" target="_blank">http://www.haskell.org/mailman/listinfo/reactive</a><br>
</div></div></blockquote></div><br></div></div></div>