• Advertisement

Archived

This topic is now archived and is closed to further replies.

glTexCoord

This topic is 5831 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''m having some problems displaying a part of a large texture. When I use glTexCoordf(x, y), I get a black border around the texture when I use anything other than 1.0 or 0.5 for x and y. Does anyone know what''s going on? thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
If you use an value lower that 1.0, the texture will be scale and if you use a higher value, the texture is multiply

========================
Leyder Dylan
http://ibelgique.ifrance.com/Slug-Production/

Share this post


Link to post
Share on other sites
Hmm, that''s not really the problem....let me rephrase it; I''m trying to map a certain area of a texture (eg from (0, 0) to (0.25, 0.25)) to a quad, but glTexCoord leaves a one-pixel black border round the quad when I use it.

ajare

Share this post


Link to post
Share on other sites
not to sure what u mean, perhaps try glTexCoord2ub(...) ie perhaps its rounding errors

http://uk.geocities.com/sloppyturds/gotterdammerung.html

Share this post


Link to post
Share on other sites

  • Advertisement