It is currently 22 May 2013, 05:38

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Does anyone have a normalised bezier node?
PostPosted: 08 May 2013, 21:31 
Offline

Joined: 27 Aug 2010, 22:25
Posts: 145
I am looking for an ice compound that works exactly like the 'fit bezier curve' node ( feed in an array of positions and a 't' scalar ( can be an array) and it will output the position (or array of positions) on the generated curve)
but I want it normalised so that a t value of .5 will be half way along the full curves length, irrespective of where the control points are.
If anyone knows of one that works this way please let me know. If not then If anyone can MAKE or adapt the existing one, then I will be hugely grateful and indebted to you.
This is wthe kind of thing where my own lack of maths skills rains on my ice parade.


Top
 Profile  
 
 Post subject: Re: Does anyone have a normalised bezier node?
PostPosted: 08 May 2013, 22:03 
Offline
User avatar

Joined: 08 Jun 2009, 21:11
Posts: 688
Location: Zagreb, Croatia
There's "strand fitting", hard - coded node in Melena or related packs. It can take any array of 3d vectors (not only strands), and output a new, normalized array - so middle of array should be at middle of length. As far as I know, it's x times faster than solution based on "repeat" node. I've used it a lot for strand work, normalizing the nurbs Surface, whatever.

If Helge's "strand fitting" doesn't fit, I think is not hard to build something based on 'normalized U to location". but necessary "repeat" node is slow, that's it.


Top
 Profile  
 
 Post subject: Re: Does anyone have a normalised bezier node?
PostPosted: 09 May 2013, 02:43 
Offline

Joined: 24 May 2012, 09:44
Posts: 468
Does any of this?

http://julianjohnsonsblog.blogspot.pt/2010/07/even-spacing-on-curvenormalised-u-on.html

http://www.si-community.com/community/viewtopic.php?f=41&t=770

http://www.cveld.net/modules/xigg/index.php/node/717

https://sites.google.com/site/tekanoice/tutorials/quadratic-bezier-curve


Top
 Profile  
 
 Post subject: Re: Does anyone have a normalised bezier node?
PostPosted: 09 May 2013, 04:50 
Offline
User avatar

Joined: 19 Mar 2010, 00:38
Posts: 442
Location: St. Thomas, Ontario
Use one of these nodes, it shoul be trivial to normalize them.

http://www.si-community.com/community/viewtopic.php?f=15&t=1802

_________________
$ifndef "Softimage"
set "Softimage" "true"
$endif


Top
 Profile  
 
 Post subject: Re: Does anyone have a normalised bezier node?
PostPosted: 09 May 2013, 10:46 
Offline
User avatar

Joined: 08 Jun 2009, 21:11
Posts: 688
Location: Zagreb, Croatia
Bullit wrote:


Third looks like a hard-coded, real thing. But, how to be sure it will be updated for your next SI version.
Imho it's really, really disappointing that, after all that years of ICE, still nothing of that basic stuff when it comes to curves, at least some "normalized U to location".
To explain it simple, if you want equivalent of XSI path constrain in ICE, you have to build a pretty complex ICE tree, all that not even close to performance of "ordinary" XSI path constrain.
At least from my little knowledge, when it comes to real life, a lot of curves with multiple segments, let's say for hair.... only a very, very simple math is able to survive, if standard ICE trickery is used (select in array, modulo, so on). ICE Fitted bezier, Piecewise B Spline... this is somewhere at border of slowness, crashing, so on. Both even without lovely 'repeat' node.


Last edited by Mathaeus on 09 May 2013, 11:35, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Does anyone have a normalised bezier node?
PostPosted: 09 May 2013, 11:23 
Offline

Joined: 27 Aug 2010, 22:25
Posts: 145
Daniel Brassard wrote:
Use one of these nodes, it shoul be trivial to normalize them.

http://www.si-community.com/community/viewtopic.php?f=15&t=1802


I wouldnt know where to start with normalizing them


Top
 Profile  
 
 Post subject: Re: Does anyone have a normalised bezier node?
PostPosted: 09 May 2013, 11:25 
Offline

Joined: 27 Aug 2010, 22:25
Posts: 145
Mathaeus wrote:
There's "strand fitting", hard - coded node in Melena or related packs. It can take any array of 3d vectors (not only strands), and output a new, normalized array - so middle of array should be at middle of length. As far as I know, it's x times faster than solution based on "repeat" node. I've used it a lot for strand work, normalizing the nurbs Surface, whatever.

If Helge's "strand fitting" doesn't fit, I think is not hard to build something based on 'normalized U to location". but necessary "repeat" node is slow, that's it.



This works really well with the normalizing, but produces a linear result. However, by feeding it through the factory 'Fit bezier' first, I can get something that does what I want.

Thanks very much


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group