# Giraffe **Repository Path**: sdragonx/Giraffe ## Basic Information - **Project Name**: Giraffe - **Description**: 项目地址:https://github.com/UncP/Giraffe - **Primary Language**: C++ - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-29 - **Last Updated**: 2024-04-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Giraffe: Distributed Monte Carlo Path Tracer [English Version of README](./README.en.md) [![Author](https://img.shields.io/badge/Author-UncP-blue.svg)]() [![Build](https://img.shields.io/badge/Build-Passing-brightgreen.svg)](https://travis-ci.org/UncP/Giraffe) [![License](https://img.shields.io/badge/License-BSD-red.svg)](./LICENSE) ### Giraffe 是一个拥有自己的路径追踪语言的分布蒙特卡洛路径追踪器,采用C++11/14实现。 ### 它的中文名字是`长颈鹿`。 #### 已升级为离线渲染库[Zebra](https://github.com/UncP/Zebra) *** #### Giraffe ![](./image/giraffe.png) *** ### 特点 * 多种表面的BRDF(diffuse,reflect,refract,glossy,specular...) * 全局光照 * 蒙特卡洛积分(Uniform Sampling,Stratified Sampling) * 分布式路径追踪 * Russian Roulette * 纹理 - Solid Texture(砖块,圆点,图像) - Procedural Texture(Perlin Noise,格子,条纹) - Cellular Texture(Worley Noise) * 反走样 * 景深 * 光源(点光源,方向光,区域光,纹理光) * 物体(平面,三角形,球,四棱柱,圆柱,圆盘) * 加速数据结构 - BVH + AABB (Axis-Aligned Bounding Box) + DOP (Discrete Oriented Polytopes) * Giraffe路径追踪语言 #### 反射折射 ![](./image/reflect_refract.png) #### 砖块纹理 ![](./image/brick.png) #### 景深 ![](./image/depth_of_field.png) #### Puppy ![](./image/puppy.png) #### Bear ![](./image/bear.png) *** #### 如果你有兴趣尝试一下Giraffe `在Linux环境下进入src目录然后 make && ./Giraffe puppy 4` `puppy是文件名,scene文件夹里所有文件都可以` `4是采样数,默认为1,还可以是8, 16...` `另外你需要有头文件png.h以及支持C++11/14的编译器,若不能支持C++14,将Makefile里的参数14改为11`