Finding image pixel coordinates (integers) from UV values (floats) of obj file
<p>I am parsing an obj file which contains the texture coordinates (vt) values. From what I understand, vt values are a mapping into the texture image corresponding to this obj.</p>

<p>Assume, I have image im = 400x300 pixels</p>

<p>and I have a vt value</p>

<p>vt .33345 .8998</p>

<p>The mapping says, in the image, go the coordinate :</p>

<p>imageWidth x .3345 , imageHeight x .8998 and use the value there.</p>

<p>I have loaded the image values in a 2-d array.</p>

<p>The problem is, these mapping coordinates are floating values, how am I suppose to map them to the integer values of the pixel coordinates ? I can always truncate the decimal part, round off etc. But does the standard defines which one of the option is to be done ?</p>