España (Español)
Canada (English)
Canada (Français)
Deutschland (Deutsch)
España (Español)
France (Français)
Italia (Italia)
United Kingdom (English)
United States (English)
日本 (日本語)
Foros
Hola:
Visitante
Iniciar sesión
Inicio
Guía de inicio rápido
Noticias
Suscripción
Juegos
Catálogo de juegos
Enviar juego
Revisar juego
Probar juego
Creadores
Mi perfil
Mi empresa
Comunidad
Foros
Temas destacados en la comunidad
Recursos de la comunidad
Educación
Introducción
Catálogo de contenido sobre educación
Packs de inicio
Utilidades
Recursos
Preguntas más frecuentes
Socios
Descargar
Comentarios
Sitio de prensa
foros de la comunidad
XNA Community Forums
»
General
»
Game Design
»
Use a primitive cube to draw a bounding box?
More Search Options
|
My Discussions
|
Active Topics
|
Not Read
Page 1 of 1 (5 items)
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
Use a primitive cube to draw a bounding box?
Last post 04/11/2009 23:50 by
Matt Dent
. 4 replies.
04/11/2009 19:27
Matt Dent
(10)
Posts
9
Use a primitive cube to draw a bounding box?
Reply
Quote
I was intrigued by the 3D Primitives sample, and its promises of being able to draw bounding boxes. The only problem I have is the actual drawing of the bounding boxes. How can I use the cube primitive to draw a bounding box that I give it?
04/11/2009 20:00
In reply to
Social Loner Studios
(730)
premium membership
Posts
171
Re: Use a primitive cube to draw a bounding box?
Reply
Quote
I recommend checking out the
XNA Wiki
, they have some excellent code for doing that very thing. I'm using it for debugging...
Brian
Live:
What The?!
Our site:
Social Loner Studios
Twitter
Facebook
04/11/2009 21:09
In reply to
Shawn Hargreaves
(10849)
Team XNA
Posts
8.007
Re: Use a primitive cube to draw a bounding box?
Reply
Quote
You control the size and position of the primitive by what world matrix you pass to GeometricPrimitive.Draw.
XNA Framework Developer -
blog
-
homepage
04/11/2009 21:52
In reply to
Craig Martin
(3973)
Posts
2.616
Re: Use a primitive cube to draw a bounding box?
Reply
Quote
I use lines as on the WIKI link above. Found it impossible to get the alpha blendng right using 8 vertex solid cubes.
Game hobbyist hell-bent on coding a diabolical Matrix
04/11/2009 23:50
In reply to
Matt Dent
(10)
Posts
9
Re: Use a primitive cube to draw a bounding box?
Reply
Quote
Thanks a lot guys, I think I got it to work.
Page 1 of 1 (5 items)
Previous
Next
© 2009 Microsoft Corporation. Reservados todos los derechos.
Condiciones de uso
Declaración de privacidad
Código de conducta
Comentarios