Page 1 of 1

Crash using Burning mode

Posted: Sat Apr 19, 2008 2:30 pm
by arfgh
I tried to use the software rendering called Burning mode.
Works very good but when i try to show a background image on the scene the program crash. Is very curious because the other modes, DX8, DX9 and opengl and Software, don't crash with this.

can someone help to fix the problem ?

Posted: Sat Apr 19, 2008 2:58 pm
by rogerborg
Please provide source code that demonstrates the problem.

Posted: Sat Apr 19, 2008 10:33 pm
by arfgh
is how i told. I use irrlitch 1.3.1

i place an image on the scene background with device->getGUIEnvironment()->drawAll();

this is the thing.

while (device->run()) {
driver->beginScene (true, true, background);
device->getGUIEnvironment()->drawAll();
scene->drawAll();
text->setText(bla);
driver->endScene();
}

with all the ways, the image on the background is showed. Taht is dx8 dx9 opengl software. But using the Burning thing, the programs crash. Not crash if not put the image on the background.

Posted: Mon Apr 21, 2008 6:45 pm
by arfgh
well

someone can give some solution to get the burning to work using the background image ?

Posted: Mon Apr 21, 2008 7:47 pm
by rogerborg
It would help your cause if you posted a compilable example with all necessary resources.

Posted: Mon Apr 21, 2008 10:12 pm
by vitek
I happened to run into this one when attempting to test the enormous testcase shown here.

Code: Select all

#include <irrlicht.h>
#include <assert.h>
#pragma comment(lib, "Irrlicht.lib")

using namespace irr;

int main ()
{
  IrrlichtDevice* device = 
    createDevice(video::EDT_BURNINGSVIDEO, core::dimension2d<s32>(1024, 768)); 
  assert (device);

  video::IVideoDriver* driver = device->getVideoDriver(); 

  video::ITexture* texture = driver->getTexture ("../../media/003shot.jpg");
  assert (texture);

  while (device->run())
  {
    if (driver->beginScene(true, true, video::SColor(255, 0, 0, 0)))
    {
      const core::position2di destPos (0, 0);

      // fails because sourceRect is not correct wrt texture size
      const core::rect<s32> sourceRect (0, 256, 1024, 1024);

      driver->draw2DImage(texture, destPos, sourceRect);
      driver->endScene();
    }
  }

  return 0;
}
Without a testcase or a debug stack it is difficult to tell.

Travis

Posted: Mon Apr 21, 2008 10:21 pm
by CuteAlien
Can you try with Irrlicht 1.4? I know that in one release burning also crashed for me with all examples. That might have been 1.3.1.

Posted: Thu Apr 24, 2008 3:59 pm
by arfgh
no, i cant, because to change to 1.4 now i have to revise the whole code and the 1.3.1 works fine. Works fine all except this burning mode. Is a known bug on this mode for the 1.3.1 version ?

Posted: Thu Apr 24, 2008 4:27 pm
by hybrid
There are two changes filed for burningsvideo. But the one is a version change, which might mean that larger internal changes have been applied. Also, bitplane fixed another bug just recently.
If you really need it you might either debug it on your own, or check the changelogs of all parts of burningsvideo in order to backport them.

Posted: Wed Nov 26, 2008 2:32 am
by burningreggae
bug fixed in burningvideo 0.40