Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

peckerpeck

Simple ole Texture Ops

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

<meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> I give up guys

I give up guys,

 

I''m trying to figure out just plain ole pre-Vertex Shaders texture operations in DirectX.

Specifically, I can''t really seem to get a grip on the overall concept of SetTextureStageStage().

I looked at a tutorial from Drunken Hyena, but I just need a

"Okay, there are 3 steps you need to look at.

    1. Choose an operation, e.g. D3DTSS_COLOROP

    2. Choose your first argument, e.g. D3DTA_TEXTURE

 etc etc.

 

I see in the tutorial:

<table border="1" width="77%"> <tr> <td width="100%">g_d3d_device->SetTextureStageState(0,D3DTSS_COLOROP,D3DTOP_SELECTARG1);  g_d3d_device->SetTextureStageState(0,D3DTSS_COLORARG1,D3DTA_TEXTURE);

g_d3d_device->SetTextureStageState(0,D3DTSS_ALPHAOP,D3DTOP_SELECTARG1); g_d3d_device->SetTextureStageState(0,D3DTSS_ALPHAARG1,D3DTA_TEXTURE);</td> </tr> </table>

 

Specifically, I don''t understand D3DTOP_SELECTARG1.  Generally, I don''t get the concept.

</body> </html>

Share this post


Link to post
Share on other sites
Advertisement

  • 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!