MDX, Light mapping

Started by
-1 comments, last by Frisker 17 years, 11 months ago
Hello, I've been working on a chess game, I use two lights to light up my chessboard and its chess pieces. I want my chess pieces to reflect shadows. I've been searching on google and some forums for a good tutorial how to do this in VB.net without any luck. The code for lights Private Sub CreateLights() Device.Lights(0).Type = Direct3D.LightType.Directional Device.Lights(0).Direction = New Vector3(0, -150, -150) Device.Lights(0).Position = New Vector3(0, 150, 150) Device.Lights(0).Enabled = True Device.Lights(1).Type = Direct3D.LightType.Directional Device.Lights(1).Direction = New Vector3(0, 150, 150) Device.Lights(1).Position = New Vector3(0, -150, -150) Device.Lights(1).Enabled = True End Sub Here's how it looks at the moment http://epicdesign.se/Simon/ChessShadows.jpg I want it to look something like this ttp://epicdesign.se/Simon/ChessShadows2.jpg (Both pictures are using the same modells, the last one is in 3Dmax).

This topic is closed to new replies.

Advertisement