Sticky Posts

407 words 1 mins.

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. # Quick Start # Create a new post h$ hexo new "My New Post"More info: Writing # Run server h$...

Categories

GAMES101

Computer-Graphics

CLR-via-CSharp

CSharp

CSharp-in-a-Nutshell

CSharp

Cpp-Primer

Cpp

Learn-Linux

Linux

Post List

3.6k words 3 mins.

# Animation(动画) 这一节涉及到计算机动画相关的知识,我们会讲到动画的历史、一些基本的制作动画的方法、物理模拟一些基本的思想、运动学以及绑骨相关的知识。 动画,作为一种交流的工具,给别人展示各种各样动起来的东西,并且动画更关注于美学上好不好看。在图形学中,也可以把动画理解成对于建模或者是几何上的拓展,无非就是在不同的时间它们有不同的几何形状,而为了得到这些几何形状,就会想要怎么去做,怎么去计算,算出来之后再在每一帧去播放它对应的图,相当于我们把 3D...
22k words 20 mins.

# UI # GUI # GUI 是什么? 全称 即时模式游戏用户交互界面(IMGUI) 在 Unity 中一般简称为 GUI 它是一个代码驱动的 UI 系统 # GUI 的主要作用 作为程序员的调试工具,创建游戏内调试工具 为脚本组件创建自定义检视面板 创建新的编辑器窗口和工具以拓展 Unity 本身(一般用作内置游戏工具) 注意:不要用它为玩家制作 UI 功能 # GUI 的工作原理 在继承 MonoBehaviour 的脚本中的特殊函数里 调用 GUI 提供的方法 类似生命周期函数 private void OnGUI(){ // 在其中书写 GUI 相关代码...
4.3k words 4 mins.

# Color and Perception(颜色与感知) # Physical Basis of Color 牛顿通过实验发现阳光的颜色实际上是各种颜色混合出来的结果。 为什么光线会被折射成不同的颜色?是因为不同的波长对应有不同的折射率。而任何一种光,一定对应某一种光谱。所谓光谱,指的是光线的能量在不同波长上的分布。 谱功率密度(SPD),指的是光线在不同的波长上的强度是多少。 通过 SPD,就可以描述光在任何一个波长上的分布是多少。 SPD 满足线性的性质。两种光同时照亮一个物体时,SPD 实际就是两种光单独的 SPD...
13k words 12 mins.

# 计算机网络 # 概述 # 概念 计算机网络:是一个将分散的、既有独立功能的计算机系统,通过通信设备与线路连接起来,由功能完善的软件实现资源共享和信息传递的系统。 计算机网络是互连的、自治的计算机集合。 互连 - 互联互通 自治 - 无主从关系 # 计算机网络的功能 数据通信(连通性) 资源共享 分布式处理 提高可靠性 负载均衡 ... # 计算机网路的组成 组成部分:硬件、软件、协议 工作方式: 边缘部分 用户直接使用:C/S 方式和 P2P 方式 核心部分 为边缘部分服务 功能组成: 通信子网 实现数据通信 资源子网 实现资源共享 / 数据处理 #...
14k words 12 mins.

# 设计模式(Design Patterns) # 初步认识设计模式 # 什么是设计模式 每一个模式描述了一个在我们周围不断重复发生的问题,以及该问题的解决方案的核心。这样,你就能一次又一次地使用该方案而不必做重复劳动。 #...
76k words 1:09

# Chapter 30 Hybrid Thread Synchronization Constructs # A Simple Hybrid Lock So, without further ado, let me start off by showing you an example of a hybrid thread synchronization lock. internal sealed class SimpleHybridLock : IDisposable { // The Int32 is used by the primitive user-mode...
72k words 1:05

# Chapter 29 Primitive Thread Synchronization Constructs When a thread pool thread blocks, the thread pool creates additional threads, and the time and memory resources required to create, destroy, and schedule threads is very expensive. When many developers see that they have threads in their...
71k words 1:05

# Chapter 28 IO-Bound Asynchronous Operations # How Windows Performs I/O Operations Let’s begin by discussing how Windows performs synchronous I/O operations. Figure 28-1 represents a computer system with several hardware devices connected to it. Each of these hardware devices has its own circuit...
48k words 43 mins.

# Chapter 26 Thread Basics # Why Does Windows Support Threads? Back in the early days of computers, operating systems didn’t offer the concept of a thread. In effect, there was just one thread of execution that ran throughout the entire system, which included both operating system code and...