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

This subforum contains all the issues which we already resolved.
Post Reply
Creidhne
Inserter
Inserter
Posts: 28
Joined: Mon Jun 10, 2019 9:43 am
Contact:

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

Post 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
Attachments
factorio-current.log
(4.71 KiB) Downloaded 100 times

Bilka
Factorio Staff
Factorio Staff
Posts: 3129
Joined: Sat Aug 13, 2016 9:20 am
Contact:

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

Post by Bilka »

Thanks for the report, fixed for the next version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Resolved Problems and Bugs”