• PUDN用户
    了解作者
  • Visual C++
    开发工具
  • 10MB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 59
    下载次数
  • 2009-11-23 21:32
    上传日期
阿帕奇直升机在C++下的三维演示,模型通过3D Exploring 导成VC++下OpenGL代码,可用于三维演示和控制,及游戏开发
helicopter.rar
  • helicopter
  • Debug
  • vc60.idb
    145KB
  • apache3.ilk
    283.1KB
  • vc60.pdb
    76KB
  • apache2.pch
    3.5MB
  • apache2.pdb
    401KB
  • apache.obj
    371.3KB
  • apache3.pdb
    401KB
  • apache3.obj
    383.9KB
  • apache.pdb
    25KB
  • apache2.ilk
    277.4KB
  • apache.pch
    3.5MB
  • apache3.exe
    632.1KB
  • apache2.exe
    632.1KB
  • apache2.obj
    382.8KB
  • apache3.pch
    3.5MB
  • WING2TEX.JPG
    11.8KB
  • apache.opt
    52.5KB
  • apache1_5.bmp
    532KB
  • apache_8.bmp
    3.7KB
  • apache3_3.bmp
    1.1MB
  • apache1_1.bmp
    74.1KB
  • 70MM.JPG
    753B
  • apache_14.bmp
    12.7KB
  • apache3_9.bmp
    75KB
  • LAKE3.JPG
    129.1KB
  • apache2_3.bmp
    1.1MB
  • apache3_8.bmp
    3.7KB
  • apache2_12.bmp
    210.1KB
  • apache3_7.bmp
    136.9KB
  • apache3_11.bmp
    210.1KB
  • apache.dsw
    537B
  • apache1_0.bmp
    900.1KB
  • apache1_14.bmp
    12.7KB
  • apache_1.bmp
    74.1KB
  • apache2_14.bmp
    12.7KB
  • apache2_13.bmp
    296.7KB
  • apache1_8.bmp
    3.7KB
  • AMMO.JPG
    9KB
  • CHROMIC.JPG
    71KB
  • apache1_12.bmp
    210.1KB
  • apache2_11.bmp
    210.1KB
  • apache_9.bmp
    75KB
  • ROTOR.JPG
    2.7KB
  • apache2_0.bmp
    900.1KB
  • apache1_4.bmp
    881.3KB
  • apache_6.bmp
    301.1KB
  • apache1_2.bmp
    156.5KB
  • apache_13.bmp
    296.7KB
  • apache3_10.bmp
    2.7MB
  • apache3.plg
    1.1KB
  • LIGHT.JPG
    3.2KB
  • apache1_7.bmp
    136.9KB
  • WINGTEXT.JPG
    9.5KB
  • APACHE_L.3DS
    258.2KB
  • apache3_1.bmp
    74.1KB
  • apache_7.bmp
    136.9KB
  • apache3_6.bmp
    301.1KB
  • apache_3.bmp
    1.1MB
  • apache3_2.bmp
    156.5KB
  • apache2_10.bmp
    2.7MB
  • apache3_14.bmp
    12.7KB
  • apache2.plg
    1.1KB
  • apache2.ncb
    49KB
  • apache3.dsw
    537B
  • WINGBUM.JPG
    8.9KB
  • WING2BUM.JPG
    18.5KB
  • CONOPIT.JPG
    21.6KB
  • apache2.cpp
    979KB
  • apache2_9.bmp
    75KB
  • apache3.opt
    52.5KB
  • TURTEX.JPG
    13.1KB
  • SIDEMASK.JPG
    10KB
  • CONOPI.JPG
    35KB
  • BUMPMASK.JPG
    106.9KB
  • apache1_11.bmp
    210.1KB
  • apache2.dsw
    537B
  • apache3.dsp
    3.7KB
  • apache2_8.bmp
    3.7KB
  • apache.dsp
    3.7KB
  • apache3_13.bmp
    296.7KB
  • apache_5.bmp
    532KB
  • apache2_7.bmp
    136.9KB
  • TUR1BUMP.JPG
    9.2KB
  • RIGHTTEX.JPG
    162.7KB
  • apache2_1.bmp
    74.1KB
  • apache.ncb
    41KB
  • apache_0.bmp
    900.1KB
  • WING2MAS.JPG
    22.7KB
  • SIDEBUMP.JPG
    8.1KB
  • TUR2BUMP.JPG
    16.1KB
  • apache1_3.bmp
    1.1MB
  • apache1.cpp
    963KB
  • TUR2MASK.JPG
    17.3KB
  • apache2.opt
    59.5KB
  • apache2.dsp
    3.7KB
  • apache3_4.bmp
    881.3KB
  • apache3.cpp
    979.4KB
  • apache1_13.bmp
    296.7KB
内容介绍
/* This file was produced by 3D Exploration Plugin: CPP Export filter. 3D Exploration Copyright (c) 1999-2000 X Dimension Software WWW http://www.xdsoft.com/explorer/ eMail info@xdsoft.com */ #include <windows.h> #include <GL\gl.h> #include <GL\glu.h> #include <math.h> struct sample_MATERIAL{ GLfloat ambient[3]; GLfloat diffuse[3]; GLfloat specular[3]; GLfloat emission[3]; GLfloat alpha; GLfloat phExp; int texture; }; struct sample_TEXTURE{ char * name; GLint id; }; static sample_MATERIAL materials [23] = { {{0.0f,0.0f,0.0f}, {0.0470588f,0.0470588f,0.0470588f}, {0.19f,0.19f,0.19f}, {0.0f,0.0f,0.0f}, 1.0f,2.14355f,-1}, //Flatblack {{0.0f,0.0f,0.0f}, {0.498039f,0.447059f,0.403922f}, {0.9f,0.9f,0.9f}, {0.0f,0.0f,0.0f}, 1.0f,256.0f,-1}, //Silver Deep {{0.0f,0.0f,0.0f}, {0.215686f,0.192157f,0.176471f}, {0.9f,0.9f,0.9f}, {0.0f,0.0f,0.0f}, 1.0f,588.134f,-1}, //Ammo {{0.0f,0.0f,0.0f}, {0.0352941f,0.0980392f,0.0f}, {0.206549f,0.206549f,0.206549f}, {0.0f,0.0f,0.0f}, 1.0f,6.49802f,-1}, //Wing {{0.0f,0.0f,0.0f}, {0.0509804f,0.196078f,0.00392157f}, {1.0f,1.0f,1.0f}, {0.0f,0.0f,0.0f}, 0.4f,2048.0f,-1}, //Glass {{1.0f,1.0f,1.0f}, {1.0f,1.0f,1.0f}, {1.0f,1.0f,1.0f}, {1.0f,1.0f,1.0f}, 1.0f,6.49802f,4}, //Conopi {{1.0f,1.0f,1.0f}, {1.0f,1.0f,1.0f}, {1.0f,1.0f,1.0f}, {1.0f,1.0f,1.0f}, 1.0f,6.49802f,4}, //Material #1044 {{0.0f,0.0f,0.0f}, {0.215686f,0.192157f,0.176471f}, {0.9f,0.9f,0.9f}, {0.0f,0.0f,0.0f}, 1.0f,588.134f,-1}, //Gun metal {{1.0f,1.0f,1.0f}, {1.0f,1.0f,1.0f}, {1.0f,1.0f,1.0f}, {1.0f,1.0f,1.0f}, 1.0f,6.49802f,4}, //Greenbas {{0.117647f,0.117647f,0.117647f}, {0.752941f,0.752941f,0.752941f}, {0.752941f,0.752941f,0.752941f}, {0.0f,0.0f,0.0f}, 1.0f,8.0f,-1}, //Explorer Default {{0.0f,0.0f,0.0f}, {0.0588235f,0.0509804f,0.0f}, {0.92f,0.92f,0.92f}, {0.0f,0.0f,0.0f}, 1.0f,18.3792f,-1}, //Rotor {{0.0f,0.0f,0.0f}, {0.168627f,0.278431f,0.12549f}, {1.0f,1.0f,1.0f}, {0.0f,0.0f,0.0f}, 0.3f,2048.0f,-1}, //Material #5 {{0.0f,0.0f,0.0f}, {0.980392f,0.807843f,0.0f}, {0.57f,0.57f,0.57f}, {0.0f,0.0f,0.0f}, 1.0f,2.14355f,-1}, //Yellow {{1.0f,1.0f,1.0f}, {1.0f,1.0f,1.0f}, {1.0f,1.0f,1.0f}, {1.0f,1.0f,1.0f}, 1.0f,6.49802f,4}, //Darkgreen {{0.0f,0.0f,0.0f}, {0.12549f,0.12549f,0.12549f}, {0.35f,0.35f,0.35f}, {0.0f,0.0f,0.0f}, 1.0f,14.9285f,-1}, //Black tire {{0.0f,0.0f,0.0f}, {0.0352941f,0.0980392f,0.0f}, {0.206549f,0.206549f,0.206549f}, {0.0f,0.0f,0.0f}, 1.0f,6.49802f,-1}, //70mm {{0.0f,0.0f,0.0f}, {0.0352941f,0.0980392f,0.0f}, {0.23f,0.23f,0.23f}, {0.0f,0.0f,0.0f}, 1.0f,6.49802f,-1}, //Wing2 {{0.0f,0.0f,0.0f}, {0.0352941f,0.0980392f,0.0f}, {0.228196f,0.228196f,0.228196f}, {0.0f,0.0f,0.0f}, 1.0f,6.49802f,-1}, //Fuselage2 {{0.0f,0.0f,0.0f}, {0.0352941f,0.0980392f,0.0f}, {0.23f,0.23f,0.23f}, {0.0f,0.0f,0.0f}, 1.0f,6.49802f,-1}, //Fuselage {{0.0f,0.0f,0.0f}, {0.0352941f,0.0980392f,0.0f}, {0.23f,0.23f,0.23f}, {0.0f,0.0f,0.0f}, 1.0f,6.49802f,-1}, //T2 {{0.0f,0.0f,0.0f}, {0.0352941f,0.0980392f,0.0f}, {0.23f,0.23f,0.23f}, {0.0f,0.0f,0.0f}, 1.0f,6.49802f,-1}, //T1 {{0.0f,0.0f,0.0f}, {0.0352941f,0.0980392f,0.0f}, {0.206549f,0.206549f,0.206549f}, {0.0f,0.0f,0.0f}, 1.0f,6.49802f,-1}, //Side {{1.0f,1.0f,1.0f}, {1.0f,1.0f,1.0f}, {1.0f,1.0f,1.0f}, {1.0f,1.0f,1.0f}, 1.0f,8.0f,14} //Red }; static sample_TEXTURE texture_maps [15] = { {"apache3_0.bmp",0}, {"apache3_1.bmp",0}, {"apache3_2.bmp",0}, {"apache3_3.bmp",0}, {"apache3_4.bmp",0}, {"apache3_5.bmp",0}, {"apache3_6.bmp",0}, {"apache3_7.bmp",0}, {"apache3_8.bmp",0}, {"apache3_9.bmp",0}, {"apache3_10.bmp",0}, {"apache3_11.bmp",0}, {"apache3_12.bmp",0}, {"apache3_13.bmp",0}, {"apache3_14.bmp",0} }; // 5103 Verticies // 2808 Texture Coordinates // 8038 Normals // 9555 Triangles static short face_indicies[9555][9] = { // ApacCock {1,5,0 ,0,1,1 ,0,0,0}, {0,5,4 ,1,1,2 ,0,0,0}, {1,0,3 ,3,4,3 ,0,0,0}, {3,2,1 ,3,5,3 ,0,0,0}, {2,3,7 ,6,7,6 ,0,0,0}, {7,6,2 ,6,8,6 ,0,0,0}, {8,9,23 ,9,9,9 ,0,0,0}, {9,10,16 ,10,11,12 ,0,0,0}, {9,16,25 ,10,12,13 ,0,0,0}, {10,11,17 ,14,14,14 ,0,0,0}, {10,17,16 ,14,14,14 ,0,0,0}, {11,12,18 ,15,15,15 ,0,0,0}, {11,18,17 ,15,15,15 ,0,0,0}, {12,13,19 ,16,16,16 ,0,0,0}, {12,19,18 ,16,16,16 ,0,0,0}, {13,14,20 ,17,17,17 ,0,0,0}, {13,20,19 ,17,17,17 ,0,0,0}, {14,15,21 ,18,18,18 ,0,0,0}, {14,21,20 ,18,18,18 ,0,0,0}, {15,24,21 ,19,20,21 ,0,0,0}, {14,8,15 ,22,23,22 ,0,0,0}, {13,8,14 ,24,23,22 ,0,0,0}, {13,9,8 ,24,24,23 ,0,0,0}, {12,9,13 ,25,24,24 ,0,0,0}, {12,10,9 ,25,26,24 ,0,0,0}, {12,11,10 ,25,27,26 ,0,0,0}, {20,21,24 ,28,28,29 ,0,0,0}, {19,20,24 ,30,28,29 ,0,0,0}, {19,24,25 ,30,29,31 ,0,0,0}, {18,19,25 ,32,30,31 ,0,0,0}, {18,25,16 ,32,31,33 ,0,0,0}, {18,16,17 ,32,33,28 ,0,0,0}, {24,15,8 ,20,19,34 ,0,0,0}, {27,22,23 ,35,36,35 ,0,0,0}, {9,25,23 ,10,13,37 ,0,0,0}, {23,26,27 ,35,38,35 ,0,0,0}, {23,22,8 ,9,9,9 ,0,0,0}, {25,24,27 ,39,39,39 ,0,0,0}, {27,26,25 ,39,39,39 ,0,0,0}, {24,8,22 ,20,34,40 ,0,0,0}, {22,27,24 ,40,40,20 ,0,0,0}, {23,25,26 ,37,13,37 ,0,0,0}, {29,70,30 ,28,28,41 ,0,0,0}, {70,31,30 ,42,43,44 ,0,0,0}, {28,29,33 ,45,46,47 ,0,0,0}, {28,33,32 ,45,47,48 ,0,0,0}, {29,30,33 ,28,41,49 ,0,0,0}, {33,30,34 ,49,41,49 ,0,0,0}, {30,31,35 ,44,43,50 ,0,0,0}, {30,35,34 ,44,50,51 ,0,0,0}, {28,32,36 ,52,28,28 ,0,0,0}, {32,33,37 ,48,47,53 ,0,0,0}, {32,37,36 ,48,53,54 ,0,0,0}, {33,34,37 ,49,49,55 ,0,0,0}, {37,34,38 ,55,49,56 ,0,0,0}, {34,35,39 ,51,50,57 ,0,0,0}, {34,39,38 ,51,57,58 ,0,0,0}, {35,31,39 ,59,60,61 ,0,0,0}, {28,36,40 ,52,28,28 ,0,0,0}, {36,37,41 ,54,53,62 ,0,0,0}, {36,41,40 ,54,62,63 ,0,0,0}, {37,38,41 ,55,56,64 ,0,0,0}, {41,38,42 ,64,56,65 ,0,0,0}, {38,39,43 ,58,57,66 ,0,0,0}, {38,43,42 ,58,66,67 ,0,0,0}, {39,31,43 ,61,60,68 ,0,0,0}, {28,40,44 ,52,28,28 ,0,0,0}, {40,41,45 ,63,62,69 ,0,0,0}, {40,45,44 ,63,69,70 ,0,0,0}, {41,42,45 ,64,65,71 ,0,0,0}, {45,42,46 ,71,65,72 ,0,0,0}, {42,43,47 ,67,66,73 ,0,0,0}, {42,47,46 ,67,73,74 ,0,0,0}, {43,31,47 ,68,60,75 ,0,0,0}, {28,44,48 ,52,28,76 ,0,0,0}, {44,45,49 ,70,69,77 ,0,0,0}, {44,49,48 ,70,77,78 ,0,0,0}, {45,46,49 ,71,72,79 ,0,0,0}, {49,46,50 ,79,72,79 ,0,0,0}, {46,47,51 ,74,73,80 ,0,0,0}, {46,51,50 ,74,80,81 ,0,0,0}, {47,31,51 ,75,60,82 ,0,0,0}, {28,48,52 ,52,76,83 ,0,0,0}, {48,49,53 ,78,77,84 ,0,0,0}, {48,53,52 ,78,84,85 ,0,0,0}, {49,50,53 ,79,79,86 ,0,0,0}, {53,50,54 ,86,79,87 ,0,0,0}, {50,51,55 ,81,80,88 ,0,0,0}, {50,55,54 ,81,88,89 ,0,0,0}, {51,31,55 ,82,60,90 ,0,0,0}, {28,52,56 ,52,83,91 ,0,0,0}, {52,53,57 ,85,84,92 ,0,0,0}, {52,57,56 ,85,92,93 ,0,0,0}, {53,54,57 ,86,87,94 ,0,0,0}, {57,54,58 ,94,87,95 ,0,0,0}, {54,55,59 ,89,88,96 ,0,0,0}, {54,59,58 ,89,96,97 ,0,0,0}, {55,31,59 ,90,60,98 ,0,0,0}, {28,56,60 ,52,91,99 ,0,0,0}, {56,57,61 ,93,92,100 ,0,0,0}, {56,61,60 ,93,100,101 ,0,0,0}, {57,58,61 ,94,95,102 ,0,0,0}, {61,58,62 ,102,95,103 ,0,0,0}, {58,59,63 ,97,96,104 ,0,0,0}, {58,63,62 ,97,104,105 ,0,0,0}, {59,31,63 ,98,60,106 ,0,0,0}, {28,60,64 ,52,99,28 ,0,0,0}, {60,61,65 ,101,100,107 ,0,0,0}, {60,65,64 ,101,107,108 ,0,0,0}, {61,62,65 ,102,103,109 ,0,0,0}, {65,62,66 ,109,103,110 ,0,0,0}, {62,63,67 ,105,104,111 ,0,0,0}, {62,67,66 ,105,111,112 ,0,0,0}, {63,31,67 ,106,60,113 ,0,0,0}, {28,64,68 ,52,28,28 ,0,0,0}, {64,65,69 ,108,107,114 ,0,0,0}, {64,69,68 ,108,114,115 ,0,0,0}, {65,66,69 ,109,110,28 ,0,0,0}, {69,66,70 ,28,110,28 ,0,0,0}, {66,67,71 ,112,111,116 ,0,0,0}, {66,71,70 ,112,116,42 ,0,0,0}, {67,31,71 ,113,60,22 ,0,0,0}, {68,69,29 ,115,114,46 ,0,0,0}, {68,29,28 ,115,46,45 ,0,0,0}, {69,70,29 ,28,28,28 ,0,0,0}, {70,71,31 ,42,116,43 ,0,0,0}, {74,72,75 ,117,118,117 ,0,0,0}, {74,75,77 ,117,117,119 ,0,0,0}, {72,73,76 ,120,120,120 ,0,0,0}, {72,76,75 ,120,120,120 ,0,0,0}, {73,74,77 ,121,122,121 ,0,0,0}, {73,77,76 ,121,121,123 ,0,0,0}, {72,74,73 ,124,124,124 ,0,0,0}, {75,76,77 ,28,28,28 ,0,0,0}, {78,80,81 ,125,126,125 ,0,0,0}, {81,79,78 ,125,22,125 ,0,0,0}, {82,83,85 ,28,28,28 ,0,0,0}, {85,84,82 ,28,28,28 ,0,0,0}, {78,79,83 ,16,16,16 ,0,0,0}, {83,82,7
评论
    相关推荐