UV problems
Blitz3D Forums/Blitz3D Programming/UV problems
| ||
I am trying to get my UV co-ords working. Below is a snippit of code I am using to generate a triangles on a mesh, however the texture appears to be sheared instead of square. -- / / -- v0=AddVertex(s_g1,(tempx*4)-((width/2)*4) ,plasma(tempx,tempy)*10 ,(tempy*4)-((width/2)*4) , 0,0) v1=AddVertex(s_g1,(tempx*4)-((width/2)*4) ,plasma(tempx,tempy+1)*10 ,(tempy*4)-((width/2)*4)+4 , 0,1) v2=AddVertex(s_g1,(tempx*4)-((width/2)*4)+4 ,plasma(tempx+1,tempy+1)*10 ,(tempy*4)-((width/2)*4)+4 , 1,0) v3=AddVertex(s_g1,(tempx*4)-((width/2)*4)+4 ,plasma(tempx+1,tempy)*10 ,(tempy*4)-((width/2)*4) , 1,1) AddTriangle(s_g1,v0,v1,v2) AddTriangle(s_g1,v0,v2,v3) Please help.. Sniff Sniff |
| ||
Ooops, sorted it, has the UV for v2 and v3 mixed up.. Duhh. |