United States (English)
Canada (English)
Canada (Français)
Deutschland (Deutsch)
España (Español)
France (Français)
Italia (Italia)
United Kingdom (English)
United States (English)
日本 (日本語)
Forums
Hi,
Visitor
Sign In
Home
Quick Start Guide
News
Membership
Games
Games Catalog
Submit Game
Review Game
Playtest Game
Creators
My Profile
My Business
Community
Forums
Community Spotlight
Community Resources
Education
Getting Started
Education Catalog
Starter Kits
Utilities
Academia
Developer Talk Series
Resources
FAQ
Partners
Download
Feedback
Press Site
Meet the Team
community forums
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 11/4/2009 11:50 PM by
Matt Dent
. 4 replies.
11/4/2009 7:27 PM
Matt Dent
(0)
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?
11/4/2009 8:00 PM
In reply to
Social Loner Studios
(964)
premium membership
Posts
208
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?!
Coming soon:
I Suck At: Word Games
Our site:
Social Loner Studios
Twitter
Facebook
11/4/2009 9:09 PM
In reply to
Shawn Hargreaves
(13061)
Team XNA
Posts
8,585
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
11/4/2009 9:52 PM
In reply to
Craig Martin
(7485)
Posts
3,731
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
11/4/2009 11:50 PM
In reply to
Matt Dent
(0)
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
© 2010 Microsoft Corporation. All rights reserved.
Terms of Use
Privacy Statement
Code of Conduct
Feedback