[Sidefx-houdini-list] VDB transform intrinsic

Vincent Fortin vfortin at gmail.com
Fri Jun 10 20:04:33 EDT 2016


Well it looks like I got it to work this way:

matrix vdb_m = primintrinsic(0, "transform", @ptnum);
matrix3 prim_m = primintrinsic(1,"transform", at ptnum);
vector p = point(1,"P", at ptnum);
translate(vdb_m, p);
setprimintrinsic(0, "transform", 0, matrix(prim_m)*vdb_m);


On Fri, Jun 10, 2016 at 7:59 PM, Vincent Fortin <vfortin at gmail.com> wrote:

> What would be the right way to copy the transform from a pack to a vdb?
> I noticed the voxel size is somewhere in there which got me a little
> confused!?
>
> On Fri, Jun 10, 2016 at 4:25 PM, Edward Lam <edward at sidefx.com> wrote:
>
>> I would suggest just changing P if you want to translate the primitive
>> though.
>>
>> -Edward
>>
>>
>> On 10/06/2016 3:05 PM, Gregory Ecker wrote:
>>
>>> eg:  move a vdb +10 in x:
>>>
>>> matrix trans = primintrinsic(0, "transform", 0);
>>> vector t = set(10, 0 , 0);
>>> translate(trans, t);
>>> setprimintrinsic(0, "transform", 0, trans);
>>>
>>>
>>> On Fri, Jun 10, 2016 at 3:00 PM, Gregory Ecker <gregory.ecker at gmail.com>
>>> wrote:
>>>
>>> http://archive.sidefx.com/docs/houdini15.5/vex/functions/setprimintrinsic
>>>>
>>>> On Fri, Jun 10, 2016 at 2:53 PM, Vincent Fortin <vfortin at gmail.com>
>>>> wrote:
>>>>
>>>> Hi,
>>>>> Does anyone know if it's possible to set a VDB's primitive intrinsic
>>>>> transform in VEX or in any other way?
>>>>> I can lay down a Transform SOP and see the values changing but can't
>>>>> modify
>>>>> it the same way I usually do with packed primitives.
>>>>> Thanks!
>>>>> _______________________________________________
>>>>> Sidefx-houdini-list mailing list
>>>>> Sidefx-houdini-list at sidefx.com
>>>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>> Sidefx-houdini-list mailing list
>>> Sidefx-houdini-list at sidefx.com
>>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>>
>>>
>> _______________________________________________
>> Sidefx-houdini-list mailing list
>> Sidefx-houdini-list at sidefx.com
>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>
>
>



More information about the Sidefx-houdini-list mailing list