VCP

所属分类:DirextX编程
开发工具:Visual C++
文件大小:726KB
下载次数:21
上传日期:2009-03-04 18:14:23
上 传 者135917
说明:  用DirectX 实现镜面反射贴图效果用DirectX 实现镜面反射贴图效果
(Virtual Camera Position (VCP))

文件列表:
VCP\data (0, 2002-10-17)
VCP\data\BrickTex.jpg (52448, 2002-10-17)
VCP\data\cloth1a.jpg (36078, 2002-10-13)
VCP\data\moon.jpg (10360, 2002-10-17)
VCP\data\redspace.jpg (36926, 2002-10-13)
VCP\data\sky1e.jpg (7402, 2002-10-17)
VCP\data\sphere.x (1737, 2002-10-17)
VCP\data\TheRoom.x (13165, 2002-10-14)
VCP\data\wierd1g.jpg (34251, 2002-10-13)
VCP\data\wierd9g.jpg (50808, 2002-10-13)
VCP\include (0, 2002-10-14)
VCP\include\d3dapp.h (9214, 2002-09-11)
VCP\include\d3dfile.h (4497, 2002-09-11)
VCP\include\d3dfont.h (2487, 2002-09-11)
VCP\include\d3dres.h (1664, 2002-09-11)
VCP\include\d3dutil.h (10718, 2002-09-11)
VCP\include\dxutil.h (5180, 2002-09-11)
VCP\include\EnvMirror.h (3213, 2002-10-14)
VCP\resource.h (1333, 2002-09-11)
VCP\src (0, 2002-12-15)
VCP\src\d3dapp.cpp (75328, 2002-09-11)
VCP\src\d3dfile.cpp (26490, 2002-09-11)
VCP\src\d3dfont.cpp (23795, 2002-09-11)
VCP\src\d3dutil.cpp (23266, 2002-09-11)
VCP\src\dxutil.cpp (23668, 2002-09-11)
VCP\src\EnvMirror.cpp (12299, 2002-12-13)
VCP\src\VirtualCameraPosition.cpp (14892, 2002-12-15)
VCP\VCP_Release.exe (421888, 2002-12-15)
VCP\VirtualCameraPosition.ncb (543744, 2002-12-15)
VCP\VirtualCameraPosition.sln (946, 2002-12-15)
VCP\VirtualCameraPosition.suo (9728, 2002-12-15)
VCP\VirtualCameraPosition.vcproj (4242, 2002-12-15)
VCP\winmain.aps (50568, 2002-09-11)
VCP\winmain.rc (5068, 2002-09-11)
VCP\Yoda-1.ico (8294, 2002-09-11)
VCP (0, 2002-12-15)

////////////////////////////////////////////////////////////////// /// /// /// 3D Reflections (Virtual Camera Position) /// /// /// /// 15th Oct 2002 /// /// /// /// Contact: /// /// Yen Kwoon, Hun 2002 /// /// codeman_net@hotmail.com /// /// http://www.geocities.com/codeman_net /// /// /// ////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// Description: This sample application demostrates the concept of robust 3D reflections using the VCP methods described at the following paper: http://geocities.com/codeman_net/graphics.html I designed the reflection method into a class called CEnvMirror, which is designed to be easily used in the DX common file framework. If you have gone through the paper above, you should know that the VCP technique allows the mirror to be placed anywhere in a 3D scene at any orientation. Give it a try. Set up mirrors are different or weird positions and test the robustness of the technique. Its takes a lot of work off the designers as you only need the world coor of four points in the scene and no texturing or pre processing work from the designers. The code is quite heavily commented and you could find paragraphs of comment at areas which i feel are important. If you have any questions, feel free to email me. ////////////////////////////////////////////////////////////////// Limitiation: Eat up about 20%-30% of fps for each mirror in a scene when in windowed mode.The CEnvMirror class is designed to work as a planar mirror. Moving behind the mirror turns the reflection generation off and speeds up fps to normal level. No other limitations noted. ////////////////////////////////////////////////////////////////// Specs: Developed using VS.NET and DirectX8.1 AMD Duron 800Hz GeForce4 Ti4600 128MB ////////////////////////////////////////////////////////////////// Information: Related document at: http://geocities.com/codeman_net/graphics.html //////////////////////////////////////////////////////////////////

近期下载者

相关文件


收藏者