Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #554: tv2d immediate draw texture
Product:
TV3D SDK 6.5
Language:
Not Specified
Current State:
Closed
Resolution:
Fixed
Created On:
February 2nd, 2006
Last Modified:
April 9th, 2006
Reported By:
Arimuth
I would check...

When rendering to a position (x,y,x1,y1)

I believe you are doing a width calculation that is rendering x1 at x1-1.

I.E. 64x64 texture - you call draw texture (0,0,63,63) what it appears you are rendering 0,0,62,62 scaling the texture - and my guess is that 63 is turning into a width value instead of a destination pixel

Comments:

Posted by Brac on February 6th, 2006 at 3:49 PM
Yeah, i verify that one. In TVUIC# i have the same problem (i guess). Dunno how i got around it, but i think i just made rendersurfaces.size = texture.size+1
Posted by sybixsus on April 6th, 2006 at 1:32 AM
I was just about to report this too. Oddly, I did exactly the same thing. I tested by drawing a texture from 0,0 to 63,63 and it only draws to 62,62, which 63x63 and therefore I get my nice clean image scaled instead of drawn pixel-perfect. It's easy enough to add 1 to the X2 and Y2 coordinates in my code, but you never know what's going on under the hood, so I thought it might be something I should report.
Posted by SylvainTV on April 10th, 2006 at 12:00 AM
You're totally right, i never noticed that.
It is now fixed for Draw_Texture , Draw_Sprite and Draw_FilledBox