the edge of the image is not smooth

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
nixx
Posts: 22
Joined: Thu Jan 18, 2007 5:00 am
Location: Yogyakarta, Indonesia

the edge of the image is not smooth

Post by nixx »

I made my logo image using Corel Draw, and had it converted into BMP. This is my image in JPG.

Image

But when I load it to my application, it lost its smoothness. Please take a look at this picture below.

Image

I use the BMP version of this image. Even the JPG has better image.
What happened to the image? What I should I do t make it better?
I have no trouble running Irrlicht tutorial application, as well as softwares using Irrlicht.

I use this code

Code: Select all

nixxLogo = gameManager->getIrrlichtDevice()->getVideoDriver()->getTexture("resources/images/nixx.bmp");
gameManager->getIrrlichtDevice()->getVideoDriver()->makeColorKeyTexture(nixxLogo, core::position2d<s32>(0,0));

........

intro->getGameManager()->getIrrlichtDevice()->getVideoDriver()->draw2DImage(nixxLogo,
		pos,
		core::rect<s32> (0,0,400,143),
		0,
		video::SColor(255,255,255,255),
		true
		);
pos is a vector3df, nixxLogo is an ITexture.

Thanks, I'll appreciate the help.

ps: Never mind the production house, there is no such a company :D
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

Post by Dances »

Is the image size a power of 2? It needs to be to be clear.
nixx
Posts: 22
Joined: Thu Jan 18, 2007 5:00 am
Location: Yogyakarta, Indonesia

Post by nixx »

mmm, no. It's 400 x 143.
Is it necessary to have the size of the power of 2? hmm, I think it's just for image that will be used as mesh texture. Or not?
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

yes, it's necessary to have a size of power of two.
nixx
Posts: 22
Joined: Thu Jan 18, 2007 5:00 am
Location: Yogyakarta, Indonesia

Post by nixx »

OK, I will change all of my textures to the power of 2 size.
Thank you very much, I really appreciate it :)
Post Reply