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 ?
Crash using Burning mode
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
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
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
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.
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.
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
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
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
I happened to run into this one when attempting to test the enormous testcase shown here.
Without a testcase or a debug stack it is difficult to tell.
Travis
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;
}
Travis
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
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.
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.
-
- Posts: 66
- Joined: Wed Oct 04, 2006 2:07 pm