• Render Targets on first join?
    1 replies, posted
Is there a way I can use a 512x512 render target on the client first time they join the server? If not is there a way of detecting whether or not they have the render target downloaded? I presume that I can do: [lua] resource.AddFile( 'settings/render_targets/Scope_RT.txt' ) [/lua] Then next time they restart GMod they will be able to use it normally. Alternatively can I [b][url=http://wiki.garrysmod.com/?title=File.Write]File.Write [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] into that folder? Probably not if the wiki is accurate. One person manually created the render target but their screen looks like this: [img]http://dl.dropbox.com/u/3787621/KillerKid.jpg[/img] Cheers. [highlight](User was banned for this post ("Wrong section" - mahalis))[/highlight] - Woah when did Newbie questions get renamed.. Sorry about that!
A long time ago garry changed it so render targets are only created when gmod starts up. This produced faster loading times but at the cost of not being able to make them on the fly. However there are a few stock ones from sandbox you can use (they're not 512x512 though) [b][url=http://wiki.garrysmod.com/?title=Render.GetBloomTex0]Render.GetBloomTex0 [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] [b][url=http://wiki.garrysmod.com/?title=Render.GetBloomTex1]Render.GetBloomTex1 [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] [b][url=http://wiki.garrysmod.com/?title=Render.GetMoBlurTex0]Render.GetMoBlurTex0 [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] [b][url=http://wiki.garrysmod.com/?title=Render.GetMorphTex1]Render.GetMorphTex1 [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] [b][url=http://wiki.garrysmod.com/?title=Render.GetSuperFPTex2]Render.GetSuperFPTex2 [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] [b][url=http://wiki.garrysmod.com/?title=Render.GetSuperFPTex]Render.GetSuperFPTex [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
Sorry, you need to Log In to post a reply to this thread.