Hi Guys,
I'm putting an image in 2d at the top of a Irrlicht device window. Here is where I create the device:
video::E_DRIVER_TYPE driverType = video::EDT_DIRECT3D9;
device = createDevice(driverType, core::dimension2d<s32>(800, 600));
I'm using virtual IGUIImage* irr::gui::IGUIEnvironment::addImage method
Here is my code to add the image:
img2 = env->addImage(driver->getTexture("../images/logo.jpg"), core::position2d<int>(100,0));
This is a .jpg file, but I've also tried a .bmp file as the image. No difference.
Problem:
The image looks great in Paint Shop Pro 7 create as a 800 X 188 pixel drawing with 16 million colors.
When I load the same image with the above code onto the Irrlicht window, the large letters (72 pt) become jagged and the whole image doesn't look so good. It looks somewhat blocky with a low resolution.
Is the a # of colors problem? What could it be?
thanks
Kevin
2D Image rendering problem (addImage)
I think it's a dimension problem...
Use dimensions in power of 2 !!!
1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024,...
Use dimensions in power of 2 !!!
1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024,...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
A search on the forum would propably be even faster...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java