How can i acces that the "Sprite" has the same size as the "Image" in 3 D.
It makes me crazy have tried "resize" and cant handle it. Pls help
thx
Graphics3D 800,600,16
cam = CreateCamera()
CameraRange cam,1,1000
MoveEntity cam,0,0,-10
sp = CreateSprite()
tex = CreateTexture(56,84)
SetBuffer TextureBuffer( tex )
; Clear texture buffer with background white color
ClsColor 255,255,255
Cls
EntityTexture sp,tex
SetBuffer BackBuffer()
;
Img=CreateImage(56,84)
SetBuffer ImageBuffer(img)
ClsColor 255,255,255
Cls
SetBuffer BackBuffer()
While KeyHit(1)<>True
If KeyDown( 205 )=True Then TurnEntity cam,0,-1,0
If KeyDown( 203 )=True Then TurnEntity cam,0,1,0
If KeyDown( 208 )=True Then MoveEntity cam,0,0,-0.1
If KeyDown( 200 )=True Then MoveEntity cam,0,0,0.1
UpdateWorld
WireFrame 0
RenderWorld
DrawImage img,MouseX(),MouseY() ; Draw the image!
Flip
Wend
End
It makes me crazy have tried "resize" and cant handle it. Pls help
thx
Graphics3D 800,600,16
cam = CreateCamera()
CameraRange cam,1,1000
MoveEntity cam,0,0,-10
sp = CreateSprite()
tex = CreateTexture(56,84)
SetBuffer TextureBuffer( tex )
; Clear texture buffer with background white color
ClsColor 255,255,255
Cls
EntityTexture sp,tex
SetBuffer BackBuffer()
;
Img=CreateImage(56,84)
SetBuffer ImageBuffer(img)
ClsColor 255,255,255
Cls
SetBuffer BackBuffer()
While KeyHit(1)<>True
If KeyDown( 205 )=True Then TurnEntity cam,0,-1,0
If KeyDown( 203 )=True Then TurnEntity cam,0,1,0
If KeyDown( 208 )=True Then MoveEntity cam,0,0,-0.1
If KeyDown( 200 )=True Then MoveEntity cam,0,0,0.1
UpdateWorld
WireFrame 0
RenderWorld
DrawImage img,MouseX(),MouseY() ; Draw the image!
Flip
Wend
End