I have a Obj file the import from 3dsmax
now my problem is when i assign a texture to my cube(24 vertices, 24 texture coords, 12 faces) it look like this
http://s16.postimg.org/ivrux0xet/unity.jpg
but in 3dsmax look like this
http://s23.postimg.org/njrg7sra3/3ds.jpg
if someone want my cube.obj i will post it and some code that i use to make a mesh
P.S. i don’t want any plugins like ObjReader I want to improve my skill with unity
Thank.
[Solve] http://forum.unity3d.com/threads/180901-UV-map-via-Script?p=1236776&viewfull=1#post1236776
[Solve] If you import from Obj to Unity
Example you have
v -0.5000 0.0000 0.5000
v 0.5000 0.0000 0.5000
v -0.5000 0.0000 -0.5000
vt 0.0103 0.9856 0.0000
vt 0.0103 0.6834 0.0000
vt 0.3125 0.6834 0.0000
f 1/1 3/2 4/3
cause Unity use uv per face not per vertex then you can’t fetch the vt to mesh.uv directly
the Texture Coord must switch to a vertices coord let’s see
you have [Vertices/Texture Coord]
f v1/vt1 v2/vt2 v3/vt3
f 1/1 3/2 2/3
you must change value in
Maybe everybody know it but I don’t