开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜