I think 0.375 was the magic number
this
and this
Funny, in DX9 the magic number was assumed 0.5 iirc (it seems to have worked fine for me in my 2D-drawing DX9 software)
NPOT reliable?
Quote:Original post by zedz
u shouldnt be using int types eg
glTexCoord2i( 0,1 ); use 2f(0,1);
for one thing I believe u will fall off the fast path.
also theres perhaps rounding errors have a look at opnegl.org in the faq I believe theres info there on how to set up 1:1 mapping
I was going to suggest that to, but I give up on telling people just to use floats for all their GL code...
Well, I don't believe it, but glTranslatef( 0.375f, 0.375f, 0.375f ); worked!
I was previously using glTranslatef( 0.5f, 0.5f, 0.5f ), so I did not think there was anything wrong with it.
And why a powers2 padded texture worked vs. using a non-padded NPOT texture, I have absolutely no idea.
Thanks!
I was previously using glTranslatef( 0.5f, 0.5f, 0.5f ), so I did not think there was anything wrong with it.
And why a powers2 padded texture worked vs. using a non-padded NPOT texture, I have absolutely no idea.
Thanks!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement