Skip to main content
GameDev.net gamedev.net
🔒 Locked

any pick sample?

Started by billconan Apr 28, 2005 at 4:24 AM 3 replies 3k views
Original Post
billconan
billconan
hi guys i'm adding the function of picking up things from a 3d view. but the "pick sample" enclosed in the old sdk samples is not available now. so is there any body having that code or is there any other code samples on line, especially in c#? thank u.
paic
paic
hi,

those D3DX functions are what I use (well, I only use the last one ^^)

D3DXIntersect // intersect a D3DXMesh
D3DXIntersectSubset // intersect a subset of the previous class
D3DXIntersectTri // intersect a simple triangle

It's fairly simple / efficient to use. You simply pass the starting point, the direction, pointers to U, V and intersection distance and that's all.


.:: Paic Citron ::.
billconan
billconan
hey thanks pals. good info!
AhmedSaleh
AhmedSaleh
i bet that Coder " the mod of this forum " presented an article about picking somewhere ... :)
Game Programming is the process of converting dead pictures to live ones .

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.