I use a sprite and it's ok... but I can't see the text print in 2D. Can I display it? How?
Graphics3D 600,400,32
SetBuffer BackBuffer()
Local cam = CreateCamera() : PositionEntity cam,0,0,0 : CameraClsColor cam,100,100,100
Local sphere = CreateSphere() : PositionEntity sphere,0,0,10 : EntityColor sphere,0,100,100
Local a#
Local x#
Local y#
glow=CreateSprite()
tex=CreateTexture(64,64,48+2+512)
SetBuffer TextureBuffer(tex)
For i=1 To 64
Color i*3,i*3,i*4
Oval i/2,i/2,64-i,64-i,1
Next
EntityTexture glow,tex
EntityBlend glow,3
EntityAlpha glow,0.97
PositionEntity glow,0,0,10
SpriteViewMode glow,3
ScaleSprite glow,2,2
While Not KeyDown(1)
y = 0
If KeyDown(200) Then y = y - .3
If KeyDown(208) Then y = y + .3
If KeyDown(203) Then x = x + 1
If KeyDown(205) Then x = x - 1
If KeyDown(16) Then a = a + .5
If KeyDown(30) Then a = a - .5
MoveEntity cam,0,0,y
RotateEntity cam,x,a,0
UpdateWorld()
RenderWorld()
Text 0,0,"OK" <=== The Text that I can't see.
Flip
Wend
|