mapper

所属分类:OpenGL
开发工具:C/C++
文件大小:853KB
下载次数:224
上传日期:2006-02-16 11:22:44
上 传 者feng_yg
说明:  OpenGL下开发的图形编辑软件(类似有AutoCAD),
(developed under the OpenGL graphics editing software (similar with AutoCAD),)

文件列表:
mapper\Debug (0, 2005-04-05)
mapper\export.cpp (1258, 2003-09-06)
mapper\export.h (320, 2003-09-06)
mapper\foyer_iie.txt (9357, 2003-08-14)
mapper\Glut32.dll (221184, 2001-04-11)
mapper\import.cpp (1318, 2003-09-06)
mapper\import.h (212, 2003-09-05)
mapper\makefile (791, 2003-09-19)
mapper\mapper.cpp (11062, 2003-09-05)
mapper\mapper.dsp (5426, 2003-10-04)
mapper\mapper.dsw (535, 2003-10-03)
mapper\mapper.exe (553011, 2003-10-04)
mapper\mapper.h (1252, 2003-09-05)
mapper\mapper.ncb (166912, 2005-01-09)
mapper\mapper.sln (901, 2005-01-09)
mapper\mapper.suo (9216, 2005-01-09)
mapper\mapper.vcproj (8416, 2005-01-09)
mapper\plan2d.jpg (132639, 2003-10-04)
mapper\point3d.cpp (1192, 2003-09-06)
mapper\point3d.h (414, 2003-09-06)
mapper\polygone.cpp (1768, 2003-09-06)
mapper\polygone.h (718, 2003-09-05)
mapper\scene.cpp (3207, 2003-09-06)
mapper\scene.h (578, 2003-09-05)
mapper\Tess_poly.cpp (5128, 2003-09-06)
mapper\Tess_poly.h (930, 2003-09-05)
mapper\test.txt (13946, 2003-08-15)
mapper\textures\057terresable.bmp (786486, 2003-08-13)
mapper\textures\BRI10.bmp (49206, 2003-07-26)
mapper\textures\test_eau.bmp (786486, 2003-07-25)
mapper\textures (0, 2005-04-05)
mapper\vector3.cpp (1835, 2003-07-09)
mapper\vector3.h (510, 2003-09-05)
mapper\visu3D.cpp (23944, 2003-10-04)
mapper\visu3D.h (1780, 2003-10-04)
mapper\visu3d.jpg (86098, 2003-10-04)
mapper\vitres.cpp (223, 2003-08-14)
mapper\vitres.h (200, 2003-08-14)
mapper (0, 2005-04-05)
... ...

//-----------------------------------// // Mapper 2d -> 3d // // // // summer 2003 // // created by Xavier RIVORY (France) // //-----------------------------------// This program is licensed under the GPL. ----------------------------------------------------------- 0. Presentation ----------------------------------------------------------- Here is one of my first project with OpenGL. I tried to do my best for explanations in the sources (most of them are in French...). I used VC++, therefore, i wanted to make a program that runs under LinuxOS without modification, and with very modular parts. The project allows you to generate a 3D-textured environment from a 2D map. there are some kind effects such as blending to simulate windows... Libraries used: glui, glut and glaux (for tesselation class "Tess_poly") ----------------------------------------------------------- 1. Goal of the project ----------------------------------------------------------- Just develop some classes that anyone could use: - point3d: no comment! - vector3: idem - polygone: some utils for polygone - scene: many polygones compose a scene - tess_poly: tesselation of polygone! This is usefull when you are not operating on convex polygones. - visu3D: here is the main class you will have to adapt if you want to create a game or a demo without the 'mapper' part ----------------------------------------------------------- 2. Running ----------------------------------------------------------- run "mapper.exe" . I used VC++; therefore, you can compile all sources under Linux OS (see makefile). In this version of the project, you will have to comment the 'GetTickCount' line in "GetFPS" function of visu3D.ccp file, because it is not define under linux... (i might use time.h lib to count FPS!) ----------------------------------------------------------- 3. How to use the mapper program ----------------------------------------------------------- 'Plan 2D' window: When running mapper, a first window will appear: 'Plan 2D' In this window, you can create a 2D-map (just create many polygones). Each polygone represents a wall or a window (in the latter case, check the box 'vitres' in the polygone interface) To select a polygone, check 'selection' and precise the polygon number ( 'N polygone'). You can precise the height of the polygone ( "alt base" for the bottom and "alt haut" for the top of the wall) Clicking on "Visualisation 3D" will open a new window: see the 3D environment! For an example of a 2D map, import "test.txt" file... ----------------------------------------------------------- 4. Bugs ----------------------------------------------------------- Because i wanted to create a "visu3D" class you should use with the less modifications, there are 2 OpenGL windows running from the mapper program: so, there are 2 glutIdleTunction running at the same time! this creates some conflict when you quit the "Visualisation 3D" window, or when you wanted to modify your 2D map after running 3d view. I don't find how to fix this bug. A possibility would be to use only one IdleFunc, but as a consequence, modifications would be harder when you want to split "mapper" part and "visu3D" part. ----------------------------------------------------------- 5. Questions / Comments ----------------------------------------------------------- For any questions or comments don't hesitate to contact me at rivory@iie.cnam.fr or rivory_x@yahoo.fr Enjoy! Visit http://nehe.gamedev.net/ and you will learn a lot about OpenGL! Xavier Rivory

近期下载者

相关文件


收藏者