Jump to content
  • Advertisement
Sign in to follow this  

Lighting Objects in Vertex Buffer

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

Hey Guys,

I have a question about lighting. When I am using D3DXCreateTeapot function and light it using ambient and directional lighting, everything is fine. But when it comes to lighting the objects which are in my vertex buffer, it doesn't work. For example I had a cube in my vertex buffer and it appears always totally black when I use the same methods as I did with the teapot. Do I have to do something else or is there no way to light objects in the vertex buffer?


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!