Search found 4 matches

by smaudet
Fri May 08, 2020 9:39 pm
Forum: Modding help
Topic: [0.17.x] LuaRendering:draw_polygon vertices order
Replies: 9
Views: 3507

Re: [0.17.x] LuaRendering:draw_polygon vertices order

Woo, got it working, thanks for the clarification. Maybe someday I'll cleanup my render pipeline and post on here:

Checkbox

Code:


local game_surface = game.surfaces[1]
local player = game.player

local secs = 20 * 60

local square = {
{target={9.4648438, 0}},
{target={1.9570312, 1.003906 ...
by smaudet
Fri May 01, 2020 5:20 pm
Forum: Modding help
Topic: [0.17.x] LuaRendering:draw_polygon vertices order
Replies: 9
Views: 3507

Re: [0.17.x] LuaRendering:draw_polygon vertices order

Thanks for the clarification! I'll try to use degenerate triangles, I knew about them but was not sure if the API supported them.

I think the parameter might be nice, my tessellation was a triangle list I suppose, to turn it into a proper triangle strip sounds entertaining however it may be a bit ...
by smaudet
Fri May 01, 2020 5:23 am
Forum: Modding help
Topic: [0.17.x] LuaRendering:draw_polygon vertices order
Replies: 9
Views: 3507

Re: [0.17.x] LuaRendering:draw_polygon vertices order

I found some issues with my vertex generation code but unless anyone can see anything else I think this is the best the API is capable of (on 0.17 at least). The "Triangle Strips" page linked to is...sparse, to say the least, on details of implementation (how are triangles found? does it care about ...
by smaudet
Thu Apr 30, 2020 10:27 pm
Forum: Modding help
Topic: [0.17.x] LuaRendering:draw_polygon vertices order
Replies: 9
Views: 3507

Re: [0.17.x] LuaRendering:draw_polygon vertices order

It would be nice if this API were fixed, I'd love to have SVG imports in the game, but...


local game_surface = game.surfaces[1]
local player = game.player
local shape = {
{target={9.46484375, 0}},
{target={1.003906011581421, 0.953125}},
{target={1.95703125, 1.003906011581421}},
{target={0, 8 ...

Go to advanced search