View Single Post
Old 05-23-07, 12:23 AM   #3
Mraah
Engineer
 
Join Date: Apr 2007
Location: Conning Tower - repairing the radar.
Posts: 200
Downloads: 8
Uploads: 0
Default

For those who are curious about the changes in the PPIRadarPS.fx file ...

PS stands for Pixel Shader. VS stands for Vertex Shader.

I spent some time at the Microsoft website understanding how it all works. There wasn't a crash course, just information. You can check it out too, here's the link ...

http://msdn2.microsoft.com/en-us/library/bb173493.aspx

The change was simple. After looking at the "return f;" return type I realized that if it wants to return to f why not include the grid in there too!!!!

So here's the change (orange is my addition) :

float4 f=tex2D(fadetex,In.Tex0)+tex2D(grid,In.Tex1);

Good news .... while typing this I had a brain storm. I might be able to increase the resolution of the grid with another tweak in the fx file. However, I'm thinking it would only work on very high rez screens. Worth a shot, and gives me something to do. Can ya guess?? Jace11 might know, I've seen his crazy PPI scope from other thread.


Last edited by Mraah; 05-23-07 at 12:39 AM.
Mraah is offline   Reply With Quote