Sign in to follow this  

FX file fails to apply proper technique+rapid decrease in framerate?

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

[img]http://store.picbg.net/pubpic/B6/EE/f1f130e19681b6ee.png[/img]
this is what happens when I apply any FX file on my planet model(it usually has a red texture),I tried all sorts of effect files,some cause grey waves on the edges,some cut the sphere in half,but none work properly,why would that be?I'm using the standart procedure - load,set a handle to next technique,set parameters,do the loop with passes..

Share this post


Link to post
Share on other sites
[quote name='programci_84' timestamp='1327407457' post='4905762']
Can we see your loading/rendering and effect file code?
[/quote]

Yes,I have actualy also written it here,the code is posted here [url="http://stackoverflow.com/questions/8980641/fx-files-mostly-dont-load-and-those-that-do-dont-work-properly"]http://stackoverflow...t-work-properly[/url] and I have a link to 2 fx files I tried in the comment,but it seems that nowhere anyone can help me with thos problem.I mean yeah,some of them were ps_1_x but I fixed them and still they render not how the're supposed to or the entire geometry just dissapears and the frame rate drops 5-fold...

Also,to someone inexperienced like me,do you think it's even a good idea to use an Effect class used by Model classes anyway?Or is it better to make an effect class use model classes,since Begin() and End() are probably heavy,so it would probably be better to just call it once for all models instead of once in each?

Share this post


Link to post
Share on other sites
Hi.
you seem to have a lot of fx params in that file , so you should first check all return values from each call to GetParameterBySemantic.

Share this post


Link to post
Share on other sites

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