# const&constexpr

While reviewing homework-code in GAMES101, I learned new things : not only the c++ grammer ,but also the graphics-algorithms, also how to architecture projects framwork. This is really amazing, I would like to express my gratitude to Prof.Yan and all the TAs.

This blog is about constexpr, which is a new feature in c++11.

# Learn-from-Anima2D

Anima2D is a plugin for Unity to make skeleton-based animation,I have learned how to use it making my character Ideling on Bilibili, I pushed the result on github.

However,I am a cs-er.So the source code of this plugin has a fatal attraction for me. I wonder why the author didn’t write any annotation for the project, this makes my reading really really tough. Maybe experienced-man never write annotations…the conclusion was based on my observation in my coding life up to now…Since I am a “chicken dish”,which means “菜鸡” in Chinese,I decided to write my own understanding step by step(kind of diary style)

Life is so hard`(cry by chicken dish Anna)

# OpenPose-Practice

I tried to download OpenPose from github and run the Demo on my laptop. Since my graphics card is medium-level AMD,and my cpu is i7. So I use the cpu-only model.

# First-Met-With-RayTracing

Hey guys,speaking of RayTracing,I have to tell u that I’m really confused at the first time–What the hell is RayTracing?! Well u know I’m not the kind of person who is addicted to games, all I know about Graphics begins with the course UnityGame in my first year of Graduate,before that I am the one who doesn’t even know what pixel is! So not to mention those much more advanced technologies such as RayTracing!

I assume readers are the same with me! You just learned the really really basic graphics—！ coordinates transformation,！ uv mapping,！ something about graphicspipeline,！ unity games,(ok I admit that I’m a little irritable at present, cuz a bug cannot be fixed for a few days)suddenly a voice told you time to learn RayTracing, and it seems a mess with the existing knowledges in your head. Don’t worry, learn with me.

# something-from-vector-implementation

This article is for the readers who have a basic background of math, graphics, c++. Although I have written the code about Vector2,Vector3 by c++, but as time goes by, all the principles were forgotten. So I decided to write something about the simple program to get much more strong memory.
If you search the implementation of vector in github, you can find lots examples. Here’s an example vector.hpp, actually it’s too hard for me to read. Today’s vector.hpp is about the really basic syntax in c++ such as operator overloading, friends, inline etc.

This is for the readers who have basic c++ background. Those days I have noticed that there’s char ‘&’ in front of function. So decided to record it.

I suggest an online c++ compiler : (You can test your simple programs on it.)

I want to overview the Surface Shading & Texture Mapping,but it’s not a simple glance,I’ll try my best to describe this part in detail,including all kinds of textures:bump textures/environment maps/displacement mapping/shadow maps,the surface shading includes diffuse shading,phong shading etc. So there will be a lot of pictures and formulas.

With the above simplifications in mind, Let’s begin our trip.

# Function-Template

This is for the readers who have basic c++ background. If you want to get the rough sketch of funtion template of c++, then there it is.

I suggest an online c++ compiler : http://coliru.stacked-crooked.com/ (You can test your simple programs on it.)

# Graphics Pipeline Overview

Those days I have learned Graphics again. For deeper memory,I tried to overview the graphics pipleline in this article. Shame on me that forgetting while reading…also my pooor English.

With the above simplifications in mind, Let’s begin the graphics pipeline.