lmplement a cube map class (data structure)
a. Construction by loading single image with 6 faces, e.g. uffizi cross.tiff, or by loadingindividual faces, e.g. by first splitting uffizi cross.tiff into six images using your favoriteimage processing software tool.
b. Direction lookup
i. Input: direction
ii. Output: color
iii. Start with face where previous lookup succeeded.
iv. Use bilinear interpolation for the lookup
mplement environment mapping of distant geometrya.
a. Eye rays looked up in cube map
lmplement environment mapped specular reflections
a. Per-pixel reflected rays looked up in cube map
Demonstrate the new capabilities of your renderer
a. Create a scene with uffizi cross.tiff as environment map
b. Place reflective object (e.g.teapot)in center of scene。
c. Restrict camera navigation to revolution around center of reflective object; threedegrees of freedom: revolution left-right, revolution up-down, rold.
d. Make a 20s 30Hz 720p video to illustrate environment mapping of distant geometry anoof reflections.
a. Implement first surface refraction
b. Implement mipmapping for the cube map lookup
c. Improve reflections of objects close to reflector
i. model an object close to the reflector with a billboard
ii. intersect reflected ray with billboarde
d. Build your own cube map by acquiring a panorama with a phone camera (it is OK if thepanorama is not complete, but you need to cover 360° at the horizon)
源码联系UP主 -> https://space.bilibili.com/329101171