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 … 6 7 8 9 10 … 18 Next »
No functions like render.SetScissorRect?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
No functions like render.SetScissorRect?
16-08-2017, 07:02 PM,
#1
Skeleton Offline
Cheating Donating Member ( ͡° ͜ʖ ͡°)
****
Posts: 199
Threads: 30
Joined: Nov 2014
No functions like render.SetScissorRect?
Hello.

I've been through the library functions and I can't find functions like render.SetScissorRect even if I can use stencil this function is very useful.

I may have missed it even if I looked two times but could it be implemented?

Thank you for reading this small thread.

[Image: giphy.gif]
Find
Reply
16-08-2017, 09:49 PM,
#2
Kosmos Offline
GMod Admin
Posts: 180
Threads: 3
Joined: Dec 2013
RE: No functions like render.SetScissorRect?
Person has recently fixed the stencil methods, you can easily use them.
Code:
render.startStencil() -- begin creating the stencil mask render.drawRect(0, 0, 256, 256) -- set the scissor rect (this is the top left corner of a lowres screen) render.drawStencil() -- begin using the stencil while rendering normally -- DRAW STUFF HERE render.endStencil() -- stops using the stencil buffer
I haven't used it since it was fixed yet, but if it works how I think it does (checked, it does) then what you do between startStencil and drawStencil will actually be drawn as well.
I strongly suggest using those instead, they are much more powerful. You can limit rendering to any arbitrary shape, perfect for a UI.
Find
Reply
16-08-2017, 10:29 PM,
#3
Skeleton Offline
Cheating Donating Member ( ͡° ͜ʖ ͡°)
****
Posts: 199
Threads: 30
Joined: Nov 2014
RE: No functions like render.SetScissorRect?
Ah, I see, thank you alot @Kosmos.

I thought stencils would be complicated as gmod ones but this looks similar to the function I was looking for and seems much easier than what I thought. Again thank you.

[Image: giphy.gif]
Find
Reply
17-08-2017, 01:26 AM,
#4
Skeleton Offline
Cheating Donating Member ( ͡° ͜ʖ ͡°)
****
Posts: 199
Threads: 30
Joined: Nov 2014
RE: No functions like render.SetScissorRect?
Well stencils seems to have some problems/bugs, Kosmos can provide more details.

So I'm still requesting this function.

[Image: giphy.gif]
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.