Hi,
So I decided to give xna another shot after getting stuck and frustrated with it a while ago and nothing much has changed :)
Doing the hazymind tutorial (again) till part 5 when I decided to try and add a grid to my scene .
My plan: a grid with white borders, gray lines along the x and z axis every 10 units with a white one every 100 units. A colored quad with transparency filling the grid.
Easier said than done I discovered. Using the vertexpositioncolor I created the grid giving each vertex it's needed color and added a red colored quad and set it's vertices to 50% alpha. After rendering this with the basiceffect I had an all white grid and quad with no transparency.
A bit of searching solved the transparency problem but I'm not very happy with my solution for it since alpha is set with the shader alpha property while I had hoped to do it with the alpha value on the vertices and it also depends on the draw order, when drawing the grid before the scene I can't see the bottom half of the texturedquad thru the colored quad.
As for the color of the vertices, can't get it to work. At first I tried to create my own shader with the help of some examples (GridShader.fx) but it will only draw a yellow grid and quad, no clue why because I don't have any yellow anywhere... So I went back to the basicshader and added diffusecolor, this works it seems but I don't want to color the entire grid with one color. I've also tried setting VertexColorEnabled to true in the basiceffect but that had no effect.
I've uploaded the solution here if anyone wants to have a look at it rather then post some code since I have no clue what I'm doing.
Regards