Jump to content
  • Advertisement
Sign in to follow this  
pcbrainbuster

SetTextureStageState

This topic is 3798 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
Advertisement
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
I´ve posted a really simple shader and the functions you need in your hlsl thread.
It´s no tutorial but very self explaining i think.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!