jM2.me
jM2.me

Reputation: 3969

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

Upvotes: 3

Views: 2722

Answers (2)

Neil Knight
Neil Knight

Reputation: 48577

There is a grid component here which is very good. I use it as it is a really good way for debugging purposes.

Upvotes: 5

Steve H
Steve H

Reputation: 5529

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.

Upvotes: 0

Related Questions