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

Sergey Sharybin sergey.vfx at gmail.com
Fri Mar 18 13:53:57 CET 2016


Ah, you're right.

But without being able to reproduce the issue can only guess that maybe
it's a sampling issue Did you try returning constant 1.0 for the densities
of the texture?

Another possibility is that you don't have ATTR_STD_GENERATED_TRANSFORM
attribute calculated.

In any case, it's all quite tricky to tell where exactly the issue without
an example which demonstrates the issue.

On Fri, Mar 18, 2016 at 5:41 PM, Mohamed Sakr <3dsakr at gmail.com> wrote:

> 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
>>
>>
>
> _______________________________________________
> Bf-cycles mailing list
> Bf-cycles at blender.org
> http://lists.blender.org/mailman/listinfo/bf-cycles
>
>


-- 
With best regards, Sergey Sharybin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-cycles/attachments/20160318/4469da28/attachment.htm 


More information about the Bf-cycles mailing list