
06-01-2009, 07:58 PM
|
Newcomer
|
|
Join Date: Jun 2009
Location: Brighton, England
Posts: 13
|
|
Hi, err it maybe late to reply now but what the hell.....
Hopefully I'll explain it correctly:
If the shape is like a simple square and the verticle numbers are:
1-------2
| |
| |
4-------3
and the UV(more like X and Y) mappings are as follows:
1=0,0
2=1,0
3=1,1
4=0,1
to rotate the texture around move the UV values from 1 to 2, 2 to 3, 3 to 4 and 4 to 1 to move it 90 degrees clockwise.
Hopefully the next part makes sense?, or you get the idea.
If you want to rotate it by 45 degrees, the mapping has to overlap the borders. The following are guessed values.
1=0.5 ,-0.25
2=1.25 ,0.5
3=0.5 ,1.25
4=-0.25 ,0.5
On the edges where it appears the bitmap will not show. It should wrap around.
|
|