Search the Community
Showing results for tags 'resolution'.
This is a simple script that will let you get the desktops current resolution. It has not been tested in linux. It creates a hidden window, Maximizes it, and gets the window size. That's it. It returns a Vec2(). DO NOT USE IF THE PROGRAM IS ALREADY FULLSCREEN. It will cause you some annoyances. function GetDesktopResolution() --Vec2() -- get current desktop resolution ; Super quick and dirty method, works on windows dont know about linux local launchertestwindow = Window:Create(System.AppName,0,0,1024,768,Window.Tool) launchertestwindow:Maximize() local desktopres = Vec2
I noticed that just recently (4.4) the engine supports terrains as big as 8192x8192 if you Set exterrain=1 in the Leadwerks.cfg Awesome! Im just curious if this affects the terrain detail? Does it simply double the scale of the terrain and therefore reduce the detail by half, or does the resolution remain the same? Also, I read that the engine has not supported terrain shadows since about LE2.5, is this true? Not having terrain shadows is kind of a deal breaker for me, is there any chance this will return in the future? Thank you!
Hey all, I've just ran through all the forum posts about resolutions and everything and none of them seem to mention something that context:GetWidth and context:GetHeight don't do which is take into account the resolution at which the player is playing the game at. Here's an example of what I'm talking about: --Battery begin local battL =math.floor((context:GetWidth()))/2 - 775 local battY =math.floor((context:GetHeight()))/2 + 425 local battX =math.floor((context:GetWidth()))/2 - 800 local battery_percent = self.battery_level / self.battery_max_level --calculate the percentage of bat