/*
created with obj2opengl.pl
source file : ./banana.obj
vertices : 4032
faces : 8056
normals : 4032
texture coords : 4420
// include generated arrays
#import "./banana.h"
// set input data to arrays
glVertexPointer(3, GL_FLOAT, 0, bananaVerts);
glNormalPointer(GL_FLOAT, 0, bananaNormals);
glTexCoordPointer(2, GL_FLOAT, 0, bananaTexCoords);
// draw data
glDrawArrays(GL_TRIANGLES, 0, bananaNumVerts);
*/
unsigned int bananaNumVerts = 24168;
float bananaVerts [] = {
// f 231/242/231 132/142/132 131/141/131
0.172233487787643, -0.0717437751698985, 0.228589675538813,
0.176742968653347, -0.0680393472738536, 0.2284149434494,
0.167979223684599, -0.0670168837233226, 0.24286384937854,
// f 131/141/131 230/240/230 231/242/231
0.167979223684599, -0.0670168837233226, 0.24286384937854,
0.166391290343292, -0.0686544011752973, 0.241920432968569,
0.172233487787643, -0.0717437751698985, 0.228589675538813,
// f 235/246/235 136/146/136 133/143/133
0.18579740650656, -0.0805410142475952, 0.183615060441136,
0.193502671874729, -0.074506632461249, 0.182916901533753,
0.18419947153727, -0.0711795823689438, 0.208637137111721,
// f 133/143/133 234/245/234 235/246/235
0.18419947153727, -0.0711795823689438, 0.208637137111721,
0.179664858097284, -0.0749667840309034, 0.208774854003718,
0.18579740650656, -0.0805410142475952, 0.183615060441136,
// f 239/250/239 140/150/140 137/147/137
0.193528402851973, -0.0855017441695988, 0.140222351762007,
0.202908155350291, -0.0783396301575444, 0.139050860488058,
0.199012288577381, -0.0774396991551393, 0.160048714000699,
// f 137/147/137 238/249/238 239/250/239
0.199012288577381, -0.0774396991551393, 0.160048714000699,
0.191108227022194, -0.0835229638807472, 0.160634801557213,
0.193528402851973, -0.0855017441695988, 0.140222351762007,
// f 243/254/243 144/154/144 141/151/141
0.195874505743934, -0.0861583746466884, 0.100337449386171,
0.206012043155309, -0.0784797781272291, 0.0987854625905304,
0.205092776454133, -0.0789316056280539, 0.118904013721094,
// f 141/151/141 242/253/242 243/254/243
0.205092776454133, -0.0789316056280539, 0.118904013721094,
0.195421689775255, -0.0861898279179148, 0.119951038404341,
0.195874505743934, -0.0861583746466884, 0.100337449386171,
// f 247/258/247 148/158/148 145/155/145
0.196427168520807, -0.0867175904437167, 0.0612970565844665,
0.207298725949115, -0.0784677220057506, 0.0592562647314959,
0.206754654404009, -0.0784579259146537, 0.0791254549748496,
// f 145/155/145 246/257/246 247/258/247
0.206754654404009, -0.0784579259146537, 0.0791254549748496,
0.196336853266883, -0.0862813974020394, 0.080602983844927,
0.196427168520807, -0.0867175904437167, 0.0612970565844665,
// f 251/262/251 152/162/152 149/159/149
0.194647961922647, -0.0873029861077477, 0.0227216188579996,
0.205860862371728, -0.0786049579694443, 0.0200725985388985,
0.207037269023553, -0.0786191566466444, 0.0397668858206064,
// f 149/159/149 250/261/250 251/262/251
0.207037269023553, -0.0786191566466444, 0.0397668858206064,
0.195968881664422, -0.087025635613505, 0.0418113537025429,
0.194647961922647, -0.0873029861077477, 0.0227216188579996,
// f 255/266/255 156/166/156 153/163/153
0.189604838845624, -0.0880769772716647, -0.0153424457209392,
0.200904036600124, -0.0789632831690858, -0.0186997974476401,
0.203859265387586, -0.0787923500105929, 0.000742820946198356,
// f 153/163/153 254/265/254 255/266/255
0.203859265387586, -0.0787923500105929, 0.000742820946198356,
0.192566094205696, -0.0876372339041599, 0.00346638427683154,
0.189604838845624, -0.0880769772716647, -0.0153424457209392,
// f 259/270/259 160/170/160 157/167/157
0.180840666346147, -0.0890134332642617, -0.0523704275671168,
0.192110842082182, -0.079564074316242, -0.0563935393552521,
0.197313993657976, -0.0798720032368884, -0.0377640577983625,
// f 157/167/157 258/269/258 259/270/259
0.197313993657976, -0.0798720032368884, -0.0377640577983625,
0.185944826000133, -0.0891612841401922, -0.0342524902050617,
0.180840666346147, -0.0890134332642617, -0.0523704275671168,
// f 263/274/263 164/174/164 161/171/161
0.169117332896966, -0.0887293186106091, -0.0879709749946208,
0.18023384862638, -0.079135846091528, -0.0924707532587487,
0.186461456795223, -0.0793727634184771, -0.0744649726836789,
// f 161/171/161 262/273/262 263/274/263
0.186461456795223, -0.0793727634184771, -0.0744649726836789,
0.175202736151593, -0.0888424370791256, -0.0704456221855521,
0.169117332896966, -0.0887293186106091, -0.0879709749946208,
// f 267/278/267 168/178/168 165/175/165
0.155407276926518, -0.088523396386205, -0.122371137108811,
0.166328629604748, -0.0788266268754357, -0.127316294022644,
0.17358069436664, -0.0789944640251542, -0.109934214604468,
// f 165/175/165 266/277/266 267/278/267
0.17358069436664, -0.0789944640251542, -0.109934214604468,
0.162473624755379, -0.0886047410229847, -0.105438026758116,
0.155407276926518, -0.088523396386205, -0.122371137108811,
// f 271/282/271 172/182/172 169/179/169
0.139710712375241, -0.0883915392212883, -0.155571255829228,
0.1503955271119, -0.0786329304192247, -0.160930503741552,
0.15867187724446, -0.078733079230084, -0.14417178356073,
// f 169/179/169 270/281/270 271/282/271
0.15867187724446, -0.078733079230084, -0.14417178356073,
0.147757876449088, -0.0884432485553505, -0.139230046017366,
0.139710712375241, -0.0883915392212883, -0.155571255829228,
// f 275/286/275 176/186/176 173/183/173
0.122027895551485, -0.0883312493349733, -0.18757115993349,
0.132434711844993, -0.078552659686416, -0.193313040320859,
0.141735262087179, -0.078585884006317, -0.177178021472005,
// f 173/183/173 274/285/274 275/286/275
0.141735262087179, -0.078585884006317, -0.177178021472005,
0.131055918588375, -0.088354592302735, -0.171821679963303,
0.122027895551485, -0.0883312493349733, -0.18757115993349,
// f 279/290/279 180/190/180 177/187/177
0.102358826455248, -0.0883416025115667, -0.218371020819052,
0.112446269415219, -0.0785849998825717, -0.224464417077558,
0.122770977048973, -0.0785515029724388, -0.208952757290985,
// f 177/187/177 278/289/278 279/290/279
0.122770977048973, -0.0785515029724388, -0.208952757290985,
0.112367793891298, -0.0883369863351727, -0.203213099468159,
0.102358826455248, -0.0883416025115667, -0.218371020819052,
// f 283/294/283 184/194/184 181/191/181
0.0807033769323579, -0.0884233732784842, -0.247971009183073,
0.0904301143864617, -0.0787305333038458, -0.254384120694656,
0.1017790648479, -0.0786298876329491, -0.239496162064976,
// f 181/191/181 282/293/282 283/294/283
0.1017790648479, -0.0786298876329491, -0.239496162064976,
0.0916935452509909, -0.088390321056334, -0.233404133659702,
0.0807033769323579, -0.0884233732784842, -0.247971009183073,
// f 287/298/287 188/198/188 185/195/185
0.0570613759355065, -0.0885786387137679, -0.276370441186474,
0.0663861186045457, -0.0789911167851771, -0.283072493091693,
0.0787593971547099, -0.078822331259552, -0.268807893699367,
// f 185/195/185 286/297/286 287/298/287
0.0787593971547099, -0.078822331259552, -0.268807893699367,
0.069033087056262, -0.0885160513312334, -0.262395124282397,
0.0570613759355065, -0.0885786387137679, -0.276370441186474,
// f 291/302/291 192/202/192 189/199/189
0.0315943052528137, -0.0891070290549658, -0.303704041881513,
0.0405313717396845, -0.0796061785649511, -0.310706831192312,
0.0537748486483875, -0.0792200251765126, -0.296940269560252,
// f 189/199/189 290/301/290 291/302/291
0.0537748486483875, -0.0792200251765126, -0.296940269560252,
0.0444495502944439, -0.0888062541835473, -0.290237875735494,
0.0315943052528137, -0.0891070290549658, -0.303704041881513,
// f 295/306/295 196/206/196 193/203/193
0.0041479922609596, -0.0897292956554303, -0.329868202819838,
0.0126364743179475, -0.0803677328214202, -0.337131722499062,
0.0269576222650167, -0.079950
没有合适的资源?快使用搜索试试~ 我知道了~
OBJ2OpenGLES 示例代码
共25个文件
h:5个
m:3个
plist:3个
需积分: 9 7 下载量 90 浏览量
2017-10-13
14:31:59
上传
评论
收藏 4.66MB ZIP 举报
温馨提示
加载简单的模型,使用简单的opengl技术实现,加载简单的模型,使用简单的opengl技术实现,加载简单的模型,使用简单的opengl技术实现,加载简单的模型,使用简单的opengl技术实现,
资源推荐
资源详情
资源评论
收起资源包目录
OBJ2OpenGLES.zip (25个子文件)
OBJ2OpenGLES
main.m 374B
AppleCoder_OpenGLES_00_Prefix.pch 205B
.DS_Store 6KB
AppleCoder-OpenGLES-00.xcodeproj
project.xcworkspace
contents.xcworkspacedata 167B
xcuserdata
xpuzer.xcuserdatad
UserInterfaceState.xcuserstate 15KB
qiufengse.xcuserdatad
UserInterfaceState.xcuserstate 12KB
project.pbxproj 12KB
smaurice.mode1v3 41KB
xcuserdata
xpuzer.xcuserdatad
xcschemes
xcschememanagement.plist 494B
AppleCoder-OpenGLES-00.xcscheme 3KB
qiufengse.xcuserdatad
xcschemes
xcschememanagement.plist 494B
AppleCoder-OpenGLES-00.xcscheme 3KB
smaurice.pbxuser 9KB
Info.plist 883B
Classes
AppleCoder_OpenGLES_00AppDelegate.m 780B
xz.h 947KB
xiezi.png 1.14MB
xiezi.tga 3MB
EAGLView.m 10KB
.DS_Store 6KB
tz.h 3.06MB
EAGLView.h 1KB
AppleCoder_OpenGLES_00AppDelegate.h 467B
banana.h 4.47MB
MainWindow.xib 9KB
共 25 条
- 1
资源评论
alexliull
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功