Mithrandir, thank you for helping me out here, but I'm still having trouble trying to get this too work right. I have worked on a simple project to see if I can make "glowing" textures, but have little success with it yet. Here is the following code I'm using...
Option Explicit
Private tv8 As TVEngine
Private scene As TVScene
Private InputEngine As TVInputEngine
Private DoLoop As Boolean
Private Box As TVMesh
Private Camera As TVCamera
Private BoxPosition As Single
Private TextureFactory As TVTextureFactory
Private LightEngine As TVLightEngine
Private Light As D3DLIGHT8
Private AlphaTexture As TVRenderSurface
Private sngPositionX As Single
Private sngPositionY As Single
Private sngPositionZ As Single
Private sngAngleX As Single
Private sngAngleY As Single
Private sngAngleZ As Single
Private Angle As Single
Private Distance As Single
Private Altitude As Single
Private RotateControlLeft As Boolean
Private RotateControlRight As Boolean
Private ZoomInControl As Boolean
Private ZoomOutControl As Boolean
Private PanUpControl As Boolean
Private PanDownControl As Boolean
Private Sub cmdQuit_Click()
' We have clicked on the "Quit" button, so we change the DoLoop.
DoLoop = False
End Sub
Private Sub Form_Load()
Set tv8 = New TVEngine
Set Camera = New TVCamera
Set TextureFactory = New TVTextureFactory
Set LightEngine = New TVLightEngine
' Set the search directory of the objects, textures, ...
tv8.SetSearchDirectory App.Path
' We initialize TV8 in the picture box of the form.
tv8.Init3DWindowedMode Picture1.hWnd
' We want to see the FPS.
tv8.DisplayFPS = True
' We create the input object.
Set InputEngine = New TVInputEngine
Set scene = New TVScene
scene.SetViewFrustum 35, 4000
Set Box = New TVMesh
TextureFactory.LoadTexture "..\..\Illumination Testing\Box.bmp", "Box", , , TV_COLORKEY_NO, True, True
'AlphaTexture.CreateStaticTextureFromRenderSurface
Set Box = scene.CreateMeshBuilder
Box.Load3DsMesh "..\..\..\Illumination Testing\Box.3ds", True
Box.SetMaterial 1
Box.SetTexture GetTex("Box")
Box.SetShadowCast 1, 1
sngAngleX = 0
sngAngleY = 0
sngAngleZ = 0
Box.SetPosition sngAngleX, sngAngleY, sngAngleZ
Box.ScaleMesh 1, 1, 1
Box.SetColor RGBA(0.1, 0.1, 0.1, 1), False
Angle = 0
Distance = 100
Altitude = 100
Camera.RotateAroundMesh Box, True, Angle, Distance, Altitude
Lighting
Form1.Show
' We start the main loop.
DoLoop = True
Main_loop
End Sub
Private Sub Lighting()
Light.Type = D3DLIGHT_POINT
Light.Position = Vector3(500, 0, 0)
Light.Ambient = DXColor(1, 1, 1, 1) 'RGBA (3,3,3,1=Daylight) (1.5,1.5,1.5,1=Night)
Light.diffuse = DXColor(4, 4, 4, 1)
Light.Attenuation0 = 1
Light.Range = 1500
LightEngine.CreateLight Light, "Light"
LightEngine.UpdateLight 1, Light
End Sub
Private Sub form_unload(cancel As Integer)
DoLoop = False
main_quit
End Sub
Private Sub Main_loop()
Do
DoEvents
tv8.Clear
scene.RenderAllMeshes
tv8.RenderToScreen
Box.RenderShadow
If RotateControlLeft = True Then
Angle = Angle + (tv8.TimeElapsed / 500)
Camera.RotateAroundMesh Box, True, Angle, Distance, Altitude
End If
If RotateControlRight = True Then
Angle = Angle - (tv8.TimeElapsed / 500)
Camera.RotateAroundMesh Box, True, Angle, Distance, Altitude
End If
If ZoomInControl = True Then
Distance = Distance - (tv8.TimeElapsed / 4)
Camera.RotateAroundMesh Box, True, Angle, Distance, Altitude
End If
If ZoomOutControl = True Then
Distance = Distance + (tv8.TimeElapsed / 4)
Camera.RotateAroundMesh Box, True, Angle, Distance, Altitude
End If
If PanUpControl = True Then
Altitude = Altitude + (tv8.TimeElapsed / 4)
Camera.RotateAroundMesh Box, True, Angle, Distance, Altitude
End If
If PanDownControl = True Then
Altitude = Altitude - (tv8.TimeElapsed / 4)
Camera.RotateAroundMesh Box, True, Angle, Distance, Altitude
End If
Loop Until DoLoop = False
main_quit
End Sub
Private Sub main_quit()
' We want to quit the project, so we destroy the teapot object.
Set Box = Nothing
' Then, we destroy the scene object.
Set scene = Nothing
' We finish the frenetic destroy with the TV8 object.
Set tv8 = Nothing
Set LightEngine = Nothing
' We end the application.
End
End Sub
Private Sub PanDown_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
PanDownControl = True
End Sub
Private Sub PanDown_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
PanDownControl = False
End Sub
Private Sub PanUp_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
PanUpControl = True
End Sub
Private Sub PanUp_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
PanUpControl = False
End Sub
Private Sub RotateLeft_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
RotateControlLeft = True
End Sub
Private Sub RotateLeft_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
RotateControlLeft = False
End Sub
Private Sub RotateRight_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
RotateControlRight = True
End Sub
Private Sub RotateRight_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
RotateControlRight = False
End Sub
Private Sub ZoomIn_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
ZoomInControl = True
End Sub
Private Sub ZoomIn_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
ZoomInControl = False
End Sub
Private Sub ZoomOut_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
ZoomOutControl = True
End Sub
Private Sub ZoomOut_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
ZoomOutControl = False
End Sub
So far, the code allows me to display a box with lighting, so that if I can get an illumination texture to work, it would show up as a green "cross" on each face of the box. here is an image of the program so far..

I hope the pic loaded right.

Anyway, as you can see, I'm trying to get the green "cross" to illuminate, but I'm having little success. Can someone with some TV3D6.0 to 6.3 experience help me out here??