Skip to Main Content
Silverlight 5 in Action
book

Silverlight 5 in Action

by Pete Brown
June 2012
Beginner content levelBeginner
1000 pages
33h 35m
English
Manning Publications
Content preview from Silverlight 5 in Action

Chapter 27. 3D lighting, texturing, and animation

 

This chapter covers
  • Effects, lighting, and normal vectors
  • Texturing objects
  • Coordinate spaces and matrices
  • Keyframe animation

 

In the previous chapter, you modeled a sphere and rendered it in 3D. You could tell it was 3D due to the curvature of the bands, but it wasn’t nicely shaded, and it definitely wasn’t lit. A key part of what makes a rendering convincing as 3D is the lighting.

In DirectX-based 3D systems, lighting is handled by various shaders. These shaders, which run directly on the video card, are small, high-performance algorithms that anyone can write. In XNA, a DirectX-based system, the shaders are encapsulated in a class derived from the Effect class. Throughout this chapter ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Silverlight 4 in Action

Silverlight 4 in Action

Pete Brown

Publisher Resources

ISBN: 9781617290312Publisher SupportOtherPublisher WebsitePurchase Link