Page 1 of 2

Pixel Shader Question

PostPosted: Jan 3, 2003 @ 6:51pm
by fzammetti

PostPosted: Jan 3, 2003 @ 8:55pm
by Pam

PostPosted: Jan 3, 2003 @ 9:18pm
by fzammetti

PostPosted: Jan 3, 2003 @ 9:36pm
by Pam

PostPosted: Jan 3, 2003 @ 10:59pm
by fzammetti
Well, it still didn't work with the shader, but your suggestion did put me on to something that worked...

When I was using SetBlending, I was NOT clearing the screen each time. If I do SetBlending to 255, clear the screen, then SetBlending to the fade value, then plot my image, it works as expected.

I can't say I quite understand why that is, but it is working, so I'll understand later :)

I'd still like to know what was wrong with my pixel shader though... It seems pretty straight-forward. By the way, I did try resetting to the default shader and then clearing the screen, then doing my custom blitting, but that didn't make any difference either.

Thanks again Pam! :)

PostPosted: Jan 3, 2003 @ 11:22pm
by Pam

PostPosted: Jan 3, 2003 @ 11:27pm
by fzammetti

PostPosted: Jan 3, 2003 @ 11:35pm
by Pam

PostPosted: Jan 6, 2003 @ 3:40pm
by Pam

PostPosted: Jan 8, 2003 @ 12:06am
by fzammetti

PostPosted: Jan 8, 2003 @ 12:22am
by Pam

PostPosted: Jan 8, 2003 @ 1:16am
by fzammetti

PostPosted: Jan 15, 2003 @ 3:51am
by Friggin Joe
Just outta curiosity, who won the wrestling match?

Thanks for the question and answers guys, I learned something myself.

The winner is...

PostPosted: Jan 15, 2003 @ 4:00am
by fzammetti
I won. Well, technically Pam won, but I'm taking credit for it ;)

Seriously though, she did find the solution, posted above, it did work in the end.

I can also report that, after all the effort, I got better results by simply using the blending setting. I'm not sure why the shader didn't give as good a results (not even sure what was different, but you can tell watching it), and other parts of the project are more important, so I'll figure it out some other time.

I would however suggest that if anyone needs to do fade effects, blending is probably the easier and better way to do it (Pam can correct me if I'm wrong, but I think blending is just a function of the default shader anyway?).

The game I'm working on will be out in March, you can see where I used it then (it's pretty obvious and right at the start).

PostPosted: Jan 15, 2003 @ 11:48am
by HTK
fzammetti´s game is going to invade our pocket pcs pretty soon! :D

Some other game made by someone may infestate our pocket pcs soon too :P



Hail to the PocketFrog Spawns!!! 8)