burninsvideo image
burninsvideo image
Burningsvideo loads half of my image and scales it,instead of loading the whole.The normal software renderer doesnt,but who uses that?
Could you provide a simple testcase to illustrate the problem, or perhaps screenshots of what you see with the D3D, OpenGL and Burning renderers?
By simple testscase, I mean the simplest testcase you can reasonably create that illustrates the problem and has no external dependences other than the Irrlicht library and the media files that come with the SDK.
Travis
By simple testscase, I mean the simplest testcase you can reasonably create that illustrates the problem and has no external dependences other than the Irrlicht library and the media files that come with the SDK.
Travis
why?cant you try it yourself?its obvious,look:
the code:
In the irrlicht software renderer its like this:
http://i556.photobucket.com/albums/ss4/ ... ftware.jpg
Thats how it should be,but in BURNINGSVIDEO,its scales and cropped:
http://i556.photobucket.com/albums/ss4/ ... rnings.jpg
And heres the png file used:
http://i556.photobucket.com/albums/ss4/gd_anon/logo.png
the code:
Code: Select all
//includes
#include <irrlicht.h>
#include <iostream>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
//to be able to use the "irrlicht.dll file"
#ifdef _IRR_WINDOWS_
#pragma comment(lib, "Irrlicht.lib")
#endif
//the usual main() function
int main()
{
//video settings
IrrlichtDevice *device = createDevice( video::EDT_BURNINGSVIDEO, dimension2d<s32>(1024, 768), 16,true, false, false, 0);
//title for window
device->setWindowCaption(L"irrlichtn");
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
guienv->addImage(driver->getTexture("../../media/irrlichtlogo2.png"),
core::position2d<s32>(10,10));
//THE IMAGE THAT FAILS TO BE DRAWN CORRECTLY
guienv->addImage(driver->getTexture("../../media/logo.png"),
core::position2d<s32>(1,200));
while(device->run())
{
driver->beginScene(true, true, SColor(255,100,101,140));
smgr->drawAll();
guienv->drawAll();
driver->endScene();
}
device->drop();
return 0;
}
http://i556.photobucket.com/albums/ss4/ ... ftware.jpg
Thats how it should be,but in BURNINGSVIDEO,its scales and cropped:
http://i556.photobucket.com/albums/ss4/ ... rnings.jpg
And heres the png file used:
http://i556.photobucket.com/albums/ss4/gd_anon/logo.png
Yeah, to be useful, a bug report needs sample code and the media (textures, models) being used.
Anyway, since you supplied your sample, people can now tell what is going on. Your problem is that your texture should have dimensions that are powers of 2, like 256x512, 128x128, etc. Some software and video cards don't have this restriction, but to be safe, always make your textures with dimensions that are powers of 2.
Anyway, since you supplied your sample, people can now tell what is going on. Your problem is that your texture should have dimensions that are powers of 2, like 256x512, 128x128, etc. Some software and video cards don't have this restriction, but to be safe, always make your textures with dimensions that are powers of 2.