Results 1 to 2 of 2

Thread: TrueVision8

  1. #1

    Thread Starter
    Fanatic Member prog_tom's Avatar
    Join Date
    May 2001
    Location
    Los Angeles and Little Rock
    Posts
    810

    Wink TrueVision8

    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

    prog_tom
    JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
    http://physics.sviesoft.com/forum

  2. #2

    Thread Starter
    Fanatic Member prog_tom's Avatar
    Join Date
    May 2001
    Location
    Los Angeles and Little Rock
    Posts
    810

    Angry 3D text...

    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 text?

    prog_tom
    JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
    http://physics.sviesoft.com/forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width