Garry's Mod

Garry's Mod

[E2] Stencil Core
17 Comments
1gabriel5 3 Oct, 2024 @ 7:12pm 
Im new to gmod coding, Can i have the code in the 2nd picture to modify it? @cryotheum
cryotheum  [author] 6 Sep, 2022 @ 12:59am 
Thank you for giving me a heads up!
Vurv 6 Sep, 2022 @ 12:27am 
This is a notice that some functionality this extension will likely be broken by wiremod/wire#2399 if you don't convert your ``e2function``s to return proper ``Vector`` and ``Angle`` userdata rather than tables of three numbers.

This is a copy pasted message, I cba to download the addon and check myself if it does contain use of these. Feel free to delete if this is non-applicable.
cryotheum  [author] 10 Jun, 2022 @ 12:23pm 
Thank you for the advice!
kilo 10 Jun, 2022 @ 6:38am 
Thank you for your response. For now i've followed you on github to watch any progress. Good luck on your other projects. A tip i like to give anyone with loads of projects is if you've hit a block. Step away don't think about it then come back to it later. Don't burn yourself out! Good luck and i look forward to seeing your work.
cryotheum  [author] 9 Jun, 2022 @ 5:52pm 
Part 2:
Additionally, the _STENCIL_WHITELIST_MATERIAL stencil would draw a material where the stencil passed instead of clearing the buffer with a color. This was cut because when I had made this addon I was still learning and didn't know how to validate a material's safety.

Do not expect the second version of the core to come out soon, as I have a ~4 projects queued up in front of it, and most of them are big projects.
cryotheum  [author] 9 Jun, 2022 @ 5:52pm 
Part 1:
Oops... that wasn't supposed to be in the example.
That type of stencil was fundamentally impossible to design in a performant method with how I wrote this core, so I gave up. Version 2 of this core has a much more robust and optimized architecture, and I plan to let players use something similar to what the _STENCIL_RENDER_TARGET stencils could do but with the control of convars to prevent abuse.

If you're wondering what it did, originally it used a render target of the current view with a further near clipping plane where the stencil passed. This was used to make windows through world geometry that still rendered the world. Basically, Lexicality's portable window addon.
kilo 8 Jun, 2022 @ 8:02am 
How do i use: _STENCIL_RENDER_TARGET ?
It is mentioned in a comment in the example but there is no enum?
The Big Jewbowski 27 Oct, 2021 @ 11:11am 
Understandable. My server staff have been begging me to add it. If you're also interested in doing some side development for a sandbox server, let me know our other dev (you might know him) got hit with school.
cryotheum  [author] 27 Oct, 2021 @ 4:06am 
It's because I made this addon unlisted.
You don't want this in your addon collection, trust me. It's broken due to neglect. It doesn't cause script errors but it's bad enough that I am making a rewrite. The rewrite I'm making should be a lot easier for players to use, and won't have the bugs this one does. But in case you still REALLY want this in your collection, I'll make it publicly visible.
The Big Jewbowski 26 Oct, 2021 @ 5:20pm 
Trying to add this to my server collection, doesn't allow me. Other than downloading it directly into my servers files, is there a way to add this to my other collections?
cryotheum  [author] 11 Apr, 2020 @ 6:06pm 
It's an extension for Expression 2, if you need an example script, look in the discussions tab.
76561198859040341 11 Apr, 2020 @ 4:09am 
how do i use this?
cryotheum  [author] 5 Mar, 2020 @ 2:25pm 
No
Sanders 5 Mar, 2020 @ 1:01pm 
can i use to make mirror? if so how then?>
Unitologist 4 Nov, 2019 @ 9:40pm 
hot ngl
Blue Lλmbda 31 Oct, 2019 @ 12:14pm 
zazaaaa