Jump to content
  • Advertisement
Sign in to follow this  
spawn_thang

Clone meshcontainer

This topic is 2303 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
Advertisement
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 biggrin.png

XONTROLLERS.jpg

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!