Re: [Plib-devel] texture repeating
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-08-25 02:20:15
|
"Curtis L. Olson" wrote: > In ssg is there a way to control whether a texture is set to "repeat" > or not? Sure - that's the second and third parameters of ssgSimpleState::setTexture(). > I want to slap a texture down on top of a specific area and have the > texture cover it completely ... texture coordinates of lower corner > are (0,0), upper corner are (1,1), etc. Yes - that's correct. > Now, what I'm finding is that if I have a texture that is all black > along one edge and all white along the other edge, I get some bleed > across to the opposite edge ... A classic problem - which setting non-repeating clamps will cure completely. > i.e. some of that white on one edge > scrolls around and shows up on the opposite edge and visa versa for > the black ... this makes it really ugly to piece together adjacent > textures because you always can see the joint because of this bleed > across. Joining two textures is a harder problem...for which I wrote a FAQ: http://web2.airmail.net/sjbaker1/tiling_textures.html > I'm assuming this is because the ssg textures are by default set to > repeat, right? Yes - by default they repeat because that's what most people want. > Do you have any strategies you can share for avoiding this problem? Check out the FAQ...I just re-read it and I think it covers everything. It's all rather disappointing for the purist though. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |