I searched the forum here and didn’t find anything on this, so any help would be appreciated.
Thanks again
I searched the forum here and didn’t find anything on this, so any help would be appreciated.
Thanks again
Either change the uv coordinates, or use the texture matrix to scale the texture.
Unfortunately I don’t have a clue what either of those is refering to…if explaining would entail writing a novel, don’t worry about it If it would be relatively short, I would certainly appreciate it.
You’ll have specified texture coordinates when you draw a regular textured poly already, which basically describe how the texture is applied. Once a texture is loaded its texture coords are in the range of 0 to 1 (regardless of the actual pixel width and height). (0,0) will get you the origin of the texture (typically top left or bottom left depending on how you load your textures) and (1,1) will be the opposite corner.
So to draw a single quad with the texture on it you’ll have use coords (0,0) (1,0), (0,1) and (1,1). Fractional coords allow you to use just a subsection of the texture, values over 1 make the texture repeat (so coords as before with 2 instead of 1 will tile twice). Negative coords will let you mirror a texture.
The actual commands you’re looking for are glTexCoord* and glTexturePointer depending on how you’re drawing things.
hmm. perhaps I should add this to the wiki…
That was quite clear Orangy, thank you
What is the ‘wiki’ anyway? Some sort of tutorial? If so, where might I find it?
Wiki is a convoluted piece of software that allows users to add content at will. It is supposed to aid in organizing information for specific topics, but ends up becoming a pain to navigate and maintain. I’ve never understood why the WIKIs have become so popular in the OS community. Maybe it inherents from the traditional unix hacker mentality of self-inflicted pain (in the vein of command line compilation and man pages).
For the JGO Wiki, scroll up to the top of this page and look at the blue menu bar. Click the link that reads ‘Wiki’.