iphone - Textures in Opengl ES 2 not working properly -


i'm working opengl es 2 on iphone , right trying textures working on objects. i'm using .obj files , data in them correct. have written parser myself retrieve data, convert static arrays in c. discard material properties now, getting image path .mtl files manually.

i have object 336 triangles, making non-trivial observe, appertaining vertices, vertex faces , texture coordinates (u,v).

passing data shaders, resulting image this:

http://img530.imageshack.us/img530/9637/pic1io.png

http://img404.imageshack.us/img404/7358/pic2pg.png

but should (displaying in object viewer). please ignore material properties.

http://img16.imageshack.us/img16/1401/pic3cq.png

using image texture:

http://img217.imageshack.us/img217/1300/shirtdiffuse.png

i'm thinking might have texture coordinate faces ? defined in .obj file, , i'm not using them @ all. in books , tutorials have not found concerning this.

regards niclas

have tried flip texture vertically? times when texture has been loaded layed out in memory vertical lines come in opposit direction intended in texcoords.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -