Basic grid for xna?
I was wondering if it possible to somehow make a simple grid (like the one you would see in 3ds max or other 3d designing software)
I will need it only when debugging and checking out xna 4.0
开发者_运维知识库Edit: grid in 3d environment
There is a grid component here which is very good. I use it as it is a really good way for debugging purposes.
You could create a quad for each axis' plane. Texture the quad with a grid textur that is transparent between the grid lines. By making the center grid lines bold and positioning the quad just right, you can get all 3 grids (if you want more than one) to line up perfectly at the world origin.
It can be heavy for the pixel shader in that every pixel on the screen will be involved, but if it is just for developmment only, you'll be OK.
精彩评论