![]() |
|
Something fishy [BUG] - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Starfall (https://teamscm.co.uk/forum-7.html) +--- Thread: Something fishy [BUG] (/thread-595.html) |
Something fishy [BUG] - LocInt - 23-11-2014 Something fishy is going on with starfall screens. Last night I tried to render chevrons and borders for my screen I couldn't. I thought maybe the issue is just one time only and then I tried rendering my screen again and had a friend looking at the screen as well but the issue remain. Link's dialing computer and my dialing computer both having this issue and we both use drawPoly to draw chevrons and polys on borders. The issue might be related to drawPoly function because I simply can not draw polys. RE: Something fishy [BUG] - Person8880 - 23-11-2014 You're missing required vertex data in the polygons. Starfall used to add this for you, now it doesn't because it made drawing polygons way slower. Make sure each vertex has an x, y, u and v component (even if u and v are just 0). RE: Something fishy [BUG] - LocInt - 23-11-2014 Great! (23-11-2014, 03:49 PM)Person8880 Wrote: You're missing required vertex data in the polygons. RE: Something fishy [BUG] - LocInt - 25-11-2014 (23-11-2014, 03:49 PM)Person8880 Wrote: You're missing required vertex data in the polygons. There is something wrong with this update of yours. Same values but "vertexed" the shapes are different. RenderLib.createPoly({RenderLib.vertex(112,21),RenderLib.vertex(124,9),RenderLib.vertex(154,9),RenderLib.vertex(142,21)}) RE: Something fishy [BUG] - Person8880 - 25-11-2014 All RenderLib.vertex is doing is making a table with x, y, u and v values (in your case u and v are 0 in all of them). As for the problem, the vertices are in the wrong order. Go round the shape clockwise starting at the top left, so:
Haven't tested but should work. Basically order is important when drawing.
RE: Something fishy [BUG] - LocInt - 26-11-2014 (25-11-2014, 07:12 PM)Person8880 Wrote: All RenderLib.vertex is doing is making a table with x, y, u and v values (in your case u and v are 0 in all of them). Oh my order is totally messed up after the update? It was fine before. RE: Something fishy [BUG] - Person8880 - 26-11-2014 There is nothing different. The only thing gone, is that it used to make sure your table didn't have gaps and each entry had x, y u and v in it. That's it. Compile poly literally just returns the table you put into it now. In fact, I just put the order I posted into a quick screen and sure enough, it draws just fine. You can't get around ordering, blame the way the engine/garry draws polygons. |