Naive pass at segment rendering, partially working.