Sign in to follow this  

Moving from Fixed-Function to Shaders

This topic is 3095 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 everyone, How hard is it to move from using the fixed-function pipeline and render states to shaders, if you understand render states and the logic and theory behind programming graphics that way? Thanks. Edit - I know this varies from person to person, but what do you think, on average?

Share this post


Link to post
Share on other sites
I really don't think it will be that hard. Of course, you many have to familiarize yourself with quite a bit more mathematics, but other than that it should be easier. At least I find it easier than manipulating the fixed-function pipeline to achieve desired effects.

Good luck.

Share this post


Link to post
Share on other sites
Well if you fully understand how the fixed pipline works, and know your linear algebra, its quite easy to move on to shaders.

Your just doing what the fixed pipeline does for you automatically, so you have more control on what your doing.

There are three kinds of shaders, depending on how good you are at math and how to use it I guess it varies, you cant really do things like making up a lighting formula, okay well you can, but it may take awhile, most people research theories on the subject, then you just implement it into what your doing.

So its not a matter of how /hard/ it is, just if you need to use it, there's no sense in writing a shader for something that can be done in a few function calls, unless you are planning to expand later etc. ... or if you just like writing them ^__^

Share this post


Link to post
Share on other sites
If you ignore the code base behind making the shader system convienient to use, then i find shaders much easier to use than FFP. Rather than digging through all kinds of docs describing the different, limited, functions of the FFP, you can easily create your own specification for any kind of effect you can imagine. Everything makes more sense because it's all explicitly described (by you), not hidden behind some curtain. I haven't supported FFP in about 3 years.

Give it a shot in a tiny stand alone demo, i think you'll fall in love quickly. Implement a scrolling texture or any other procedural texture manipulating shader and you'll be hooked. Crazy mask swizzling is also fun.

Share this post


Link to post
Share on other sites
Hey. ive just recently been through all of that. Took me a good 3 weeks of spare time (and some questions on these forums) to get my engine do the same with shaders that it could do with fixed functionality and a little more. was quite fun learning the basics of shaders and now everything just makes more sense :P

Share this post


Link to post
Share on other sites

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