Open GL scaling artifacts

All your problems with Audio, Video and Images.

Open GL scaling artifacts

Postby zaplitny » Mon Mar 09, 2009 11:38 am

I have a picture of size 512 x 1024 and draw it as a texture with GL_TRIANGLE_STRIP. When I zoom it with glScalef(zoom, zoom, 1.0f) artifacts begin starting from zoom = 2.5
1) When zoom between 2.5 and 12 there is artifact on triangles border as shown in attached picture
2) When zoom greater 12 texture is rotated on 180 degrees
Can anybody help?
P.S. I didn't test on real device. Can it be emulator's bug?
Attachments
artifact.JPG
artifact.JPG (6.64 KiB) Viewed 203 times
zaplitny
Freshman
Freshman
 
Posts: 4
Joined: Mon Mar 09, 2009 11:26 am

Top

Postby zaplitny » Mon Mar 09, 2009 7:36 pm

Also I noticed that the problem occurs when size of picture on emulator screen is greater than size of real picture.
zaplitny
Freshman
Freshman
 
Posts: 4
Joined: Mon Mar 09, 2009 11:26 am

Postby zaplitny » Tue Mar 10, 2009 11:31 am

Added simple code that reproduces the problem. Can anybody test it on emulator and on real device and say results?
Attachments
bug.zip
(12.06 KiB) Downloaded 48 times
bug.JPG
bug.JPG (15.44 KiB) Viewed 181 times
zaplitny
Freshman
Freshman
 
Posts: 4
Joined: Mon Mar 09, 2009 11:26 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 34 guests