Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 14 15 16 17 18 Next »
Something fishy [BUG]
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Something fishy [BUG]
23-11-2014, 01:27 PM, (This post was last modified: 23-11-2014, 01:27 PM by LocInt.)
#1
LocInt Offline
Long gone
****
Posts: 489
Threads: 91
Joined: Aug 2014
Something fishy [BUG]
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.

тѕсм.Person8880 hovers the nerf bat over Tetryon damage
Website Find
Reply
23-11-2014, 03:49 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Something fishy [BUG]
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).
Find
Reply
23-11-2014, 03:56 PM,
#3
LocInt Offline
Long gone
****
Posts: 489
Threads: 91
Joined: Aug 2014
RE: Something fishy [BUG]
Great!

(23-11-2014, 03:49 PM)Person8880 Wrote: 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).

тѕсм.Person8880 hovers the nerf bat over Tetryon damage
Website Find
Reply
25-11-2014, 02:34 PM,
#4
LocInt Offline
Long gone
****
Posts: 489
Threads: 91
Joined: Aug 2014
RE: Something fishy [BUG]
(23-11-2014, 03:49 PM)Person8880 Wrote: 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).

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)})

тѕсм.Person8880 hovers the nerf bat over Tetryon damage
Website Find
Reply
25-11-2014, 07:12 PM,
#5
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Something fishy [BUG]
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:

{
render.vertex( 124, 9 ),
render.vertex( 154, 9 ),
render.vertex( 142, 21 ),
render.vertex( 112, 21 )
}
Haven't tested but should work. Basically order is important when drawing.
Find
Reply
26-11-2014, 09:55 AM, (This post was last modified: 26-11-2014, 10:54 AM by LocInt.)
#6
LocInt Offline
Long gone
****
Posts: 489
Threads: 91
Joined: Aug 2014
RE: Something fishy [BUG]
(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).

As for the problem, the vertices are in the wrong order. Go round the shape clockwise starting at the top left, so:

{
render.vertex( 124, 9 ),
render.vertex( 154, 9 ),
render.vertex( 142, 21 ),
render.vertex( 112, 21 )
}
Haven't tested but should work. Basically order is important when drawing.


Oh my order is totally messed up after the update? It was fine before.

тѕсм.Person8880 hovers the nerf bat over Tetryon damage
Website Find
Reply
26-11-2014, 07:02 PM,
#7
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Something fishy [BUG]
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.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread:
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.