[fixed] draw2DImage not resizing image

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.
Post Reply
Rob
Posts: 15
Joined: Wed Jan 28, 2009 4:24 pm

[fixed] draw2DImage not resizing image

Post by Rob »

Many tests and hours later, the only way I can resize an image loaded from a file to a texture of set size, is using IImage and copyToScalling, as the draw2DImage function always tiles smaller images across the larger texture.

I´ve passed the parameters to for the correct overloaded function:-

draw2DImage( pTex, core::rect32<s32>(0, 0, widthtrgt, heighttrgt), core::rect32<s32>(0, 0, widthsrc, heightsrc) )

but it still tiles smaller images across the larger texture... anyone know why?

I´m trying to find the most cycle/speed efficient way of loading a texture with an image from a file scaled to the textures pixel dimensions, and if any one know how to do this trick best, please let me know, as I´m stuck!! :)

PS Anyone know where to find the hardware raytrace examples source code? All the links I´ve searched have the source removed.
xyzzy
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: draw2DImage not resizing image (Irrlicht 1.7.2 - VS 2008

Post by hybrid »

Which driver are you using? This has been added to burningsvideo only very recently, in SVN/trunk
Post Reply