Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendertargets get cut off when drawn to HUD and game resolution is below RT dimensions #5880

Closed
ZH-Hristov opened this issue May 31, 2024 · 4 comments

Comments

@ZH-Hristov
Copy link

Bit of a crosspost from here:

thegrb93/StarfallEx#1629

There's some example pics and a Starfall code example in there, but the code should be pretty similar for normal GLua.

Starfall RTs are limited to 1024x1024 for memory saving and reusage purposes, since we can't destroy RTs in GLua.

@ZH-Hristov
Copy link
Author

After further testing, it seems this happens not only when RTs are drawn to the HUD.

@robotboy655
Copy link
Contributor

robotboy655 commented Jul 5, 2024

I couldn't be bothered to adapt your script to work in GMod, but the wiki page for render.PushRenderTarget has a clear indication to use cam.Start2D to draw to render targets larger than the screen, with an example.

@robotboy655 robotboy655 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 5, 2024
@ZH-Hristov
Copy link
Author

I couldn't be bothered to adapt your script to work in GMod, but the wiki page for render.PushRenderTarget has a clear indication to use cam.Start2D to draw to render targets larger than the screen, with an example.

The thing is, Starfall's PushRenderTarget equivalent does do that, yet this still happens.

https://github.com/thegrb93/StarfallEx/blob/184648c3b208eb2f706b4b43899ef6589640f22a/lua/starfall/libs_cl/render.lua#L1182

@robotboy655
Copy link
Contributor

Provide Lua code to reproduce the issue, if you believe there's still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants