<div dir="ltr"><div><br></div>I couldn'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><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Guillaume</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 9, 2015 at 10:19 PM, Mohamed Sakr <span dir="ltr"><<a href="mailto:3dsakr@gmail.com" target="_blank">3dsakr@gmail.com</a>></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 class="h5">On Wed, Dec 9, 2015 at 10:26 PM, Guillaume Rouault <span dir="ltr"><<a href="mailto:guillaume.rouault.fx@gmail.com" target="_blank">guillaume.rouault.fx@gmail.com</a>></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 class="h5"><div dir="ltr">Hi, <div><br></div><div>I can't find any infos on uv coordinates for cycles standalone. As of now, I haven't been able to render an object with the correct uvs. I can see a texture, but it'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><!-- floor shader--></b></div><div><b><shader name="floor" ></b></div><div><b><span style="white-space:pre-wrap">        </span><diffuse_bsdf name="diffuse" roughness="0.05" color="1.0, 1.0, 1.0" /></b></div><div><b><span style="white-space:pre-wrap">        </span><glossy_bsdf name="glossy" roughness="0.05" color="0.2, 0.2, 0.2" /></b></div><div><b><br></b></div><div><b><span style="white-space:pre-wrap">        </span><texture_coordinate name="uv" /></b></div><div><b><span style="white-space:pre-wrap">        </span><image_texture name="tex" src="./maps/aaa.jpg" /></b></div><div><b><span style="white-space:pre-wrap">        </span><add_closure name="mix" /></b></div><div><b><span style="white-space:pre-wrap">        </span><fresnel name="fresnel" /></b></div><div><b><span style="white-space:pre-wrap">        </span><connect from="fresnel fac" to="glossy color" /></b></div><div><b><br></b></div><div><b><span style="white-space:pre-wrap">        </span><connect from="uv uv" to="tex vector" /></b></div><div><b><span style="white-space:pre-wrap">        </span><connect from="tex color" to="diffuse color" /></b></div><div><b><br></b></div><div><b><br></b></div><div><b><span style="white-space:pre-wrap">        </span><connect from="diffuse bsdf" to="mix closure1" /></b></div><div><b><span style="white-space:pre-wrap">        </span><connect from="glossy bsdf" to="mix closure2" /></b></div><div><b><span style="white-space:pre-wrap">        </span><connect from="mix closure" to="output surface" /></b></div><div><b></shader></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'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">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>