norbert Posted January 12, 2014 Share Posted January 12, 2014 Hello, Where can you change the graphics resolution in lua? And the render quality as antialias or lighting quality? for the final exe file? someone has an idea? greeting norbert Quote Link to comment Share on other sites More sharing options...
SarperSoher Posted January 12, 2014 Share Posted January 12, 2014 There is a default script file called App.lua in your project. You can change the resolution and window settings at where you create it. Looks like below; self.window = Window:Create(self.title, 0, 0, 640, 480, Window.Titlebar) You can set the AA on context creation self.context=Context:Create(self.window, 0) -- Second parameter determines the MSAA count. Check it out on the documents The other quality settings are changed through the editor options. Quote Link to comment Share on other sites More sharing options...
Admin Posted January 12, 2014 Share Posted January 12, 2014 The context parameter is the old way of setting AA, on the context itself. This is bad. The proper way to do it is with the Camera::SetMultisampleMode() command. This will make it so the camera renders to a gbuffer with multisampled textures, one of the new features in OpenGL 4. Context antialias could still be useful for 2D drawing but you generally do not need it for anything. Quote Link to comment Share on other sites More sharing options...
nate066 Posted January 12, 2014 Share Posted January 12, 2014 The context parameter is the old way of setting AA, on the context itself. This is bad. The proper way to do it is with the Camera::SetMultisampleMode() command. This will make it so the camera renders to a gbuffer with multisampled textures, one of the new features in OpenGL 4. Context antialias could still be useful for 2D drawing but you generally do not need it for anything. I have everything turned up to high in the editor and my shadows still have artifacts Quote Link to comment Share on other sites More sharing options...
norbert Posted January 12, 2014 Author Share Posted January 12, 2014 and if the player wants to make later settings? quality for the light? greeting norbert Quote Link to comment Share on other sites More sharing options...
SarperSoher Posted January 12, 2014 Share Posted January 12, 2014 The quality settings do not appear the same in the built game. I guess they are editor only for now. Or maybe a bug? I also agree they should be exposed through the API. 1 Quote Link to comment Share on other sites More sharing options...
Interference Posted January 14, 2014 Share Posted January 14, 2014 The context parameter is the old way of setting AA, on the context itself. This is bad. The proper way to do it is with the Camera::SetMultisampleMode() command. This will make it so the camera renders to a gbuffer with multisampled textures, one of the new features in OpenGL 4. Context antialias could still be useful for 2D drawing but you generally do not need it for anything. I can't seem to get this command to work in LUA at the moment. Am I doing it right? The section of code I'm using is below, but it causes a crash with "attempt to call method 'SetMultisampleMode' (a nil value)": --Create a camera self.camera = Camera:Create() --Set the camera's MSAA mode self.camera:SetMultisampleMode(4) EDIT: Woah, the "code" formatting option didn't like that. Quote Link to comment Share on other sites More sharing options...
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.