You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please
read the bug posting guidelines first.
asparagusx
Posts: 81 Joined: Thu Oct 16, 2008 6:50 am
Post
by asparagusx » Mon Nov 03, 2008 1:26 pm
Using Irrlicht 1.4.2
Code as follows :
Code: Select all
IImage* image = Device.driver->createScreenShot();
if (image)
{
Device.driver->writeImageToFile(image, "c:\\images\\dump.jpeg");
Device.driver->writeImageToFile(image, "c:\\images\\dump.png");
Device.driver->writeImageToFile(image, "c:\\images\\dump.bmp");
Device.driver->writeImageToFile(image, "c:\\images\\dump.tga");
Device.driver->writeImageToFile(image, "c:\\images\\dump.jpg");
image->drop();
}
All the images are created/written correctly, EXCEPT the PNG file. The PNG file is created, but the contents is not correct. Was using DirectX 9 driver.
Anton
Acki
Posts: 3496 Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:
Post
by Acki » Mon Nov 03, 2008 2:13 pm
works for me as expected !!!
using Irrlicht v1.4.2 with DX9 and OGL...
compiled with MinGW/GCC...
rogerborg
Admin
Posts: 3590 Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:
Post
by rogerborg » Mon Nov 03, 2008 3:10 pm
I can see the problem (I get a black image) on 1.4.2 / DX9 / MSVC++ 8.0.
It works fine on the SVN trunk, so we should be able to sort it for 1.4.3. I'll look into it in detail later. Thanks for the report!
hybrid
Admin
Posts: 14143 Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:
Post
by hybrid » Mon Nov 03, 2008 9:00 pm
Yes, indeed. However, it doesn't seem to be just the alpha value, which was my first thought.
asparagusx
Posts: 81 Joined: Thu Oct 16, 2008 6:50 am
Post
by asparagusx » Tue Nov 04, 2008 1:12 pm
Just a point of clarification please - is the SVN trunk going to be 1.4.3 or will that be 1.5?
rogerborg
Admin
Posts: 3590 Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:
Post
by rogerborg » Tue Nov 04, 2008 1:55 pm
(As I understand it!) 1.5 will be taken from the SVN trunk. There's a 1.4 branch going as well, from which 1.4.3 will be cut. That's just getting bugfixes.