Jump to content
  • Advertisement

Archived

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

zohare

Making an object shiny

This topic is 6586 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 created a sphere object (direct3d IM) and I want it to be shiny. I know I have to play with the material, specular or emissive colors, but I don''t know exactly how. I want it to save its color, and be sensitive to light (optional) but be shiny. Suggestions?

Share this post


Link to post
Share on other sites
Advertisement
I think you want specular highlights. So what you must do is set the specular component of the light and material. Make the D3DRENDERSTATE_SPECULARENABLE true. And make sure you set the power component of the material, which controls the power of the highlights. You have to fiddle with that value to get it to look right.

*** Triality ***

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.

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!