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 … 7 8 9 10 11 … 18 Next »
2 Ideas
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
2 Ideas
17-06-2017, 12:42 PM, (This post was last modified: 17-06-2017, 02:20 PM by 4N0NYM.)
#1
4N0NYM Offline
absens
****
Posts: 561
Threads: 211
Joined: Dec 2014
2 Ideas
First Idea :

Textured Circle / Filled Circle

Second Idea :

in Expression 2 there is "EGP:egpAngle(Index,Angle)" is there a way to add something similar to Starfall ? like for example

Circle = render.drawCircle(512,512,256,100)
render.rotate(Circle,Angle)
Find
Reply
18-06-2017, 06:12 AM, (This post was last modified: 18-06-2017, 06:28 AM by Red The Blue Color.)
#2
Red The Blue Color Offline
TSCM Super Donating Member
****
Posts: 422
Threads: 34
Joined: Feb 2015
RE: 2 Ideas
There is already a function for drawing a filled circle as seen below.
Code:
render.drawFilledCircle( x, y, rx, ry )

Regarding the rotation instead of being lazy asking for a function, make a poly and rotate it. (You can texture polys too.)

"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016

[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.
Find
Reply
18-06-2017, 10:27 PM,
#3
Kosmos Offline
GMod Admin
Posts: 180
Threads: 3
Joined: Dec 2013
RE: 2 Ideas
Side note: circles are drawn using polys internally, so you can probably cache the polygon altogether, making it faster to render.
As for textured circles, once again, use a polygon and supply u and v keys for the texture coordinates.
And finally, there's render.pushMatrix, but because GarryCode™ you can only use it in a screen or HUD, NOT an emitter.
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.