Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


3D Picking Tutorial?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 dbh   Members   -  Reputation: 166

Like
0Likes
Like

Posted 23 April 2005 - 03:09 AM

I searched the articles, but I was unable to locate anything relating to picking in 3D with DX9. Has anyone run across such a tutorial recently? I'm familiar with simple 2D application picking and selection... but I've never worked with this item before in 3D. -dbh

Sponsor:

#2 deffer   Members   -  Reputation: 754

Like
0Likes
Like

Posted 23 April 2005 - 04:05 AM

Could you be more specific on what you are trying to achieve?

The sample picking program from DX tutorials is rather complicated (picking triangles, who needs that kind of precission?), I would want to use something simplier.
/def

#3 DaveMichael   Members   -  Reputation: 148

Like
0Likes
Like

Posted 23 April 2005 - 06:40 AM

Agreed, it would be helpful to know specifically what you have in mind.

If you just want to pick based on simple geometry (bounding volumes or planes), I suggest you look into tutorials for ray-tracing in DirectX. In brief, you'll need to know how to build a ray using the near and far planes of the view frustum, and then test for intersection between that ray and whatever is in your scene.

#4 zedzeek   Members   -  Reputation: 528

Like
1Likes
Like

Posted 23 April 2005 - 09:52 AM

brian hook recently wrote a nice paper on the subject
http://www.bookofhook.com/

#5 dbh   Members   -  Reputation: 166

Like
0Likes
Like

Posted 26 April 2005 - 05:31 AM

Wow, I apologize for the massive delay I took in getting back to my post! Things picked up around here, and I lost track of things...

Anyway, thanks for the tips... right now, I'm just looking for a simple picking technique that works in a 3D environment where a z-coord is involved; I thought about raycasting, just was a little iffy and the exacts here and there as my only foray into the topic was with a simple raycasting engine I built in my bitmapping class at DigiPen.

I'm looking into Brian Hook's article now, thanks for the link!

-dbh




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS