摘要
目的介绍D3D中环境映射的基本概念,详细论述用D3D实现立方体环境映射和球面环境映射的过程。方法通过原理描述,应用代码实现了立方体环境映射。结果建立了立方体环境映射的模型,通过C++语言给出了实现过程。结论D3D中相关参数的不同设置和SetRenderTarget方法的调用,会产生不同的图形生成效果。
Aim To discuss the process of introduce the basic concepts of environment mapping in D3D, and detailedly using D3D to realize cubic and spherical environment mapping. Methods Through description of some principles and application code, cubic environment mapping has been re- alized. Results The model of cubic environment mapping has been created and the corresponding C+ +code is given. Conclusion The different setting of parameters in D3D and the call of SetRenderTarget can lead to different image effects.
出处
《宝鸡文理学院学报(自然科学版)》
CAS
2009年第2期72-74,共3页
Journal of Baoji University of Arts and Sciences(Natural Science Edition)
关键词
环境映射
纹理映射
立方体环境映射
球面环境映射
environment mapping
texture mapping
cubic environment mapping
spherical environment mapping