Ruki Posted October 16, 2012 Share Posted October 16, 2012 Hi, I've been loading the tunnels.sbx scene following the thread here: http://www.leadwerks...age__hl__vs2008 The scene loads fine, but if I activate HDR I get horrendous artifacts and glitches. I'm not sure where to even start looking. The scene renders fine without HDR activated. The gamelog has no errors //// DISABLE SetHDR(1); http://welkstore.com/images/hdr0.jpg SetHDR(1); http://welkstore.com/images/hdr1.jpg graphics card: ATI Radeon 7950 Quote Link to comment Share on other sites More sharing options...
ParaToxic Posted October 16, 2012 Share Posted October 16, 2012 But does it works fine in the Editor ?? When yes try to change some settings from the background ( the sky, the backgroundcolor etc. ) Quote Link to comment Share on other sites More sharing options...
Ruki Posted October 16, 2012 Author Share Posted October 16, 2012 Yes it renders fine in the editor (with HDR enabled), I will try and change some background settings thank you! Quote Link to comment Share on other sites More sharing options...
Ruki Posted October 16, 2012 Author Share Posted October 16, 2012 OK I think I *might* have fixed it. I changed quite a lot but I think I narrowed it down to when I was rendering text. I used SetBlend(BLEND_ALPHA); somewhere between // Render RenderFramework(); and // Send to screen Flip(0) ; I need to tidy up my code and do a few more tests to confirm this was the error, but looks like the fix is to reset back to SetBlend(BLEND_NONE); right before flipping. Probably says that in the docs somewhere and I missed it, idk! Quote Link to comment Share on other sites More sharing options...
Ruki Posted October 17, 2012 Author Share Posted October 17, 2012 I can confirm that this fixed my problems. Just call SetBlend( BLEND_NONE ) right before flip(0) Thank god for 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.