Jump to content
  • Advertisement
Sign in to follow this  
canonind

Lighting Objects in Vertex Buffer

This topic is 2716 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?

Thanks

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!