0

I have f 11/27/2 9/61/2 41/62/2 25/28/2 with f indicating face of a polygon. It's line 8114 of wooden watch tower2.obj in format f <integer A_V>/<integer A_VT>/<integer A_VN> <integer B_V>/... with <integer A_VT> being a texture coordinate index (27 referencing vt 0.4877 0.2630), which I suppose when scaled by textures dimensions 0.4877 * texture.width and 0.2630 * texture.height gives x,y coordinates to a pixel of the texture (Wood_Tower_Col.jpg).

But if that would be correct, the number of texture coordinates (4018) would match the number of vertices (3845). What am I doing wrong?

user4157124
  • 2,809
  • 13
  • 27
  • 42
mardari
  • 25
  • 3
  • "*What am I doing wrong?*" What are you doing at all? And why would there be anything wrong with a file you downloaded that displays correctly? Texture maps relate image files to vertex faces relatively (0-1 as opposed to pixels) scaling them as a result. Look up UV-mapping (and Wavefront OBJ file specification). – user4157124 Sep 03 '23 at 00:20
  • Does this answer your question? [What's the Meaning of Texture Coordinate in obj Files](https://stackoverflow.com/questions/38370389/whats-the-meaning-of-texture-coordinate-in-obj-files) – user4157124 Sep 03 '23 at 00:21

0 Answers0