Sign in to follow this  
Frisker

MDX, Light mapping

Recommended Posts

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 [CODE] 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 [/CODE] 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).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this