Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

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

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 Vio Lence   Members   

100
Like
0Likes
Like

Posted 23 January 2012 - 03:52 PM

Posted Image
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..

#2 programci_84   Members   

336
Like
0Likes
Like

Posted 24 January 2012 - 06:17 AM

Can we see your loading/rendering and effect file code?
There's no "hard", and "the impossible" takes just a little time.

#3 Vio Lence   Members   

100
Like
0Likes
Like

Posted 24 January 2012 - 01:55 PM

Can we see your loading/rendering and effect file code?


Yes,I have actualy also written it here,the code is posted here http://stackoverflow...t-work-properly 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?

#4 ankhd   Members   

2301
Like
0Likes
Like

Posted 24 January 2012 - 07:56 PM

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.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.