VB Code:
  1. Option Explicit
  2. Private TZ As TrueVision8
  3. Private SS As Scene8, ii As Scene8
  4. Private TT As Mesh8, pp As Mesh8
  5. Private OY As Boolean, ll As Single
  6. Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
  7. If KeyCode = vbKeyEscape Then
  8. Unload Me
  9. Else
  10. End If
  11. End Sub
  12. Private Sub Form_Load()
  13. Me.Move (-Me.Width + Screen.Width) / 2, (-Me.Height + Screen.Height) / 2
  14. Set TZ = New TrueVision8
  15. TZ.Init3DWindowedMode Me.hWnd
  16. TZ.DisplayFPS = True
  17. Set SS = New Scene8
  18. Set TT = New Mesh8
  19. Set TT = SS.CreateMeshBuilder
  20.  
  21. TT.Create3DText "Prog_Tom", "Arial", "100", 0
  22. TT.EnableSphereMapping True
  23. TT.SetPosition 0, 0, 7
  24. Form1.Show
  25. OY = True
  26. oop
  27. End Sub
  28. Sub oop()
  29. Do
  30. DoEvents
  31. ll = ll + (TZ.TimeElapsed / 40)
  32. TT.SetRotation ll, ll, -ll
  33. TZ.Clear
  34. SS.RenderAllMeshes
  35. TZ.RenderToScreen
  36. Loop Until OY = False
  37. Set TZ = Nothing
  38. Set SS = Nothing
  39. Set TT = Nothing
  40. End
  41. End Sub
  42. Private Sub Form_Unload(Cancel As Integer)
  43. OY = False
  44. Set TZ = Nothing
  45. Set SS = Nothing
  46. Set TT = Nothing
  47. End
  48. End Sub
Is there any way to change the color of the 3d text?