• Stars
    star
    175
  • Rank 216,746 (Top 5 %)
  • Language
    C
  • License
    MIT License
  • Created over 6 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Computational Graphics - THU Spring 2018

Computational Graphics - THU Spring 2018

HW1(10')

实现一个感兴趣的光栅图形学算法

基本选题 加分项
画线(6') SSAA(2'), Kernel(2'), 区域采样(2'), 相交线反走样的case(4')
画弧(8') 同上
区域填充(10') 边界反走样(2')

Result

图太丑了而且这个作业也很trivial就不放图了

HW2(60')

参数曲线/曲面的三维造形与渲染

  • 利用参数曲线/曲面凹一个造型
  • 渲染
    • 基本:光线与参数曲线/曲面的求交
    • 其他:光子映射,加速,纹理景深,体积光等等

Scoring

占总评60分,按以下算法得出分值后,和全班一起归一化到70~100作为单项成绩。(负分倒扣, BUG倒扣)

基本功能完整性[-20, 0]: 光线跟踪基本结果,反射折射阴影
实现网格化求交: [-5]	
实现参数曲面求交: [0, 10]: 解方程请写出求解过程,其他请写出迭代过程
算法选型[0, 40]: 需要实现对应效果才为有效
参考基准: PT: 15, DRT: 25, PM: 30, PPM: 30.
DRT请在报告中注明使用的函数
加速[0, 10]: 算法型加速为有效
OpenMP: 2, GPU: 5
景深/软阴影/锯齿/贴图等[0,5]
主观分[-10, 10]: 设计和构图
其他额外效果: 凹凸贴图、体积光等: [5, ?]

代码基于smallpt,添加了纹理映射、旋转Bezier求交、景深的效果,详情可查阅 hw2/report.pdf

Compile & Run

cd sppm
g++ main.cpp -oa -O3 -fopenmp

由于sppm代码里面还有bug,就先没调用……实际上里面是pt的接口,当然可以直接把main函数的baseline改成sppm,不过相应的参数也要跟着改了。

./a 640 480 try.ppm 10
./a 3840 2160 test.ppm 100000

Result

upd 191005: branch balls has another scenario. Here's the result: (others are ball_*.png in the releases page)

PS:别只抄我构图,这里有一堆:https://graphics.cs.utah.edu/trc

HW3(30')

图像大作业

  1. 基于优化的图像彩色化 Colorization Using Optimization, SIGGRAPH 2004.
  2. 内容敏感的图像缩放 Seam Carving for Content-Aware Image Resizing, SIGGRAPH 2007.
  3. 无缝图像拼接 Coordinates for Instant Image Cloning, SIGGRAPH 2009.

此处选了第三个选题,实现了MVC和Poisson Image Editing两种算法

Result

hw3/MVC/pic/2_6.png

Other Result

MashPlant

Please refer to https://github.com/MashPlant/computational_graphics_2019 for more details.

LICENSE

本项目基于Graphics A+ LICENSE,属于MIT LICENSE的一个延伸。

使用或者参考本仓库代码的时候,在遵循MIT LICENSE的同时,需要同时遵循以下两条规则:

  1. 如果您有效果图,则必须将效果图的链接加入到这个README中,可以以PR或者ISSUE的方式让本仓库拥有者获悉;

  2. 如果您在《计算机图形学基础》或者《高等计算机图形学》中拿到了A+的成绩,则必须请本仓库拥有者吃饭。

More Repositories

1

Undergraduate

Collection of undergraduate course homework and projects
C++
1,022
star
2

THU-CST-Cracker

清华大学计算机系课程攻略 Guidance for courses in Department of Computer Science and Technology, Tsinghua University
993
star
3

tuixue.online-visa

https://tuixue.online/visa/ A Real-time Display of U.S. Visa Appointment Status Website 预约美帝签证各个签证处最早时间的爬虫
Python
787
star
4

oi_slides

我的 OI 课件
472
star
5

learn2018-autodown

清华大学新版网络学堂课程自动下载脚本 / A python script to clone all files from learn.tsinghua.edu.cn
Python
270
star
6

Fast-Poisson-Image-Editing

A fast poisson image editing implementation that can utilize multi-core CPU or GPU to handle a high-resolution image input.
Python
241
star
7

mips32-cpu

奋战一学期,造台计算机(编译出的bit文件在release中,可以直接食用)
Verilog
122
star
8

router

造路由器 (清华大学 网络原理课程 2018-2019秋)
C++
67
star
9

CV

My Curriculum Vitae
TeX
51
star
10

os2019

操作系统 2019 ucore labs
C
48
star
11

Artificial-Neural-Network-THU-2018

4 small homeworks
Python
38
star
12

ml

Machine Learning repo
Jupyter Notebook
36
star
13

online-application-course-upload

Python
32
star
14

decaf-complier

编译原理 2018秋 6次PA
Java
30
star
15

CS294-112

CS 294-112 @ UCB Deep RL
Python
21
star
16

simple-news-android-app

Java课程大作业
Java
17
star
17

sudoku-qt5

A Qt5 Sudoku game
C++
14
star
18

GRErecite

GRE 再要你命3K 背单词小程序
Python
14
star
19

LAP-server

A simple Linux+Apache2+PHP server
PHP
9
star
20

DIP2018

Digital image processing (THU Spring 2017-2018)
C
6
star
21

Trinkle23897

4
star
22

VizDoom2018-Track1

Supplemental materials for "Playing FPS Games with Environment-Aware Hierarchical Reinforcement Learning", accepted by IJCAI'19
4
star
23

list_of_people

DIGITAL Command Language
3
star
24

csp

Trival solutions for trivial problems of CCF CSP.
C++
3
star
25

draughts-qt5

C++
1
star
26

mjc-mwe

C
1
star