Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: TVpath weirdness  (Read 784 times)
zuffle
Customers
Community Member
*****
Posts: 17


« on: February 04, 2010, 06:18:02 PM »

Hi y'all.

Wrestling with tvpath.

Setup the path OK adding nodes (all at height of zero).

Want to use the Path.SetPathType(TV_PATH_SPLINE) version of it so init is as so.

Problem occurs when I use path.GetSplinePoint.

When I fetch out spline points between the 1st node and second node i.e :
"path.GetSplinePoint(0.1);

 path.GetSplinePoint(0.25) etc.
"
And 2nd last node and last node ie.,

"path.GetSplinePoint((path.Path.GetNodeCount-1) + 0.1);"

"path.GetSplinePoint((path.Path.GetNodeCount-1) + 0.25);"

The spline points retunred are bend back on themsleves.
This only occurs onthe very first and very last nodes.

All the inbetween nodes are fine.

The nasty hack I've had to do is add the 1st node twice and the last node twice, then igorne the spline points between the 1st two nodes, and ignore the spline points between the last two nodes - POOR !

Attached is wot i'm talking about pre hack.

Logged
jviper
Community Member
*
Posts: 2127

Discipline in training


« Reply #1 on: February 04, 2010, 09:36:12 PM »

Probably not a bug is you have looping set to true.
Logged

JAbstract.....Don't just imagine, make it happen!
zuffle
Customers
Community Member
*****
Posts: 17


« Reply #2 on: February 05, 2010, 05:56:03 PM »

Thanks jviper,

Didn't know about about 'enablelooping'.

Must hve been enabled by default, so made the call EnableLooping(false), and weirdeness

removed !

Ta
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks