<div dir="ltr">it is under cycles/src/blender/<br>you can search for ATTR_STD_UV inside cycles_xml.cpp<br><br>cheers,<br>Mohamed Sakr</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 9, 2015 at 11:42 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"><div><br></div>I couldn&#39;t find a file named <span style="font-size:12.8px">blender_mesh.cpp in the sources I have.</span><div><span style="font-size:12.8px">And I think it would mainly give me some infos on how to format the mesh in the xml object file. but my main issue, I think, is at the shader level in the scene xml file, using the standalone XML API . How do I force the shader to use uv coordinates provided on the mesh ? </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Now that I think of it, there are no examples using uv mapped objects in the /examples folder, at least nothing using coordinates generated during modeling.  Is it even supported at this stage in the standalone version ? </span></div><span class="HOEnZb"><font color="#888888"><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Guillaume</span></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 9, 2015 at 10:19 PM, Mohamed Sakr <span dir="ltr">&lt;<a href="mailto:3dsakr@gmail.com" target="_blank">3dsakr@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">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"><div><div>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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><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><font color="#888888"><div><b><br></b></div><div><b><br></b></div><div><b>Guillaume</b></div></font></span></div>
<br></div></div>_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org" target="_blank">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>
<br>_______________________________________________<br>
Bf-cycles mailing list<br>
<a href="mailto:Bf-cycles@blender.org" target="_blank">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>
</div></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>