Jump to content
  • Advertisement
Sign in to follow this  

D9 Point light is not supported on vista??

This topic is 3510 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

hi: There is a demo. But when i get it run on vista, all of the things turn out to be white, i change the light type to directional , the color returns. But i want point light, not directional. What's under the hood?? Thanks!!

Share this post

Link to post
Share on other sites
Yes, is supported. There's a little code in slimdx.

SlimDX.Vector3 vv3;

this.Device.EnableLight(0, true); //enable light
SlimDX.Direct3D9.Light light = new SlimDX.Direct3D9.Light();
light.Ambient = Color.Gray;
light.Diffuse = System.Drawing.Color.White;
vv3 = this.Player.Position;
vv3.Y += 0.5f;
light.Position = vv3;
light.Range = 5;
light.Type = SlimDX.Direct3D9.LightType.Point;
this.Device.SetLight(0, luz);

Share this post

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

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!