yjcnbnbnb200 Posted June 18, 2013 Share Posted June 18, 2013 20130618.hipncFetching info... In my hip file you can open up detial view and render the scene with normalize node work. And you can see a pure white image. And all the values in outputLength ( a custom point attribute) is [1, 1, 1], but if I disabled the normalized node, the value is corrected and I do not know why. Thanks very much. Quote Link to comment Share on other sites More sharing options...
gui Posted June 18, 2013 Share Posted June 18, 2013 that´s what normalize does, it makes the vector´s length equal 1, so, there´s no point in doing normalize then length. Quote Link to comment Share on other sites More sharing options...
yjcnbnbnb200 Posted June 18, 2013 Author Share Posted June 18, 2013 (edited) On 6/18/2013 at 1:53 PM, gui said: that´s what normalize does, it makes the vector´s length equal 1, so, there´s no point in doing normalize then length. Thank you for you reply, I think I know what you mean! Oh I forgot, if I have a lot of particles, how can I know the maximum length since I can not check them one by one in detail view, too many! Edited June 18, 2013 by yjcnbnbnb200 Quote Link to comment Share on other sites More sharing options...
yjcnbnbnb200 Posted June 18, 2013 Author Share Posted June 18, 2013 And I need the maximum because the fit node has that parameter to be inputed! Quote Link to comment Share on other sites More sharing options...
old school Posted June 18, 2013 Share Posted June 18, 2013 First use a length expression or in VOPs a Length VOP to calculate the length of your attributes as a scalar float and then use the Attribute Promote to promote to a detail attribute. Then you can reference that value in to your fit expression as the maximum bound in your fit function. attribpromote_vmag_into_fit.hipFetching info... 1 Quote Link to comment Share on other sites More sharing options...
yjcnbnbnb200 Posted June 18, 2013 Author Share Posted June 18, 2013 On 6/18/2013 at 3:15 PM, old school said: First use a length expression or in VOPs a Length VOP to calculate the length of your attributes as a scalar float and then use the Attribute Promote to promote to a detail attribute. Then you can reference that value in to your fit expression as the maximum bound in your fit function. attribpromote_vmag_into_fit.hipFetching info... Ok got it Thank you very much! Quote Link to comment Share on other sites More sharing options...
MENOZ Posted June 19, 2013 Share Posted June 19, 2013 less procedural but.. in detail view you can sort by attrib value, without checking all of them 1 Quote Link to comment Share on other sites More sharing options...
yjcnbnbnb200 Posted June 19, 2013 Author Share Posted June 19, 2013 On 6/19/2013 at 1:37 PM, MENOZ said: less procedural but.. in detail view you can sort by attrib value, without checking all of them Yep, you are right~~ 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.