Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

ababkin

Specular lighting settings

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

I tried almost all possible settings to achieve specular lighting effects. Please list all the settings that have to be set to achieve the effect. Here are the settings I used: d3dDevice->SetRenderState(D3DRS_SPECULARENABLE, TRUE ); d3dDevice->SetRenderState(D3DRS_SPECULARMATERIALSOURCE, 0); here are my point light specular component (i want it blue) lPoint.Specular.r = 0.0f; lPoint.Specular.g = 0.0f; lPoint.Specular.b = 1.0f; lPoint.Specular.a = 1.0f; material spec component: mtrl.Specular.r = 0.0f; mtrl.Specular.g = 0.0f; mtrl.Specular.b = 1.0f; mtrl.Specular.a = 1.0f; what elese is there? Please help! Alex

Share this post


Link to post
Share on other sites
Advertisement
There is no hardware acceleration on my video card - maybe thats what causes absence of specularity?

Thnx

Share this post


Link to post
Share on other sites
There is no hardware acceleration on my video card - maybe thats what causes absence of specularity?

Thnx

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Have you enabled lighting ?

Cheers
Chris

Share this post


Link to post
Share on other sites
What''s the results of running it in reference mode. If it runs, then you know it''s your card. If it still doesn''t, then it''s your code.

---
My Site
Come join us on IRC in #directxdev @ irc.afternet.org

Share this post


Link to post
Share on other sites

  • 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!