Sign in to follow this  

X Animation performance with setTexture...

This topic is 4667 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

Hi Guyz, So I've my animated mesh using Xfiles, no probs....however..:-) currently when rendering multiple animations of the same object, my code loops through all of the sub-sets of the first object, renders, then moves onto the next object and so on.... now the problem with this is that it's thrashing the SetTexture() calls, as for each object it's calling SetTexture numerous times...not good! So now what I'm trying to do is organise the renders, so that I render all objects that reference the same texture in one go: e.g. SetTexture(0, sometexture ) for ( int i = 0 to 10 ) RenderAllObjects() Is this the correct way to go?? Also how would I do this if the animated meshe's had more than one texture?? Is it SetTexture( X, sometexture1 )?? One more question before I go :-0 Each object is loaded individually, so each object has a mesh/hierarchy and it's own animcontroller.......how can I make it so that the object(s) share mesh/hierarchies?? I'm not using VS/PS as I dont have a decent card and want the code working on lower spec cards....... Anyone help?? Nice one!!!

Share this post


Link to post
Share on other sites

This topic is 4667 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