• gmod_game: Added render targets with sizes 256, 512, 1024 and..
    5 replies, posted
[B]Revision 779[/B] [INDENT]Added render targets with sizes 256, 512, 1024 and 2048 Updated changelog[/INDENT][B]Changed Files:[/B] [LIST] [*][URL="https://facepunch.svn.beanstalkapp.com/gmodgame/trunk/changelog.txt"]trunk/changelog.txt[/URL] [/LIST][B]Added Files:[/B] [LIST] [*][URL="https://facepunch.svn.beanstalkapp.com/gmodgame/trunk/settings/render_targets/RenderTarget1024.txt"]trunk/settings/render_targets/RenderTarget1024.txt[/URL] [*][URL="https://facepunch.svn.beanstalkapp.com/gmodgame/trunk/settings/render_targets/RenderTarget2048.txt"]trunk/settings/render_targets/RenderTarget2048.txt[/URL] [*][URL="https://facepunch.svn.beanstalkapp.com/gmodgame/trunk/settings/render_targets/RenderTarget256.txt"]trunk/settings/render_targets/RenderTarget256.txt[/URL] [*][URL="https://facepunch.svn.beanstalkapp.com/gmodgame/trunk/settings/render_targets/RenderTarget512.txt"]trunk/settings/render_targets/RenderTarget512.txt[/URL] [/LIST] Committed By [B]Alexander Overvoorde[/B]
Thank you! :h:
Yes!
I am still wondering what kind of person has a resolution that is 2048 in both X and Y
[QUOTE=ColdFusion;27465108]I am still wondering what kind of person has a resolution that is 2048 in both X and Y[/QUOTE] It's more that you have to have texture resolutions that are powers of 2. If you need to use something one pixel over 1024x1024, you need to use a 2048x2048 texture.
Too bad that garry clamps the values in the render target files. [QUOTE=blackops7799;27415563]Anyway, those render targets aren't going to work. Garry clamps the values to 1024x1024 on a 4:3 screen ratio and 1024x512 on anything higher, or so it seems..[/QUOTE] Just use GetActualWidth() and GetActualHeight() on the render target and you will see. So the 2048x2048 will just be another 1024x1024 or 1024x512.
Sorry, you need to Log In to post a reply to this thread.