Code Monkey home page Code Monkey logo

sphericalharmonicslighting's Introduction

球谐光照

演示视频

简介

给定环境贴图,对环境光进行采样,得到数据量很小的环境光参数。利用这些参数对场景或者模型加上环境光照,详细内容参考实验篇以及应用篇

程序包含三个部分:

运行

使用sample_all.sh进行采样,加上--write-rendered可以用球谐参数直接生成CubeMap

运行rendering_all.sh查看渲染效果

鼠标左键拖动转动模型,鼠标右键拖动转动场景,鼠标滚轮进行缩放,PageUp/PageDown切换场景,上/下箭头切换模型,数字键0/1/2/3切换球谐阶数

环境

  • Visual Studio 2017
  • 第三方库:OpenGL, Glfw3, Glew, stb_image (推荐使用vcpkg安装第三方库)

sphericalharmonicslighting's People

Contributors

lianera avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.