Sign in to follow this  

SetTextureStageState

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

Hiya dudes, What exactly is the function of this function? The problem is that the actual descriptions confuse me. They keep talking about stages and what not, and I have no idea what this "stage" is. So in short could someone please explain to be the general purpose of the function then tell me what the stage is about? Thanks. [Edited by - Promit on May 26, 2008 6:41:30 PM]

Share this post


Link to post
Share on other sites
The Pixel runs through processing stage 0, then continues its way to stage 1 and so on.
For the different stages you can set different operations which will change the pixel´s color. Just experiment with those operations.
I already answered your questions about fog and hlsl and i would recommend that you don´t waste any more time with the fixed function pipeline!
Learn how shaders work!

Share this post


Link to post
Share on other sites
This Link should be helpful. Each stage is a texture operation. Different cards support different numbers of stages (You can usually expect 4, and a maximum of 8 - but you need to check the device caps to find out how many you have available). Also, texture stages aren't used if you're using a pixel shader - they're only used by the fixed function pipeline.

Share this post


Link to post
Share on other sites
I agree with Specialist84 that you should use pixel shaders. IMO they are easier to understand and program than the texture stages. Fixed function vertex processing may be easier, but it can interact with pixel shaders (for shader model 2).

Share this post


Link to post
Share on other sites
I do wanna know how shaders work but every tutorial has its own set of problems :( My example of a perfect shader tutorial would be --->
- Language: C/C++
- Win32
- Game Programming Interface: DirectX9
- No effect files(less important)
- A good detailed explanation

The only tutorial that comes this close is www.directxtutorial.com but you have to pay for the advanced tutorials.

If you guys no of another tutorial that comes close to the above description then please post it.

Thanks.

Share this post


Link to post
Share on other sites

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