macklebee Posted November 6, 2010 Posted November 6, 2010 File Name: Environment_Options File Submitter: macklebee File Submitted: 06 Nov 2010 File Updated: 15 May 2011 File Category: Lua Small script that just sets majority of the Editor's options that are not available in an inherent script or saved to the SBX file. It will allow you to set these options without needing to program them into your standalone program. It sets the following options and saves them to your SBX: Trilinear Filter Anistropic Filter Field of View Texture Quality Physics Quality Model Detail Shadow Quality Reflection Terrain Shadows Godrays SSAO AntiAliasing HDR Bloom DOF Enabled DOF Range Wireframe Statistics *Note some of these require framework to function Click here to download this file 2 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
Michael Betke Posted November 6, 2010 Posted November 6, 2010 tried it and thought i would be able to set the strenght of the options hehe. Like amount of godrays or bloom.... Quote Pure3d Visualizations Germany - digital essences AAA 3D Model Shop specialized on nature and environments
macklebee Posted November 6, 2010 Author Posted November 6, 2010 tried it and thought i would be able to set the strenght of the options hehe. Like amount of godrays or bloom.... ? Did I write something above that suggested I changed the normal options or shaders? No my shaders skills are far from that unfortunately. This just allows people to setup a scene in the editor how they want with the above options and then also have the same scene loaded into their game with the exact same effects without the need to program it into their game. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
Marcousik Posted February 24, 2017 Posted February 24, 2017 Hi there, The link is broken, is there something like this ? I'm searching for the script function to manage texture quality as for example setWaterQuality() change the water quality thx Quote
macklebee Posted February 24, 2017 Author Posted February 24, 2017 http://www.leadwerks.com/werkspace/topic/15206-texture-load/#entry102487 and http://www.leadwerks.com/werkspace/topic/14624-lua-editor-quality-setting-whats-it-in-code/#entry99571 1 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
Marcousik Posted February 25, 2017 Posted February 25, 2017 Great thx. Is this actually usable: Texture::SetQuality(int quality) ? Quote
macklebee Posted February 25, 2017 Author Posted February 25, 2017 The command is actually Texture::SetDetail(int quality) as shown on the second page of that first link: http://www.leadwerks.com/werkspace/topic/15206-texture-load/page__st__20#entry103547 and yes, it does work. example: window = Window:Create("texture detail example",0,0,800,600,512) context = Context:Create(window) world = World:Create() camera = Camera:Create() tex = Texture:Load("Materials/developer/bluegrid.tex") mips = tex:CountMipmaps() toggle = 1 while window:KeyDown(Key.Escape)==false do if window:Closed() then break end if window:KeyHit(Key.Space) then toggle = toggle + 1 if toggle > mips then toggle = 1 end Texture:SetDetail(toggle) end Time:Update() world:Update() world:Render() context:SetBlendMode(Blend.Alpha) context:DrawImage(tex,100,0,600,600) context:DrawText("Texture Detail: "..toggle,2,2) context:DrawText("Hit SPACE to change texture detail",2,22) context:SetBlendMode(Blend.Solid) context:Sync(true) end 1 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
reepblue Posted March 1, 2017 Posted March 1, 2017 Yeah, I missed that post, Thanks Mac! Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.