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 2 3 4 5 6 … 18 Next »
Stencil bug with render.drawFilledCircle()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Stencil bug with render.drawFilledCircle()
14-06-2020, 09:44 AM,
#4
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Stencil bug with render.drawFilledCircle()
Yes, this is a limitation with the way the circle is being rendered, as noted in the documentation.

If you want translucency, you'll need to render the translucent circle in the draw part of the stencil, rather than the stencil part.

If you're just trying to make the stencil part not draw anything visible, you can disable colour writing, e.g.
render.startStencil()

-- Use 255 alpha to ensure the circle is actually "drawn". Even though it won't end up visible, alpha is still used.
render.setColor(0,0,0,255)

-- Stop writing colour so this circle is not visible, but still gets applied as a stencil.
render.enableColor(false)

render.drawFilledCircle(862.3015,256.1455,64.5005,64.5005)

-- Re-enable colour and draw whatever else below.
render.enableColor(true)
render.cutOutStencil()

render.setColor(35,47,55)
render.drawFilledCircle(862.3015,256.1455,91.0105)

render.endStencil()
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Stencil bug with render.drawFilledCircle() - by The17thDoctor - 18-04-2020, 03:01 AM
RE: Stencil bug with render.drawFilledCircle() - by Person8880 - 18-04-2020, 10:29 AM
RE: Stencil bug with render.drawFilledCircle() - by The17thDoctor - 13-06-2020, 09:54 PM
RE: Stencil bug with render.drawFilledCircle() - by Person8880 - 14-06-2020, 09:44 AM
RE: Stencil bug with render.drawFilledCircle() - by The17thDoctor - 14-06-2020, 09:59 PM

  • View a Printable Version
Forum Jump:


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

Powered By MyBB, © 2002-2026 MyBB Group.