<div dir="ltr">in blender_mesh.cpp, find attr_create_uv_map() function and see how they create UVs</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 9, 2015 at 10:26 PM, Guillaume Rouault <span dir="ltr">&lt;<a href="mailto:guillaume.rouault.fx@gmail.com" target="_blank">guillaume.rouault.fx@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, <div><br></div><div>I can&#39;t find any infos on uv coordinates for cycles standalone. As of now, I haven&#39;t been able to render an object with the correct uvs. I can see a texture, but it&#39;s mapped to every triangle on the mesh. </div><div><br></div><div>I searched the xml api , and came up with that setup :</div><div><br></div><div><br></div><div><div><b>&lt;!-- floor shader--&gt;</b></div><div><b>&lt;shader name=&quot;floor&quot; &gt;</b></div><div><b><span style="white-space:pre-wrap">        </span>&lt;diffuse_bsdf name=&quot;diffuse&quot; roughness=&quot;0.05&quot; color=&quot;1.0, 1.0, 1.0&quot; /&gt;</b></div><div><b><span style="white-space:pre-wrap">        </span>&lt;glossy_bsdf name=&quot;glossy&quot; roughness=&quot;0.05&quot; color=&quot;0.2, 0.2, 0.2&quot; /&gt;</b></div><div><b><br></b></div><div><b><span style="white-space:pre-wrap">        </span>&lt;texture_coordinate name=&quot;uv&quot; /&gt;</b></div><div><b><span style="white-space:pre-wrap">        </span>&lt;image_texture name=&quot;tex&quot; src=&quot;./maps/aaa.jpg&quot; /&gt;</b></div><div><b><span style="white-space:pre-wrap">        </span>&lt;add_closure name=&quot;mix&quot; /&gt;</b></div><div><b><span style="white-space:pre-wrap">        </span>&lt;fresnel name=&quot;fresnel&quot; /&gt;</b></div><div><b><span style="white-space:pre-wrap">        </span>&lt;connect from=&quot;fresnel fac&quot; to=&quot;glossy color&quot; /&gt;</b></div><div><b><br></b></div><div><b><span style="white-space:pre-wrap">        </span>&lt;connect from=&quot;uv uv&quot; to=&quot;tex vector&quot; /&gt;</b></div><div><b><span style="white-space:pre-wrap">        </span>&lt;connect from=&quot;tex color&quot; to=&quot;diffuse color&quot; /&gt;</b></div><div><b><br></b></div><div><b><br></b></div><div><b><span style="white-space:pre-wrap">        </span>&lt;connect from=&quot;diffuse bsdf&quot; to=&quot;mix closure1&quot; /&gt;</b></div><div><b><span style="white-space:pre-wrap">        </span>&lt;connect from=&quot;glossy bsdf&quot; to=&quot;mix closure2&quot; /&gt;</b></div><div><b><span style="white-space:pre-wrap">        </span>&lt;connect from=&quot;mix closure&quot; to=&quot;output surface&quot; /&gt;</b></div><div><b>&lt;/shader&gt;</b></div></div><div><b><br></b></div><div><b><br></b></div><div>Am I on the right path ? <b><br></b></div><div>Are there any examples or infos on uvs somewhere ?</div><div>Actually, on my meshes,  I don&#39;t even know if I have to export uv coords as vector2  (uv) , or vector3 (uvw) ?</div><span class="HOEnZb"><font color="#888888"><div><b><br></b></div><div><b><br></b></div><div><b>Guillaume</b></div></font></span></div>
<br>_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org">Bf-cycles@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-cycles" rel="noreferrer" target="_blank">http://lists.blender.org/mailman/listinfo/bf-cycles</a><br>
<br></blockquote></div><br></div>