@remus said:
I dont think you can do exact positioning with the normal SU texture tools.
If you go file->import->texture though, you can position the texture more exactly in your model. Might be worth a try.
Yes, i know.But i think you don't understand what i mean.i use .dae file exported from SketchUp. For example, i draw a cube, and i export it to .dae file. Then i got some vertex, normal and texture coordinates respectively. The following codes are what i got:
<source id="mesh1-geometry-uv">
<float_array id="mesh1-geometry-uv-array" count="48">-178.350505 121.322840 -48.100505 84.572840 -48.100505 121.322840 -178.350505 84.572840 121.322840 0.000000 84.572840 12.000000 84.572840 0.000000 121.322840 12.000000 -178.350505 0.000000 -48.100505 12.000000 -178.350505 12.000000 -48.100505 0.000000 -84.572840 0.000000 -121.322840 12.000000 -121.322840 0.000000 -84.572840 12.000000 48.100505 0.000000 178.350505 12.000000 48.100505 12.000000 178.350505 0.000000 178.350505 84.572840 48.100505 121.322840 48.100505 84.572840 178.350505 121.322840</float_array>
<technique_common>
<accessor source="#mesh1-geometry-uv-array" count="24" stride="2">
<param name="S" type="float" />
<param name="T" type="float" />
</accessor>
</technique_common>
</source>
<source id="mesh1-geometry-position">
<float_array id="mesh1-geometry-position-array" count="24">178.350505 121.322840 0.000000 48.100505 84.572840 0.000000 48.100505 121.322840 0.000000 178.350505 84.572840 0.000000 178.350505 84.572840 12.000000 178.350505 121.322840 12.000000 48.100505 121.322840 12.000000 48.100505 84.572840 12.000000</float_array>
<technique_common>
<accessor source="#mesh1-geometry-position-array" count="8" stride="3">
<param name="X" type="float" />
<param name="Y" type="float" />
<param name="Z" type="float" />
</accessor>
</technique_common>
</source>
<source id="mesh1-geometry-normal">
<float_array id="mesh1-geometry-normal-array" count="18">0.000000 0.000000 -1.000000 1.000000 0.000000 0.000000 0.000000 1.000000 0.000000 -1.000000 0.000000 0.000000 0.000000 -1.000000 0.000000 0.000000 0.000000 1.000000</float_array>
<technique_common>
<accessor source="#mesh1-geometry-normal-array" count="6" stride="3">
<param name="X" type="float" />
<param name="Y" type="float" />
<param name="Z" type="float" />
</accessor>
</technique_common>
</source>
<triangles material="FrontColorNoCulling" count="12">
<input semantic="VERTEX" source="#mesh1-geometry-vertex" offset="0" />
<input semantic="NORMAL" source="#mesh1-geometry-normal" offset="1" />
<input semantic="TEXCOORD" source="#mesh1-geometry-uv" offset="2" set="0" />
<p>0 0 0 1 0 1 2 0 2 1 0 1 0 0 0 3 0 3 0 1 4 4 1 5 3 1 6 4 1 5 0 1 4 5 1 7 0 2 8 6 2 9 5 2 10 6 2 9 0 2 8 2 2 11 1 3 12 6 3 13 2 3 14 6 3 13 1 3 12 7 3 15 1 4 16 4 4 17 7 4 18 4 4 17 1 4 16 3 4 19 4 5 20 6 5 21 7 5 22 6 5 21 4 5 20 5 5 23</p>
</triangles>
Have you found that the uv coordinates are so strange. I want to know how these coordiantes range is set. I want to use the texture coordinates in range of [0,1] that could be used in OpenGL. I have asked this questions in google sketchup forum for many time. One of them told me maybe this problem should be resolved in ruby or SDK. So could anyone give me some suggestions?
Thank you.
Mia