Skip to main content
GameDev.net gamedev.net
🔒 Locked

Specular lighting settings

Started by ababkin Jul 24, 2002 at 12:55 PM 5 replies 250+ views
Original Post
ababkin
ababkin
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
Alex BabkinAlias|WavefrontResearch Department
ababkin
ababkin
There is no hardware acceleration on my video card - maybe thats what causes absence of specularity?

Thnx
Alex BabkinAlias|WavefrontResearch Department
ababkin
ababkin
There is no hardware acceleration on my video card - maybe thats what causes absence of specularity?

Thnx
Alex BabkinAlias|WavefrontResearch Department
ababkin
ababkin
of course
Alex BabkinAlias|WavefrontResearch Department
RapidStunna
RapidStunna
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
ababkin
ababkin
pardon my ignorence
but where do i specify reference mode ? (where in code)
Alex BabkinAlias|WavefrontResearch Department

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.