newmtl mtlName # mtlName is the name of the material Ka 1.000 1.000 1.000 #材质的阴影色（ambient color）用Ka声明。颜色用RGB定义，每条通道的值从0到1之间取。 Kd 1.000 1.000 1.000 #固有色（diffuse color） Ks 0.000 0.000 0.000 #高光色（specular color）, if black {specular color is closed} Ns 10.000 #Use Ns to represent weighted specular color, range 0 – 1000 illum 2 #illumination mode 0. 色彩开，阴影色关 1. 色彩开，阴影色开 … Read more*.mtl content explanation

# Month: August 2017

## 08/30/2017

Plan for tomorrow: try to download dependency of https://github.com/NCCA/Sponza if not work, try to load the textures Change from single float to short in for peripheral pixels finish homework for 726 in python

## OpenGL Commonly Used Models

Crytek Atrium Sponza Rungholt scene

## 08/28/2017

low level Optimization of KFR Optimization of log(|| x – x0, y – y0||) Optimization of log function Optimization of fast atan Make the shader more complex to extend the rendering time to greater than 16ms I will talk about every step in detail Optimization of log(|| x – x0, y – y0||) There is … Read more08/28/2017

## 08/27/2017

Permutation: http://blog.csdn.net/hackbuteer1/article/details/6657435 Tomorrow: CORDIC FastLog Finding integer log base 2 of an integer (aka the position of the highest bit set) Find the log base 2 of an integer with the MSB N set in O(N) operations (the obvious way) Find the integer log base 2 of an integer with an 64-bit IEEE float Find … Read more08/27/2017

## How to build 5d array in C++

If I want to have Arr [const][variable][const][variable][const], what should I do? Use 5-layer typedef typedef int A1 [9]; typedef A1 *A2; typedef A2 A3[8]; typedef A3 *A4; typedef A4 A5 [7]; int main() { A5* x; return 0; } 2. Use only one typedef typedef int(*(*(*B[7])[8])[9]) int main() { B y = 0; }

## 08/22/2017

Research: 8:30am – 11: 30am meet with Var need to figure out the advantage of our algorithm Try to update VS15 to get DirectX SDK 3:00 pm – 6:00 pm Variance sampling TAA Write paper Tomorrow: Read push-pull paper Read Europe Log polar paper think about ellipse log-polar Leetcode: https://leetcode.com/problems/integer-break/description/

## Direct3D Resources

Official Tutorial: https://code.msdn.microsoft.com/Direct3D-Tutorial-Win32-829979ef?SRC=VSIDE Related: http://blog.csdn.net/xueyedie1234/article/details/51315640

## 08/18/2017

Decouple shading rate & visibility rate from pixels: allow for space for anti-aliasing and coarse pixel shading. Texel Shading (shading rate reduction): We show performance improvements in three ways. First, we show some improvement for the “small triangle problem”. Second, we reuse shading results from previous frames. Third, we enable dynamic spatial shading rate choices, … Read more08/18/2017