Starrider Posted July 22, 2008 Share Posted July 22, 2008 Hi! I'm trying to transfer position/normal data from a mesh to particles in UV space. Should work fine but as it seems the attribTransfer is doing a bit of strange stuff when interpolating between the sampled points. I'd say that if one point is sitting on a quad polygon, transfering attributes from that and i set it up so that it's doing 4 samples, it should do a smooth interpolation and not jump to always the same positions. I've attached a file to make it more clear. Any ideas? Am I doing something wrong? Cheers! Daniel transferAttribProblem.hip Quote Link to comment Share on other sites More sharing options...
edward Posted July 22, 2008 Share Posted July 22, 2008 Well, first of all P is only a pseudo-attribute so if you want to transfer point position, you have to explicitly put in P and Cd into the Points parameter. transferAttribProblem.hip Quote Link to comment Share on other sites More sharing options...
Starrider Posted July 22, 2008 Author Share Posted July 22, 2008 Hm I think I don't need P because it's stored in Cd and Cd is automatically transfered if "copy local variables" is set, isn't it? anyway - thanks for the reply! Quote Link to comment Share on other sites More sharing options...
edward Posted July 22, 2008 Share Posted July 22, 2008 Everything behaves as I would expect so not sure what's the result you're looking for. Quote Link to comment Share on other sites More sharing options...
Starrider Posted July 22, 2008 Author Share Posted July 22, 2008 (edited) I thought that transferAttributes would do some interpolation like shown below with weighted results based on the distances to the sampled points. But if it would do that the resulting points would not sit on that kind of grid the result shows. They'd sit randomly scattered (as the scatter does) on the cylinder. Am I overlooking anything? Edited July 22, 2008 by Starrider Quote Link to comment Share on other sites More sharing options...
edward Posted July 22, 2008 Share Posted July 22, 2008 It does do that, but the result is weighted by the distance through a bell curve (the Kernel Function) with a radius much larger than the distance between your grid points. Try setting your Kernel Radius to 0.13. Quote Link to comment Share on other sites More sharing options...
MENOZ Posted March 16, 2009 Share Posted March 16, 2009 It does do that, but the result is weighted by the distance through a bell curve (the Kernel Function) with a radius much larger than the distance between your grid points. Try setting your Kernel Radius to 0.13. I cant get it to work.. can you help me please? it don't seems to blend the value of the attribute based on distance.. it just snap to the value.. distanceAttributeTransfer.hipnc Quote Link to comment Share on other sites More sharing options...
sibarrick Posted March 16, 2009 Share Posted March 16, 2009 I'm not sure what that hip file is meant to show. You are attribute transferring from only 1 point so it has nothing to interpolate between. You are basically forcing it to only find 1 value and where that value is in range the target point is set to that value once outside the radius everything else becomes 0. This is exactly what i'd expect. You need to be transferring data from more than 1 point before it has any values to interpolate and then you will need to turn up the number of samples to be > 1 Quote Link to comment Share on other sites More sharing options...
sibarrick Posted March 16, 2009 Share Posted March 16, 2009 Actually you should be able to get what you need I think using the blend width parameter. But for some reason I can get it to work on a grid but not your sphere.... distanceAttributeTransfer1.hipnc Quote Link to comment Share on other sites More sharing options...
MENOZ Posted March 16, 2009 Share Posted March 16, 2009 it seems that attributeTransfer can blend Cd attribute well, but not the custom attribute "ratio". why this? Quote Link to comment Share on other sites More sharing options...
mnu Posted April 30, 2015 Share Posted April 30, 2015 To use the blend function the attribute to transfer has to be present on the geometry you are tansfering to. Then the kernel function acts as a falloff curve. cheers mnu Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.