Sign in to follow this  

Clone meshcontainer

This topic is 2059 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Good day !

I have been working through the multi animation sample and Frank Luna's samples and have an application that clones the animation controller and the skinned mesh class that is based around Frank Luna's class but has been rewritten in the way I kind of write code.

I open the mesh which sets up an animation controller. The advance time is not called. I clone the controller to an stl vector and then the skinned mesh class is copied into a vector.

When I render without advancing the time, something is rendered but its close to the camera because the animation is not playing.

When I try to advance the time with the iterator, the app crashes because it cannot see the mesh container.

So, I guess I need to clone or copy the mesh container and was wondering what might be the best way to go about this.

DirectX 9, win Xp VC 2010.

Share this post


Link to post
Share on other sites
Ah, looks like I have resolved that one.

I think it was the way I was trying to copy the original. Instead of copying and then pushing back I pushed back the original so now I have a rendered animation that is being controlled by the animation clone.

Looks good. I shall try to add a few more instances tomorrow ( I need to sleep right now) and see how that goes, hopefully it should be ok.

Great place to bounce an idea round though (GameDev).

Nice one !

Share this post


Link to post
Share on other sites
Ah Ha !

Done it !

After a few hours sleep and a bit of jiggery pokery, Whooo, Whooo !

Heres an Image, I am a very happy Bunny tonight [img]http://public.gamedev.net//public/style_emoticons/default/biggrin.png[/img]

[img]http://i307.photobucket.com/albums/nn292/frog_mate/XONTROLLERS.jpg[/img]

Share this post


Link to post
Share on other sites

This topic is 2059 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this