<div dir="ltr">you made my day Sergey :)<br>just figured a stupid bug in my code where it missed <span style="font-size:12.8px">ATTR_STD_GENERATED_</span><span style="font-size:12.8px">TRANSFORM because I didn&#39;t call shader-&gt;tag_update() !<br><br>thanks for the help.<br>cheers,<br>Mohamed Sakr</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 18, 2016 at 2:53 PM, Sergey Sharybin <span dir="ltr">&lt;<a href="mailto:sergey.vfx@gmail.com" target="_blank">sergey.vfx@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">Ah, you&#39;re right.<div><br></div><div>But without being able to reproduce the issue can only guess that maybe it&#39;s a sampling issue Did you try returning constant 1.0 for the densities of the texture?</div><div><br></div><div>Another possibility is that you don&#39;t have ATTR_STD_GENERATED_TRANSFORM attribute calculated.</div><div><br></div><div>In any case, it&#39;s all quite tricky to tell where exactly the issue without an example which demonstrates the issue.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 18, 2016 at 5:41 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">Hi Sergey,<br><br>this tfm works only for World I guess, tried to change it &quot;I&#39;m in Object space&quot; , but nothing changed.<br>any idea what else may affect this?<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 18, 2016 at 2:32 PM, Sergey Sharybin <span dir="ltr">&lt;<a href="mailto:sergey.vfx@gmail.com" target="_blank">sergey.vfx@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">Hard to guess, but think it&#39;s because your node&#39;s tfm doesn&#39;t match object.<div><br></div><div>See blender_shader.cpp:902 for examples.</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Fri, Mar 18, 2016 at 5:18 PM, Mohamed Sakr <span dir="ltr">&lt;<a href="mailto:3dsakr@gmail.com" target="_blank">3dsakr@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,<br><br>I&#39;m creating a custom exporter, I fill a 3d image, passing data to PointDensityTextureNode<br><br>PointDensityTextureNode *pd = new PointDensityTextureNode();<br>pd-&gt;filename = anyString;<br>pd-&gt;builtin_data = myData;<br>pd-&gt;space = &quot;Object&quot;;<br>pd-&gt;interpolation = InterpolationType::INTERPOLATION_LINEAR;<br><div>scene-&gt;image_manager-&gt;tag_reload_image(</div><div><span style="white-space:pre-wrap">        </span>pd-&gt;filename,</div><div><span style="white-space:pre-wrap">        </span>pd-&gt;builtin_data,</div><div><span style="white-space:pre-wrap">        </span>pd-&gt;interpolation,</div><div><span style="white-space:pre-wrap">        </span>EXTENSION_CLIP);<br><br>it appears on object as wrong transform.<br>consider object bounding box from (-1, -1, -1) to (1, 1, 1)<br>texture appears exactly from (0, 0, 0) to (0.5, 0.5, 0.5)<br>what may cause this?<br><br>cheers,<br>Mohamed Sakr<br><br></div></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><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div><span style="color:rgb(102,102,102)">With best regards, Sergey Sharybin</span></div></div>
</font></span></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" 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><br clear="all"><div><br></div>-- <br><div><div><span style="color:rgb(102,102,102)">With best regards, Sergey Sharybin</span></div></div>
</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>