CGBeginner

 

2013年11月28日

用fxc.exe编译shader文件(*.fx, *.hlsl)的设置

摘要: 原文出自:http://msdn.microsoft.com/en-us/library/windows/desktop/bb509709(v=vs.85).aspx#Profiles拿DX11 SDK中BasicCompute11为例子右击BasicCompute11.hlsl -> properities ->Custom Build Tool -> command line:"$(DXSDK_DIR)Utilities\bin\x86\"fxc.exe /T cs_5_0 /E CSMain /Fo "%(Filename).cso&quo 阅读全文

posted @ 2013-11-28 19:56 CGBeginner 阅读(1365) 评论(0) 推荐(0) 编辑

2013年5月5日

转载Bit Fields的用途

摘要: Bit FieldsByAllEightUp| Published Apr 15 2013 09:42 PM inGame ProgrammingPeer Reviewed by (Josh Vega,Dragonsoulj,Michael Tanczos)C++c languageDuring a discussion on GameDev recently, I suggested someone use a bit field as a method to avoid having to deal with various masking and shift operations in 阅读全文

posted @ 2013-05-05 14:15 CGBeginner 阅读(479) 评论(0) 推荐(0) 编辑

转载一篇内存管理的文章 - Custom memory allocation

摘要: C++: Custom memory allocationByTiago Costa| Published Apr 15 2013 02:07 PM inGeneral ProgrammingPeer Reviewed by (GuardianX,incertia,Josh Vega)Fast memory allocations along with memory leak detection can have a big impact on games performance.C++ provides two well known functions to allocate dynamic 阅读全文

posted @ 2013-05-05 04:11 CGBeginner 阅读(344) 评论(0) 推荐(0) 编辑

2012年6月20日

[转] Implementation of Fast Fourier Transform for Image Processing in DirectX 10

摘要: Download Sample CodeFFTDX10.zip[ZIP | 6.36MB]IntroductionThe Discrete Fourier Transform (DFT) is a specific form of Fourier analysis to convert one function (often in the time or spatial domain) into another (frequency domain). DFT is widely employed in signal processing and related fields to analyz 阅读全文

posted @ 2012-06-20 13:33 CGBeginner 阅读(545) 评论(0) 推荐(0) 编辑

2012年6月19日

[转] Fast Fourier transform — FFT (一篇不错的关于一维FFT原理及CPU实现的文章)

摘要: 原文地址:http://www.librow.com/articles/article-10Fast Fourier transform — FFTCategory.Digital signal processing (DSP) software development.Abstract.The article is a practical tutorial for fast Fourier transform — FFT — understanding and implementation. Article contains theory, C++ source code and progr 阅读全文

posted @ 2012-06-19 00:58 CGBeginner 阅读(2823) 评论(0) 推荐(1) 编辑

2012年6月13日

Introduction to my galaxy engine 9 : FFT Deep Ocean Water Simulation (计划进行中...)

摘要: 目前为止DEMO效果视频FFT512:FFT256:回首之前做的海面效果(主要参考的是ogre的海面例子),感觉还是有太多不足,毕竟的自己的第一个GPU程序,只能算是个试验品。一直困扰自己的一个问题就是如何解决法线贴图由于太小,用作海面上不够细致的问题。每小格delta UV太小导致一小块法线贴图铺在整个海面上则细节表现不够,反之用warp sample法线贴图,如果法线贴图不是无缝连接则有太明显的重复痕迹,就算多点采样效果也不是太好。海面法线直接影响到reflection和refraction的效果。之前demo中的refraction和reflection只是用噪音来映射和透射物体的形变, 阅读全文

posted @ 2012-06-13 09:39 CGBeginner 阅读(3146) 评论(3) 推荐(0) 编辑

2012年6月11日

Introduction to my galaxy engine 8 : Real Time Fluid Rendering

摘要: 最近正在研究real time fluid effect方面的问题,主要适用于液体,烟雾,火焰方面的实时模拟。一般是通过GPGPU(general purpose GPU)来实现的。以下是2D Fluid初步实验的截图:要理解实现原理,首先要熟悉其基于的物理模型:“stable fluids” byStam 1999. 从实现角度来说,根据fluid effect的计算公式主要考虑如下几个要素:Advection [气]水平对流, pressure, diffusion, (Vorticity [涡旋]Confinement 主要用于烟雾,火焰),external forces. 每一个要素的 阅读全文

posted @ 2012-06-11 14:36 CGBeginner 阅读(724) 评论(0) 推荐(1) 编辑

2012年6月7日

DX10 Shadow Volumn Sample Code的Bug修正

摘要: 在DX10Shadow Volumn Sample中的DetectAndProcessSilhouette这个函数意思是说边缘检测,但实际啥都没做,只是沿伸了顶点生成shadow vloumn。为了证明存在的BUG,换了个简单的模型来看一下shadow volumn的样子:在这幅图中,很明显,反向面的顶点也做了不必要的沿伸。下图是修正过的效果图:明显shadow volumn 要更干净些了,而且结果完全正确。再换回到原先的模型看一下效果。以下两幅图是原来的代码结果:以下是修正的结果:可以看出,结果是没问题的。下面分析代码是如何修改,修改过的代码段如下://// Helper to detect 阅读全文

posted @ 2012-06-07 13:47 CGBeginner 阅读(492) 评论(0) 推荐(0) 编辑

2012年6月1日

Introduction to my galaxy engine 7: Volumetric Light Scattering

摘要: 花了一天时间,给引擎中添加了Volumetric Light Scattering模块.视频地址:https://vimeo.com/43232452截屏图如下:Volumetric Light Scattering又名god light,Crepuscular Rays等等, 也是一个游戏中比较常见的效果,主要是用post process来实现的。具体实现步骤如下:1.渲染发光体和场景,场景不添加材质,只显示成黑色,将结果渲染到render target 1上。2. 只渲染场景,添加材质和光照,将结果渲染到render target 2上。3. 对render target 1 做采样处理, 阅读全文

posted @ 2012-06-01 12:35 CGBeginner 阅读(995) 评论(0) 推荐(1) 编辑

2012年5月30日

整理的一些个人觉得不错的国外【图形学】技术论坛和个人网站,以后还会陆续更新

摘要: 官网:http://developer.nvidia.com/node/76http://msdn.microsoft.com/en-us/library/ee663274(v=vs.85)http://www.computer.org/portal/web/computingnow/cgahttp://developer.amd.com/Pages/default.aspxhttp://www.spacesimulator.net/index.php?p=homehttp://downloads.akpeters.com/gpupro/http://www.beyond3d.com/http 阅读全文

posted @ 2012-05-30 12:50 CGBeginner 阅读(1330) 评论(0) 推荐(0) 编辑

导航