[Bf-committers] Softbody volume/pressure patch
Janne Karhu
janne.karhu at palvelut.net
Sat Nov 5 15:03:57 CET 2005
>I make the windows compilation with the patch, I have a problem to
> compile in softbody.c, the line is:
> pdDoEffector(bp->pos, force, speed, (float)G.scene->r.cfra,
> ob->lay,PE_WIND_AS_SPEED);
>
> This function want 7 parameters, you only put 6 (I said 7 because this
> function is used one more time in the file)
lguillaume:
This is propably due to my particles patch which you have also applied.. in
the patch I changed pdDoEffector( ) to have one extra argument to make
particle guides work. In the softbody code it shoud be ok just to set the
last argument (the one I added) to zero if you do both patches.
Janne Karhu
----- Original Message -----
From: "LECOCQ Guillaume" <lecocqguillaume at gmail.com>
To: "bf-blender developers" <bf-committers at projects.blender.org>
Sent: Saturday, November 05, 2005 3:26 PM
Subject: Re: [Bf-committers] Softbody volume/pressure patch
>I make the windows compilation with the patch, I have a problem to
> compile in softbody.c, the line is:
> pdDoEffector(bp->pos, force, speed, (float)G.scene->r.cfra,
> ob->lay,PE_WIND_AS_SPEED);
>
> This function want 7 parameters, you only put 6 (I said 7 because this
> function is used one more time in the file)
>
> I will test with, the modification.
>
> Regards, lguillaume.
> 2005/11/5, Nicholas Guttenberg <nichg at guava.physics.uiuc.edu>:
>> There's a missing line in the patch I submitted for volume preservation
>> in softbodies. It causes any mesh with volume stiffness > 0 to collapse
>> in. The reason is, it isn't setting the equilibrium volume when
>> softbodies are reset. The solution is:
>>
>> In blender/source/blender/blenkernel/intern/softbody.c (line 1427 on
>> mine)
>>
>> There is a line:
>>
>> ob->softflag &= ~OB_SB_RESET;
>>
>> Before that, this line should be inserted:
>>
>> sb->eqvolume=softbody_get_volume(ob);
>>
>> It doesn't seem that my patch is on the cvs yet, but it seems it's in one
>> of the windows builds?
>>
>> Nicholas Guttenberg
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at projects.blender.org
>> http://projects.blender.org/mailman/listinfo/bf-committers
>>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
>
More information about the Bf-committers
mailing list