Jump to content
  • Advertisement
Sign in to follow this  
reza_najafpour

build a shiny object

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

Advertisement
The basic way to create emissive objects is to put a light object inside them. Optionally, you can apply an emissive material to the mesh. If you are using HDR or PRT things become more complicated.

If you want any real help, you'll need to tell us a whole lot more. What did you intend, what did you do, and how doesn't it work? Show us any appropriate code.

Admiral

Share this post


Link to post
Share on other sites
Just for reference, the following is from the other thread I closed as being a duplicate:
Quote:
i want to show a shiny object in my frame work
i write these code ( c# ):
_device.Lights[3].Type = LightType.Point;
_device.Lights[3].Ambient = Color.White;
_device.Lights[3].Diffuse = Color.White;
_device.Lights[3].Specular = Color.White;
_device.Lights[3].Range = 10000;
_device.Lights[3].Attenuation0 =0f;
_device.Lights[3].Attenuation1 = 0.01f;
_device.Lights[3].Attenuation2 = 0.01f;
_device.Lights[3].Range = 100000;
_device.Lights[3].Enabled = true;
_device.Lights[3].Update();

but nothin appeare in my frame work
please help

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.

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!