I've wrapped a texture on to the tube, and it looks fine, but because the
texture's u coordinate is 0.0 at the start of my tube and 0.9 at the other
end, the join between these two points (where the tube end joins back up
with the tube start) repeats the entire texture, compressed into a tiny
space and back-to-front.
I'm sure I have read about an easy way of stopping the texture from doing
this, so that in this section the texture coordinates will range from 0.9 to
1.0, instead of 0.9 to 0.0. Have I imagined this? And if not, could someone
remind me what I need to do?
Many thanks,
--
(O)enone
d3dDevice->SetRenderState(D3DRS_WRAP0, D3DWRAPCOORD_0);
That'll specify that U coordinates are wrapped for texture stage 0.
--
Robert Dunlop
The X-Zone
http://www.directxzone.com/
Microsoft DirectX MVP
-------------
The opinions expressed in this message are my own personal views and do not
reflect the official views of the Microsoft Corporation.
The MVP program does not constitute employment or contractual obligation
with Microsoft.
Perfect -- many thanks for that.
--
(O)enone