Part IA Michaelmas Term
Cacheability of Phong Terms
Caching for Animation
When rendering animations, we can cache certain Phong shading components depending on what is moving in the scene.
Component Cacheability
| Component | Term | Cacheable? | Reason |
|---|---|---|---|
| Ambient | Always | Constant; independent of everything | |
| Diffuse | Yes (if static) | Depends on and , not | |
| Specular | Never if cam. moves | Depends on viewer direction |
Ambient Term
Always cacheable:
- Constant per surface (independent of camera, lights, objects)
- Compute once and reuse across all frames
Diffuse Term
Cacheable if:
- Lights are static
- Objects are static
Cannot cache if:
- Lights move (changes )
- Objects move/rotate (changes )
View-independent: unaffected by camera motion.
Specular Term
Never cacheable if camera moves:
- Depends on (viewer direction)
- Must recompute every frame
Could cache if:
- Camera is static
- Lights and objects are static
- (Rare: only useful for walk-through with fixed viewpoint)
Summary
- Ambient: always cacheable
- Diffuse: cacheable if lights and objects are static
- Specular: never cacheable if camera moves (depends on )
Past Paper Questions
2023 Paper 3 Question 3(a)(iv): In the Phong shading model, which terms can be cached in an animation? Explain why.