Garry's Mod

Garry's Mod

[E2] Stencil Core
17 条留言
1gabriel5 2024 年 10 月 3 日 下午 7:12 
Im new to gmod coding, Can i have the code in the 2nd picture to modify it? @cryotheum
cryotheum  [作者] 2022 年 9 月 6 日 上午 12:59 
Thank you for giving me a heads up!
Vurv 2022 年 9 月 6 日 上午 12:27 
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  [作者] 2022 年 6 月 10 日 下午 12:23 
Thank you for the advice!
kilo 2022 年 6 月 10 日 上午 6:38 
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  [作者] 2022 年 6 月 9 日 下午 5:52 
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  [作者] 2022 年 6 月 9 日 下午 5:52 
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 2022 年 6 月 8 日 上午 8:02 
How do i use: _STENCIL_RENDER_TARGET ?
It is mentioned in a comment in the example but there is no enum?
The Big Jewbowski 2021 年 10 月 27 日 上午 11:11 
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  [作者] 2021 年 10 月 27 日 上午 4:06 
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 2021 年 10 月 26 日 下午 5:20 
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  [作者] 2020 年 4 月 11 日 下午 6:06 
It's an extension for Expression 2, if you need an example script, look in the discussions tab.
76561198859040341 2020 年 4 月 11 日 上午 4:09 
how do i use this?
cryotheum  [作者] 2020 年 3 月 5 日 下午 2:25 
No
Sanders 2020 年 3 月 5 日 下午 1:01 
can i use to make mirror? if so how then?>
Valkyr 2019 年 11 月 4 日 下午 9:40 
hot ngl
Blue Lλmbda 2019 年 10 月 31 日 下午 12:14 
zazaaaa