Software_cloth

所属分类:图形图像处理
开发工具:Visual C++
文件大小:185KB
下载次数:233
上传日期:2006-06-25 21:05:51
上 传 者hy
说明:  使用一种新的算法模拟窗帘的运动过程,虚拟现实中环境的实现的演示算法
(use a new method to simulate the movement of curtains, virtual reality environment for the realization of the demonstration algorithm)

文件列表:
Software_cloth\SimProps.h (1284, 1999-02-06)
Software_cloth\AddSpher.cpp (1149, 1999-04-12)
Software_cloth\AddSpher.h (1252, 1999-04-12)
Software_cloth\BabysGotBack.dps (23552, 1999-04-12)
Software_cloth\Clothy.cpp (4208, 1999-04-12)
Software_cloth\Clothy.dep (1253, 1999-04-12)
Software_cloth\Clothy.dsp (5568, 1999-04-12)
Software_cloth\Clothy.dsw (535, 1999-04-12)
Software_cloth\Clothy.exe (294912, 1999-09-23)
Software_cloth\Clothy.h (1968, 1999-04-12)
Software_cloth\Clothy.mak (10337, 1999-04-12)
Software_cloth\Clothy.rc (16999, 1999-04-12)
Software_cloth\LoadOBJ.cpp (13268, 1999-02-06)
Software_cloth\LoadOBJ.h (1263, 1998-12-19)
Software_cloth\MainFrm.cpp (12216, 1999-09-23)
Software_cloth\MainFrm.h (3912, 1999-04-12)
Software_cloth\MathDefs.cpp (3154, 1998-12-20)
Software_cloth\MathDefs.h (2817, 1998-12-20)
Software_cloth\NewCloth.cpp (2053, 1999-04-12)
Software_cloth\NewCloth.h (1414, 1999-04-12)
Software_cloth\OGLView.cpp (30079, 1999-09-23)
Software_cloth\OGLView.h (3635, 1999-09-23)
Software_cloth\PhysEnv.cpp (38630, 1999-05-15)
Software_cloth\PhysEnv.h (4872, 1999-04-12)
Software_cloth\resource.h (4519, 1999-04-12)
Software_cloth\SetVert.cpp (943, 1999-04-12)
Software_cloth\SetVert.h (1201, 1999-02-06)
Software_cloth\SimProps.cpp (1333, 1999-04-12)
Software_cloth\Clothy.ico (1078, 1998-11-18)
Software_cloth\Clothy.rc2 (399, 1998-12-19)
Software_cloth\Squashy.ico (1078, 1999-04-12)
Software_cloth\Skeleton.cpp (4687, 1999-02-07)
Software_cloth\Skeleton.h (6043, 1998-12-19)
Software_cloth\StdAfx.cpp (204, 1999-04-12)
Software_cloth\StdAfx.h (987, 1997-11-18)
Software_cloth\Test1.dps (18704, 1999-04-12)
Software_cloth\Test2.dps (18704, 1999-04-12)
Software_cloth\TimeProps.cpp (1160, 1999-04-12)
Software_cloth\TimeProps.h (1265, 1999-02-11)
... ...

3D Cloth Simulation Demonstration April 10, 1999 -------------------------------------------------------- v. 1.0 This is the sample application that accompanies the May 99 Game Developer magazine. It is meant as a demonstration of a method for 3D cloth simulation in OpenGL. Cloth simulation is a very complex process. This column and demo just scratches the surface. It is simply a way of building a form of cloth using the mass and spring system from last month. It is sort of a macro function (CreateClothPatch in OGLView.cpp) that builds all the various springs and attaches them. There are many places it can be improved and modified. Please read the article and check the references in the "For Further Info" section if you are really interested in cloth simulation. Ideas for Optimization and expansion: 1. Change the springs to work on the Squared distance to avoid the sqrt for each spring. 2. The collision detection really slows things down. The model could be changed so that it didn't back up the sim for cloth->sphere collisions. You could simply move the vertex outside the sphere. I have tried this and it makes things a bunch faster at the expense of some accuracy. 3. Optimize the integration code. Especially the RK4 needs some work. 4. Add a fix to the "super-elastic" effect I described in the article. 5. Add an implicit integrator like in the Witkin and Baraff reference. 6. Add in cloth->box collision. Hopefully this will get you started. If you make any improvements send them to me and I will post them with a credit to you. Write to me if you have problems or questions and check the web site or Game Developer's web site for updates. I hope to expand on this demo some more in the future. Jeff Lander jeffl@darwin3d.com www.darwin3d.com/gamedev.htm ----------------------------------------------------------- I compiled the code with Visual C++ 6.0. It has been tested with Microsoft OpenGL, SGI OpenGL for Windows, Permidia 1 and 2 OpenGL Drivers, Riva 128 (New Beta OGL Drivers), AccelGalaxy, and Symetra Ultra FX Pro. It should run on any OpenGL fully complient driver. This DOES NOT include the mini-QuakeGL driver for 3DFX. 3DFX OpenGL does not support OpenGL in a window so will not work with this application. Also, depending on how well GLlines are drawn on your system, the sim should run too fast, too slow, or just right. I try to lock it to the clock except to set the timesteps. If it is strange, adjust COGLView::RunSim().

近期下载者

相关文件


收藏者