draw2DImage: Image not rendered correctly

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Guest

draw2DImage: Image not rendered correctly

Post by Guest »

Hi

I have a problem with draw2DImage (gui->addImage):

If I create a device (window mode, dx8) with the dimensions of 640x480 and draw a Texture\Image with the same size, then the image does not appear correctly.

Only the software device does render it correctly, why do DX and OpenGL not?
Is it possible to render the image correctly with the hardware devices? (pixel per pixel)

The goal of it is to create a splash screen for my game.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

This is a bug, I think version 0.4.2 fixes this, try it out.
If it doesn't, you could change the resolution of your texture to a power of two size.
eax
Posts: 9
Joined: Sun Dec 14, 2003 12:49 pm
Location: Switzerland::Bern

Post by eax »

I'm allready using version 0.4.2. It works fine with a power of two resolution.

thx
Visit Project|Aqua Homepage
rt
Posts: 150
Joined: Sun Nov 30, 2003 6:54 am
Location: canada
Contact:

stretch

Post by rt »

niko wrote:This is a bug, I think version 0.4.2 fixes this, try it out.
If it doesn't, you could change the resolution of your texture to a power of two size.
does that mean it is not possible to display a texture onscreen that is not a power of 2? is there any other way to scale or stretch a texture other than StretchTextureFast() (http://irrlicht.sourceforge.net/phpBB2/ ... .php?t=633)?
Post Reply