随笔分类 -  Graphics

D3D、OpenGL、 CUDA、 图形算法
摘要:光照模型将自然界的光照分为几个分量, 环境光, 漫反射光, 镜面光, 放射光. 环境光(ambient light)描述的是在环境中进行充分的散射, 似乎来自所有方向的光. 环境光撞击物体表面时, 会向所有方向均匀发散. ambient light = ambient light * ambient material 即RGB of ambient light = (R1R2, G1G2, B1... 阅读全文
posted @ 2011-10-15 22:03 nickolas 阅读(681) 评论(0) 推荐(0)
摘要:Brief of Binary Space Partitioning. Target: examine the areas where one can draw advantages of the structure supplied and study the generating process. Drawbacks: BSP is static and it is very expens... 阅读全文
posted @ 2011-09-17 19:52 nickolas 阅读(751) 评论(0) 推荐(0)
摘要:本文主要分析CUDA SDK sample如何同OpenGL相结合. 在CUDA中调用OpenGL主要有以下几个要点: Interoperability with OpenGL requires that the CUDA device be specified by cudaGLSetGLDevice() before any other runtime calls. Register res... 阅读全文
posted @ 2011-07-18 20:58 nickolas 阅读(1304) 评论(0) 推荐(0)
摘要:本文主要分析VolumeRender中涉及到的一些图形算法:Ray casting、 直线平面求交。 VolumeRender渲染效果 Volume Render通常用来绘制几何图形难以表现的流体、云、火焰、烟雾等效果,流行的volume render算法有:ray casting、texture-based volume rendering。SDK例子使用的是Ray casting算法。 ... 阅读全文
posted @ 2011-07-18 14:23 nickolas 阅读(1864) 评论(0) 推荐(1)
摘要:有关VolumeRender的介绍、和CUDA SDK中的VolumeRender解析在HERESY的一些文章中写的非常详细,这里我只想写写我对VolumeRender这个例子的一些理解。 曾经遇到过cuda函数在跨编译单元调用的问题,这个例子用到了一个很巧妙的解决方法。 首先描述下这个问题,当多个cu或cpp文件互相包含的时候cu文件中的实现会被nvcc生成在多个编译单元中,从而出现重定义链接... 阅读全文
posted @ 2011-07-15 22:35 nickolas 阅读(1012) 评论(0) 推荐(0)
摘要:Directx的详细资料少得可怜,D3D9的BeginScene/EndScene写的含糊其词,终于在MSDN Embedded CE 6.0找到了点信息。Applications notify Microsoft® Direct3D® Mobile that scene rendering is about to begin by calling the IDirect3DMobileDevice::BeginScene method. BeginScene causes the system to check its internal data structures a 阅读全文
posted @ 2011-05-17 19:26 nickolas 阅读(4280) 评论(9) 推荐(0)
摘要:转载自http://www.cppblog.com/lai3d/archive/2008/12/30/70796.htmltemp_span3D图形学的学习策略感谢七星重剑 from http://www.cppblog.com/以我现在的水平观之,3D图形学分3大块的学习内容: a.空间几何数学:空间几何变换,加速算法,多边形技术,曲线和曲面,相交测试,碰撞测试。 b.光照着色系统:光照,纹理贴图,高级象素着色光照,艺术性渲染. c.程序技术性应用:公告板,精灵,天空盒,体绘制,材质系统,场景图,渲染队列.2.在实际学习过程中,3个部分相互制约,故不能单方面突进,应保持一种平衡发展,使得相互 阅读全文
posted @ 2009-11-09 12:56 nickolas 阅读(5089) 评论(2) 推荐(2)