Jump to content
  • Advertisement
Sign in to follow this  
Frisker

MDX, Light mapping

This topic is 4441 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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 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).

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!