I created a textured material in sketchup 2014, and set its texture’s size to 0.4m*1.12m. Then I used SUTextureGetDimensions to get the texture’s size and t&s scale factors. I found that i couldn’t get the right size in meter by
width = pixelwidth * s_scale * 0.0254 height = pixelwidth * t_scale * 0.0254
I found these two formulas at the page How should i use s and t scale factor from SUTexture?.
My texture size is 109*304 pixels. The width and height properties in the Material Browser are 0.40m and 1.12m. The s&t scale factors I got are 0.06325 and 0.02268. So, how can I get 0.40m from 109 and 0.06325?