杨帆博客

你想开发游戏还是改变世界?


  • 首页

  • 标签

  • 归档

  • 搜索

杂杂碎碎的常识第二弹-网格与模型

发表于 2018-03-23 | 更新于: 2018-08-22

前言

  这篇文章是我在着手准备实现物理渲染的时候在为项目搭框架的时候想到要写的。在之前的学习中,虽然也是接触了模型以及模型导入库 Assimp 但是却没有太多的概念。虽然知道网格,也知道网格的实现以及原理,但是并未多次用过,所以在这里准备好好复习一遍。

阅读全文 »

Binary-Tree-Right-Side-View

发表于 2018-03-23 | 更新于: 2018-08-22

题目地址

LeetCode#199 Binary Tree Right Side View

题目描述

  Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.

阅读全文 »

【DirectX】8-代码框架5-Shader

发表于 2018-03-22 | 更新于: 2018-08-22

教程地址

Tutorial 4: Buffers, Shaders, and HLSL

学习记录

  这一篇文章,我们将继续完善 CGraphics 的框架类,我们将为框架加上 CShader 类。这个类的目的是封装着色器的部分内容,我们在之前的三角形教程中已经用过了 HLSL ,所以这一篇不会很困难。

  这个类完善后,我们的框架将会更新为:

Shader

阅读全文 »

Gray-Code

发表于 2018-03-22 | 更新于: 2018-08-22

题目地址

LeetCode#89 Gray Code

题目描述

  The gray code is a binary numeral system where two successive values differ in only one bit.

  Given a non-negative integer n representing the total number of bits in the code, print the sequence of gray code. A gray code sequence must begin with 0.

阅读全文 »

【DirectX】7-代码框架4-CDirect3D类

发表于 2018-03-21 | 更新于: 2018-08-22

教程地址

Tutorial 3: Initializing DirectX 11

学习记录

  在之前的文章中,我们简单的将我们的框架下的 CInput 填充了以下,实现了 CKeyboard 和 CMouse 两个基础类。输入貌似就可以暂时这样了,现在我们来看输出。也就是我们 CSystem 类下的另一个 CGraphics 。这篇文章中要实现的是对于 D3D 系统函数的封装,将其命名为 CDirect3D 。

  更新 CDirect3D 之后我们的框架如下:

CDirect3D1

阅读全文 »
1…202122…46
KsGin

KsGin

游戏程序员/计算机图形学/Unity/西山居搬砖

226 日志
16 标签
GitHub E-Mail Google Twitter
© 2018 KsGin @ 2018
0%