Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    234
  • comments
    427
  • views
    114969

Pixel Shader issues.

Sign in to follow this  
Battagline

137 views

Well, I solved my problem with my screen size quad not fitting my screen. As it turns out, I was setting my vertex size incorrectly in SetStreamSource.

I had this:

g_pDevice->SetStreamSource(0,g_QuadVB,sizeof(g_QuadVB));




what I really wanted was this:

g_pDevice->SetStreamSource(0,g_QuadVB,sizeof(SVERTEX));




I was setting my vertex size to be the size of an array of vertex structures that had four vertices in them, rather than the size of the structure itself. Because of this, I could only manipulate the location of the first vertex.

But now on to new problems. Right now, it seems like I'm getting a slew of garbage in my glow texture.

Here's a pic:
Epoch Star - Space Game

As you can see, the glow seems to be rendering, but I'm starting out with a lot of crap in my glow texture. Also, I'm not clearing my glow texture on each pass so it ends up eventually filling entirely with color.

I better get back to work.

[smile]
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

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