Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: BindToActor and ImportAnimations  (Read 5866 times)
pculliton
Community Member
*
Posts: 5


« on: November 14, 2009, 06:43:44 PM »

I'm using the latest .NET wrapper and C#.  Two issues I'm seeing:

1) Running ImportAnimations after loading the TVA for a TVActor causes an access violation.  I suspect it's an issue with the TVA itself, but there are no indications of trouble in the debug.txt file and it loads / renders when I don't attempt to import animations.

2) Attempting to BindToActor simply causes the child actor to disappear.  There are matching bones.  I've tried using RenderAllActors() and also tried rendering the child actor on its own.  When not bound the child actor loads and renders just fine.  Is there something I'm missing?

I may be able to provide the TVAs if necessary.
Logged
SylvainTV
Administrator
Community Member
*****
Posts: 4971


WWW
« Reply #1 on: November 15, 2009, 06:15:59 AM »

Hello,

Yes please send any code/faulty media to sylvain at truevision3d.com
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
pculliton
Community Member
*
Posts: 5


« Reply #2 on: November 16, 2009, 12:11:39 PM »

Email sent.
Logged
pculliton
Community Member
*
Posts: 5


« Reply #3 on: November 28, 2009, 01:04:34 PM »

Found that BindToActorEx isn't working either.  Any ideas?  Thanks.

Edit: Models and code snippets were sent 11/16.

BindToActorEx code:
Code:
           
int [] bone_ids = new int [this.weapon.GetBoneCount()];

for (int i = 0; i < this.weapon.GetBoneCount(); ++i) bone_ids[i] = -1;

bone_ids[this.weapon.GetBoneID("WeaponLeft")] = this.actor.GetBoneID("WeaponLeft");
bone_ids[this.weapon.GetBoneID("Weapon")] = this.actor.GetBoneID("Bip01_R_Hand");

this.weapon.BindToActorEx(this.actor, 2, bone_ids);

In theory this should work, yes?
« Last Edit: November 28, 2009, 03:25:01 PM by pculliton » Logged
SylvainTV
Administrator
Community Member
*****
Posts: 4971


WWW
« Reply #4 on: November 29, 2009, 01:34:02 PM »

We got the models, sorry for the delay Wink
I'm going to investigate that some time this week i guess !
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
pculliton
Community Member
*
Posts: 5


« Reply #5 on: November 29, 2009, 05:26:52 PM »

We got the models, sorry for the delay Wink
I'm going to investigate that some time this week i guess !

Sounds great.  Thanks very much, Sylvain.
Logged
nico2008
Community Member
*
Posts: 44


« Reply #6 on: August 17, 2012, 02:00:52 PM »

SO,finally,did u solove it?
Logged
Pages: [1]
  Print  
 
Jump to:  

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