Karou Posted March 20, 2015 Share Posted March 20, 2015 Hello together I'm having problems with calling camera->SetMultisampleMode on a leadwerks C++ project - the game just crashes. Here's what I've tried so far: - Creating the camera from C++ - Using the camera created by the map - Turning on and off different post-effects applied to the camera - Calling camera->SetMultisampleMode(16) - Crashes - Calling camera->SetMultisampleMode(8) - Crashes - Calling camera->SetMultisampleMode(4) - Does not crash! - Calling camera->SetMultisampleMode(32) - Crashes - Starting the executable from the editor - Starting the executable from visual studio - Starting the executable by simply double-clicking - Checking the documentation over and over again - Google - Asking on the Forums (this thread) - Removing all post processing effects - Calling camera->SetMultisampleMode(24) - Crashes Visual Studio throws me out at context->Sync(false) in App::Loop. The error reported is a read access violation at 0x0000003C and the exit code is 0xc000013a. The crashes really only occur when I set the multisample mode. The Camera is created normally via Camera::Create. After that I fetch two pivots from the loaded map and position the camera at one and have it look at the other, and then some other stuff: if (camera) { camera->Move(CamPivot->GetPosition()); camera->Point(CamDirectionPivot); camera->SetMultisampleMode(16); world->SetLightQuality(3); if (camera->AddPostEffect(AssetPath::getPostEffect("08_PP_bloom+godrays.lua")) == -1) { System::Print(">>>>>>>>>>> Unable to load BLOOM and GODRAY Shaders: " + AssetPath::getPostEffect("08_PP_bloom+godrays.lua")); }; if (camera->AddPostEffect(AssetPath::getPostEffect("99_pp_fxaa.shader")) == -1) { System::Print(">>>>>>>>>>> Unable to load FXAA Shaders: " + AssetPath::getPostEffect("99_pp_fxaa.shader")); }; if (camera->AddPostEffect(AssetPath::getPostEffect("ssao.lua")) == -1) { System::Print(">>>>>>>>>>> Unable to load SSAO Shaders: " + AssetPath::getPostEffect("ssao.lua")); }; } After that nothing happens, except for sound loading and calling SetMousePosition. Nothing great happens in App::Loop either - freelookmode is removed altogether. Am I doing something completely wrong here? Thanks in advance for any help! EDIT: Might be worth mentioning... Windows 7 Home 64 bit Installed Memory: 8,00 GB Processor: AMD FX 8320 Eight-Core Processor @ 3.5 GHz Graphics Adapter: 2 x AMD Radeon HD 6670, CrossfireX was disabled while the problem occurred Driver Versions as reported by Catalyst Control Center: - Driver Packaging Version: 13.251-131206a-166389C-ATI - Catalyst Version: 13.12 - Direct3D Version: 9.14.10.01001 - OpenGL Version: 6.14.10.12618 - Catalyst Control Center Version: 2013.1206.1603.28764 Quote Link to comment Share on other sites More sharing options...
shadmar Posted March 20, 2015 Share Posted March 20, 2015 What card are you running? Maybe your card doesn't support more than 4xMSAA? Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Karou Posted March 20, 2015 Author Share Posted March 20, 2015 Hey shadmar, I have already updated my previous post with the corresponding info, I couldn't find anything about limitations of MSAA on my graphics adapter though - it also seems to work perfectly fine on the editor too. Quote Link to comment Share on other sites More sharing options...
macklebee Posted March 20, 2015 Share Posted March 20, 2015 the specs on that card say it supports up to 24xMSAA... it might be worth removing all of the post effects and see if this still occurs. Quote 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 More sharing options...
Karou Posted March 20, 2015 Author Share Posted March 20, 2015 the specs on that card say it supports up to 24xMSAA... it might be worth removing all of the post effects and see if this still occurs. Hey macklebee, sadly, the problem still persists with all post processing effects disabled. In my desperation I have also attempted to use those exact 24xMSAA just now, but no luck with that At least it's not something super obvious I'm doing wrong 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.