Has anybody successfully changed the 'z' in a frame's xyzuv[] array?
The following code just makes the image disappear when I change (what I think is) the Z pos.
p.s. I realise I can use different lists for different 'z' values to achieve the same result.
The following code just makes the image disappear when I change (what I think is) the Z pos.
SuperStrict Function tg_setz(image:TImage , z:Float,frame:Int=0) Local myframe:TD3D7ImageFrame=TD3D7ImageFrame(image.frame(frame) ) myframe.xyzuv[2]=z myframe.xyzuv[8]=z myframe.xyzuv[14]=z myframe.xyzuv[20]=z End Function Graphics 800,600 Local red:TImage=LoadImage("red.png") Local green:TImage=LoadImage("green.png") Local z1:Float While Not KeyHit(KEY_ESCAPE) If MouseHit(1) z1:+0.1 tg_setz(red,z1) EndIf If MouseHit(2) z1:-0.1 tg_setz(red,z1) EndIf Cls DrawImage RED,0,0 DrawImage GREEN,100,100 Flip Wend
p.s. I realise I can use different lists for different 'z' values to achieve the same result.