You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.
Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.
Texture object obj,img
`UV-Map Drawing by BMacZero
`Try loading your own objects
MAKE OBJECT CUBE 1,2
HIDE OBJECT 1
x1 as integer : y1 as integer
x2 as integer : y2 as integer
x3 as integer : y3 as integer
draw as triangle
LOCK VERTEXDATA FOR LIMB 1,0
`Go through all the faces
FOR c=0 to GET VERTEXDATA INDEX COUNT()-1 STEP 3
`Store the UV positions for all three vertices in each face
temp = GET INDEXDATA(c)
draw.x1 = GET VERTEXDATA U(temp)*512 : draw.y1 = GET VERTEXDATA V(temp)*512
`Multiply by 512 because U/Vs are stored as proportions.
temp = GET INDEXDATA(c+1)
draw.x2 = GET VERTEXDATA U(temp)*512 : draw.y2 = GET VERTEXDATA V(temp)*512
temp = GET INDEXDATA(c+2)
draw.x3 = GET VERTEXDATA U(temp)*512 : draw.y3 = GET VERTEXDATA V(temp)*512
`Draw lines with them
GET IMAGE 1,1,1,512,512,1
PASTE IMAGE 1,0,0
AttributeError: 'NoneType' object has no attribute 'poseMatrix'
Login to post a reply