Hi. Thanks!
Had some problems (but worked these out).
Downloaded irrRenderer.7z, bin/RenderTest.exe crashes every time.
Opened project in VS Express 2012 (irrlicht (trunk) 1.9), made some modifications to code because it didnt compile:
CShaderLibrary.cpp
Code: Select all
line 24:
irr::c8 buff[fileVertex->getSize()];
to
int size = fileVertex->getSize();
irr::c8 *buff = new irr::c8 [size];
line 34:
irr::c8 buff2[filePixel->getSize()];
to
size = filePixel->getSize();
irr::c8 *buff2 = new irr::c8 [size];
and added return 0; to couple of methods, VS compiler required them.
Then debugged some more, it still didnt work.
In CRenderer.cpp, line 149:
Code: Select all
if(enable && !LightMgr->getPostProcessingActive())
{
irr::core::dimension2du dimension= Device->getVideoDriver()->getCurrentRenderTargetSize();
LightMgr->setPostProcessingTextures(Device->getVideoDriver()->addRenderTargetTexture(dimension, "Post-Processing-Tex1"),
Device->getVideoDriver()->addRenderTargetTexture(dimension, "Post-Processing-Tex2"));
LightMgr->setPostProcessingActive(true);
}
this was always false, so it doesnt create RTTs (so crashed).
I changed that line
Code: Select all
if(enable && !LightMgr->getPostProcessingActive())
to
if(enable)
and now it works with irr trunk (1.9).