images....???

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

images....???

Post by Guest »

software device displays images at good quality, directX and openGL do not... Whats the problem with image quality with directX and openGL why hasn't anyone fixed it...?
Guest

Post by Guest »

It would help if you provided some screenshots, because I've never seen a picture quality problem with Irr's OpenGL rendering when I use it.
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

Post by Dances »

Make sure your image file's dimensions are power of two. Only software mode renders non power of two images properly.
Jeffy

yup

Post by Jeffy »

This is a problem and I have been waiting for the answer for some time now also, the one that said he has no problem. is lying or just an idiot, because it is there low quality blurred images in opengl and directx, but not in software device. im wondering what the hell the deal is when is it going to be fixed. my images are always powers of two but they are always blurred, what the hell...
area51
Posts: 338
Joined: Thu Mar 18, 2004 10:20 pm
Location: UK
Contact:

Post by area51 »

You will need to show screenshots and tell us the size of your images.

Believe me there is no noticable image degradation if you follow a couple basic steps.

For example, if your image is 800 x 600, it will look rubbish in DX9 or OGL because it's not to the power of 2 (it will look fine in SOFTWARE mode though)

Supply more information for people to be able to help you.
________
Weed Vaporizers
Last edited by area51 on Tue Feb 22, 2011 1:08 pm, edited 1 time in total.
Xico
Posts: 30
Joined: Sun Jun 05, 2005 5:08 pm
Location: Buenos Aires, Argentina
Contact:

Post by Xico »

Use this image sizes to avoid that problem:
1
2
4
8
16
32
64
128
256
512
1024
kingpk

solution

Post by kingpk »

i found a way to solve this problem, the images must have one of these resolution:

16x8
32x16
64x32
128x64
256x128
512x256
1024x512
2048x1024
...
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

Post by Dances »

Kingpk, your second value doesn't HAVE to be half of the first....

I wonder how many people will post the exact same answer...
kingpk

Post by kingpk »

dances, i tried every of these resolution and every one worked. look at this:
you start with 2x1 and go multiplying per 2... so we have: 2x1 4x2 8x4 16x8 32x16 64x32 and so...
Frobozz
Posts: 19
Joined: Wed Jul 13, 2005 6:38 pm

Re: yup

Post by Frobozz »

Jeffy wrote:This is a problem and I have been waiting for the answer for some time now also, the one that said he has no problem. is lying or just an idiot, because it is there low quality blurred images in opengl and directx, but not in software device. im wondering what the hell the deal is when is it going to be fixed. my images are always powers of two but they are always blurred, what the hell...
May I ask what video card you have? The reason I'm asking is that the software renderer is handled by the CPU and not by the video card. :wink:
disanti
Posts: 367
Joined: Sat Jan 17, 2004 1:36 am
Location: California, US
Contact:

Post by disanti »

Lol. You can use this too:
1x1
2x2
4x4
8x8
16x16
32x32
64x64
128x128
256x256
512x512
etc...

Works just as well... :wink:
________
Thinkmill
Last edited by disanti on Thu Feb 24, 2011 10:34 am, edited 1 time in total.
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

Post by Dances »

kingpk wrote:dances, i tried every of these resolution and every one worked. look at this:
you start with 2x1 and go multiplying per 2... so we have: 2x1 4x2 8x4 16x8 32x16 64x32 and so...
LOL KingPK I SEE what the pattern is, I know they all worked. What I'm saying is that 64x64 works as well as 64x32, and so would 32x64, as long as the two numbers are powers of two they need no relation to each other.
eXodus
Posts: 320
Joined: Tue Jan 04, 2005 10:07 am
Location: Canada
Contact:

Post by eXodus »

Your problem might also be related with mip mapping. This have been discussed before, as well as power of 2s.
Post Reply