statue

所属分类:OpenGL
开发工具:Visual C++
文件大小:543KB
下载次数:27
上传日期:2005-09-06 14:41:07
上 传 者ming_guo
说明:  实用opengl+vc编程的程序,表现opengl纹理和混合特性,非常容易理解,适合新手
(practical opengl vc programming procedures, performance opengl texture and mixing characteristics and very easy to understand for newcomers)

文件列表:
statue-rel\statue\data\dolphins.mtl (342, 1996-02-13)
statue-rel\statue\data\dolphins.obj (50315, 1996-02-13)
statue-rel\statue\data\marble1.rgb (31390, 1995-12-13)
statue-rel\statue\data\marble2.rgb (195041, 1995-12-13)
statue-rel\statue\data\paisley.rgb (49361, 1995-12-13)
statue-rel\statue\data\rose+vase.mtl (463, 1995-12-13)
statue-rel\statue\data\rose+vase.obj (368428, 1996-02-08)
statue-rel\statue\data\venus.mtl (85, 1995-12-13)
statue-rel\statue\data\venus.obj (42980, 1995-12-13)
statue-rel\statue\data\wood.rgb (31596, 1996-02-13)
statue-rel\statue\Makefile (652, 1996-02-08)
statue-rel\statue\Makefile.aix (405, 1996-02-08)
statue-rel\statue\Makefile.hpux (458, 1996-02-08)
statue-rel\statue\Makefile.irix (406, 1996-02-08)
statue-rel\statue\Makefile.nt (481, 1997-02-11)
statue-rel\statue\Makefile.osf (405, 1996-02-08)
statue-rel\statue\Makefile.solaris (411, 1996-02-08)
statue-rel\statue\NOTICE (2417, 1996-02-08)
statue-rel\statue\statue.c (28017, 1996-02-08)
statue-rel\statue\statue.exe (325632, 1997-02-11)
statue-rel\td\Makefile (635, 1995-07-27)
statue-rel\td\Makefile.aix (563, 1995-09-06)
statue-rel\td\Makefile.hpux (568, 1995-09-06)
statue-rel\td\Makefile.irix (564, 1996-02-06)
statue-rel\td\Makefile.nt (274, 1997-02-11)
statue-rel\td\Makefile.osf (563, 1995-09-06)
statue-rel\td\Makefile.solaris (566, 1995-09-06)
statue-rel\td\NOTICE (2417, 1996-02-08)
statue-rel\td\Reference.txt (17717, 1996-02-06)
statue-rel\td\td.h (20277, 1997-02-11)
statue-rel\td\td.lib (261682, 1997-02-11)
statue-rel\td\tdDecimate.c (8971, 1996-02-08)
statue-rel\td\tdDraw.c (16032, 1996-02-08)
statue-rel\td\tdError.c (5330, 1996-02-08)
statue-rel\td\tdFile.c (7709, 1996-02-08)
statue-rel\td\tdGenerate.c (12805, 1996-02-08)
statue-rel\td\tdMisc.c (17090, 1996-02-08)
statue-rel\td\tdOBJ.c (652847, 1996-05-07)
statue-rel\td\tdOBJ.h (4261, 1996-02-08)
... ...

Statue ------ This program shows off the texturing and blending features of OpenGL. I wrote the core code for doing reflections in a plane in late '94, and nothing really came of it. But at SIGGRAPH '95, SGI was showing off the same effect, and I started to spice up my old program (it was called "mirror" and basically used a grayish-silver plane, so it looked like the object was sitting on top of a mirror.) This is the result. Quite amazing reflection for OpenGL rendering! I included two models that produce good pictures. Try invoking the program with these options: statue -s data/venus.obj -t data/marble1.rgb -f "ttttttAA!" to see a spinning Venus de Milo statue on a really shiny red marble pedestal. I use kindof a wacky method of managing the menus, but it tends to work out really well if you want to add a GUI (like Motif) to the program. It also adds a keypress to each menu function (much like most windowing systems). All the functions run through the menu callback so that the menu always reflects the current state. It also makes it easy to add new functionality, because can all be added in one function. The menus look best when GLUT uses a fixed width font for the menus, so I usually change the GLUT code and recompile with a fixed width font (see glut_menu.c.) This will make the keys and current states shown in the menu line up nicely. In glut_menu.c change: menuFont = XLoadQueryFont(__glutDisplay, "-*-helvetica-bold-o-normal--14-*-*-*-p-*-iso8859-1"); to: menuFont = XLoadQueryFont(__glutDisplay, "-misc-fixed-bold-r-normal-*-*-120-*-*-*-*-iso8859-1"); or some other fixed width font. Please send bug reports, etc., to the address below. -Nate -- /| .--.-- / | /(___) Nate Robins / | / / \ narobins@es.com .' |/ \___/ http://www.cs.utah.edu/~narobins (OpenGL + GLUT-NT)

近期下载者

相关文件


收藏者