Sign in to follow this  

HLSL: EffectInstance question

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

Reading my .x file, I get a list of 2 EffectInstances. The first one points to my goochy2.fx file which is OK. it also contains some values that seem alright like WorldIT, View... these are values that maya plugged in during the conversion. This is ok for now. The second one has no file information... its just empty. However it does contain shader values like DIFFUSE, POWER, AMBIENT which all contain good data. As far as i know, I should only be getting one EffectInstance from my goochy2.fx. why does this happen?

Share this post


Link to post
Share on other sites
You'll get one EffectInstance for every subset in your .x file mesh. When you iterate through the subsets, you apply the corresponding EI before rendering.

If your mesh only has one subset, it might just be extraneous data that Maya shoved in there. But be sure that you don't actually have two subsets without knowing it.

Share this post


Link to post
Share on other sites

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