Crash using Burning mode

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
arfgh
Posts: 104
Joined: Sat Aug 26, 2006 6:15 am

Crash using Burning mode

Post 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 ?
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Please provide source code that demonstrates the problem.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
arfgh
Posts: 104
Joined: Sat Aug 26, 2006 6:15 am

Post 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.
arfgh
Posts: 104
Joined: Sat Aug 26, 2006 6:15 am

Post by arfgh »

well

someone can give some solution to get the burning to work using the background image ?
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

It would help your cause if you posted a compilable example with all necessary resources.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post 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
CuteAlien
Admin
Posts: 9720
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
arfgh
Posts: 104
Joined: Sat Aug 26, 2006 6:15 am

Post 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 ?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
burningreggae
Posts: 66
Joined: Wed Oct 04, 2006 2:07 pm

Post by burningreggae »

bug fixed in burningvideo 0.40
burningreggae
Post Reply