Jump to content

Environment_Options


macklebee
 Share

Recommended Posts

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

  • Upvote 2

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

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.

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

  • 6 years later...

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

post-14-0-08802400-1488047562_thumb.jpg

  • Upvote 1

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...