VB Code:
  1. Option Explicit
  2. Private TZ As TrueVision8
  3. Private tp As Mesh8
  4. Private ss As Scene8
  5. Private anew As Boolean, FPSVAL As Variant
  6. Private Sub Form_Load()
  7. Set TZ = New TrueVision8
  8. Set tp = New Mesh8
  9. Set ss = New Scene8
  10. Set tp = ss.CreateMeshBuilder
  11. TZ.Init3DWindowedMode Me.hWnd
  12. tp.CreateTeapot
  13. tp.SetPosition 0, 0, 10
  14. TZ.DisplayFPS = True
  15. Form1.WindowState = 2
  16. Form1.Show
  17. anew = True
  18. ou
  19. End Sub
  20. Sub ou()
  21. Do
  22. DoEvents
  23. TZ.Clear
  24. ss.RenderAllMeshes
  25. TZ.RenderToScreen
  26. FPSVAL = TZ.GetFPS
  27. Loop Until anew = False
  28. Set TZ = Nothing
  29. Set ss = Nothing
  30. Set tp = Nothing
  31. End
  32. End Sub
  33.  
  34. Private Sub Form_Unload(Cancel As Integer)
  35. anew = False
  36. Set TZ = Nothing
  37. Set ss = Nothing
  38. Set tp = Nothing
  39. If FPSVAL > 250 Then
  40. MsgBox "YOU HAVE A GREAT 3D CARD! LEND IT TO ME... BUT MY 3DFX VOODOO3 2000 PCI IS 350FPS... SO. NO NEED:)", vbInformation, "FPS"
  41. ElseIf FPSVAL < 100 Then
  42. MsgBox "Your 3D card sucks!!", vbCritical, "SUKS!"
  43. Else
  44. End If
  45. End
  46. End Sub
This is my first time using TrueVision8 Engine. Tell me if you like it. You need to have TrueVision8 5.5 Dll too. Download it at:
http://www.truevision3dsdk.com