[Bf-cycles] point density doesn't appear correctly

Mohamed Sakr 3dsakr at gmail.com
Fri Mar 18 13:41:58 CET 2016


Hi Sergey,

this tfm works only for World I guess, tried to change it "I'm in Object
space" , but nothing changed.
any idea what else may affect this?

On Fri, Mar 18, 2016 at 2:32 PM, Sergey Sharybin <sergey.vfx at gmail.com>
wrote:

> Hard to guess, but think it's because your node's tfm doesn't match object.
>
> See blender_shader.cpp:902 for examples.
>
> On Fri, Mar 18, 2016 at 5:18 PM, Mohamed Sakr <3dsakr at gmail.com> wrote:
>
>> Hi,
>>
>> I'm creating a custom exporter, I fill a 3d image, passing data
>> to PointDensityTextureNode
>>
>> PointDensityTextureNode *pd = new PointDensityTextureNode();
>> pd->filename = anyString;
>> pd->builtin_data = myData;
>> pd->space = "Object";
>> pd->interpolation = InterpolationType::INTERPOLATION_LINEAR;
>> scene->image_manager->tag_reload_image(
>> pd->filename,
>> pd->builtin_data,
>> pd->interpolation,
>> EXTENSION_CLIP);
>>
>> it appears on object as wrong transform.
>> consider object bounding box from (-1, -1, -1) to (1, 1, 1)
>> texture appears exactly from (0, 0, 0) to (0.5, 0.5, 0.5)
>> what may cause this?
>>
>> cheers,
>> Mohamed Sakr
>>
>>
>> _______________________________________________
>> Bf-cycles mailing list
>> Bf-cycles at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-cycles
>>
>>
>
>
> --
> With best regards, Sergey Sharybin
>
> _______________________________________________
> Bf-cycles mailing list
> Bf-cycles at blender.org
> http://lists.blender.org/mailman/listinfo/bf-cycles
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-cycles/attachments/20160318/ce06df17/attachment.htm 


More information about the Bf-cycles mailing list