Jump to content
  • Advertisement
Sign in to follow this  
devronious

Using Nvidia's SDK effects?

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

I'm trying to use the halo effect. I've loaded it and have the following code to impliment it for a leaf that I'm drawing. But nothing happens except the system slows in performance...
[source lang=c#]
            this.device.SetTexture(0, this.GetSurfaceTexture("white").texture);

            Microsoft.DirectX.Direct3D.Effect effect = this.GetSurfaceEffect("halo").effect;
            effect.Technique = "Main";
            int passes = effect.Begin(0);
            for (int i = 0; i < passes; i++)
            {
                effect.BeginPass(i);
                this.GetSurfaceMesh("leaf01").mesh.DrawSubset(0);
                effect.EndPass();
            }
            effect.End();

            this.device.SetTexture(0, this.GetSurfaceTexture("white").texture);
            this.GetSurfaceMesh("leaf01").mesh.DrawSubset(0);

Any help is much appreciated, -Devin [/source]

Share this post


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

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!