VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Desc: Rendering 3D geometry is much more interesting when dynamic lighting ' is added to the scene.

Liaqat Fayyaz  (10 Submissions)   Graphics   VB 6.0   Unknown Difficulty   Thu 7th June 2001   Mon 8th February 2021

Desc: Rendering 3D geometry is much more interesting when dynamic lighting ' is added to the scene. To use lighting in D3D, you must create

API Declarations



'-----------------------------------------------------------------------------
' variables
'-----------------------------------------------------------------------------
Dim g_DX As New DirectX8
Dim g_D3D As Direct3D8 'Used to create the D3DDevice
Dim g_D3DDevice As Direct3DDevice8 'Our rendering device
Dim g_VB As Direct3DVertexBuffer8


' A structure for our custom vertex type
Private Type CUSTOMVERTEX
postion As D3DVECTOR '3d position for vertex
normal As D3DVECTOR 'surface normal for vertex
End Type

' Our custom FVF, which describes our custom vertex structure
Const D3DFVF_CUSTOMVERTEX = (D3DFVF_XYZ Or D3DFVF_NORMAL)

Const g_pi = 3.1415



Rate Desc: Rendering 3D geometry is much more interesting when dynamic lighting ' is added to the scene. (1(1 Vote))
Desc: Rendering 3D geometry is much more interesting when dynamic lighting ' is added to the scene..bas

Desc: Rendering 3D geometry is much more interesting when dynamic lighting ' is added to the scene. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters