Page 1 of 1

[0.17.47] rendering.draw_line(): some lines disappear from screen depending on player position/zoom

Posted: Mon Jun 10, 2019 11:30 am
by Creidhne
What's happening:
When using rendering.draw_line to draw a set long & almost parallel lines, some lines aren't rendered on screen. Moving the character or zooming in/out may change which lines are displayed/hidden. Sometimes no lines are rendered at all.

Image
Expected behaviour:
(gif made with different line coordinates)

Image
Steps to reproduce:
  1. Create a new game
  2. Run the following in-game command:

    Code: Select all

    /c for i=1,100 do rendering.draw_line({from={i,0},to={1000+0.1*i,1000},color={g=1,a=1},width=1,surface="nauvis"}) end
  3. Walk on the right while changing the zoom level

Re: [0.17.47] rendering.draw_line(): some lines disappear from screen depending on player position/zoom

Posted: Mon Jun 10, 2019 2:09 pm
by Bilka
Thanks for the report, fixed for the next version.