当前位置:首页|资讯

C++lmplement a cube map class

作者:高校程序发布时间:2024-10-30

C++lmplement a cube map class

  1. 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

  2. mplement environment mapping of distant geometrya.
    a. Eye rays looked up in cube map

  3. lmplement environment mapped specular reflections
    a. Per-pixel reflected rays looked up in cube map

  4. 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



Copyright © 2024 aigcdaily.cn  北京智识时代科技有限公司  版权所有  京ICP备2023006237号-1