自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 资源 (3)
  • 收藏
  • 关注

原创 异常时输出异常来源

条件:需要pdb调试符号文件 可以使用seh将程序入口包围起来,一旦出现异常,就在异常处理器中,查询其pdb符号文件 输出异常的代码行以及堆栈,这对日常调试跟踪问题,很有益处 int __cdecl ExceptionHandler(PEXCEPTION_POINTERS pExp, LPCSTR Message) { memset(bufferIMAGEHLP_SYMBOL,0,1024

2014-02-24 20:47:18 827

原创 内存泄露输出

vc程序在调试模式下,new分配的内存通过一个结构体CrtMemBlockHeader来形成双链表 typedef struct CrtMemBlockHeader{ struct CrtMemBlockHeader *pBlockHeaderNext; // Pointer to the block allocated just before this one: struct Crt

2014-02-24 20:39:08 1074

原创 基本算法之字符串匹配算法Sunday

//////////////////////////////////////////////////////////////////////////////// int sundaySearch(const char *mainStr,const char *subStr) { if(mainStr==NULL || subStr==NULL) return -1; int mainStr

2014-02-24 20:03:08 933

转载 基本算法收集

转自http://blog.csdn.net/girlkoo/article/details/17606173,稍加整理 冒泡排序 void bubble_sort(int *array, int len){ int temp = 0; for(int i = 1; i != len; ++i){ // for(int j = 0; j != len-

2014-02-24 21:06:37 530

A_Practical_Model_for_Subsurface_Light_Transport.pdf

This paper introduces a simple model for subsurface light transport in translucent materials. The model enables efficient simulation of effects that BRDF models cannot capture, such as color bleeding within materials and diffusion of light across shadow boundaries. The technique is efficient even for anisotropic, highly scattering media that are expensive to simulate using existing methods. The model combines an exact solution for single scattering with a dipole point source diffusion approximation for multiple scattering. We also have designed a new, rapid image-based measurement technique for determining the optical properties of translucent materials. We validate the model by comparing predicted and measured values and show how the technique can be used to recover the optical properties of a variety of materials, including milk, marble, and skin. Finally, we describe sampling techniques that allow the model to be used within a conventional ray tracer.

2011-03-16

Light Scattering from Human Hair Fibers

Light scattering from hair is normally simulated in computer graphics using Kajiya and Kay’s classic phenomenological model. We have made new measurements of scattering from individual hair fibers that exhibit visually significant effects not predicted by Kajiya and Kay’s model. Our measurements go beyond previous hair measurements by examining out-of-plane scattering, and together with this previous work they show a multiple specular highlight and variation in scattering with rotation about the fiber axis. We explain the sources of these effects using a model of a hair fiber as a transparent elliptical cylinder with an absorbing interior and a surface covered with tilted scales. Based on an analytical scattering function for a circular cylinder, we propose a practical shading model for hair that qualitatively matches the scattering behavior shown in the measurements. In a comparison between a photograph and rendered images, we demonstrate the new model’s ability to match the appearance of real hair.

2011-03-16

[Embedded Linux Primer A Practical Real-World Approach][Word] .rar

这个是Embedded Linux Primer - A Practical Real-World Approach.chm<br>电子图书的word格式,<br>技巧:在word2007下,通过安装save as pdf 插件可以轻松转化为pdf电子图书

2008-03-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除