http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

TheGrumpyProgrammer



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gameprogrammer] Re: collision detection



El lun, 21-06-2004 a las 15:41, Bob Pendleton escribió:
> On Mon, 2004-06-21 at 10:40, Roger D. Vargas wrote:
> > I want to make some simple tests with terrain rendering in opengl and I
> > would like to know where i can find some tutorial about basic collision
> > detection. I want to achive 2 things: first convert mouse click
> > coordinates to terrain coordinates 
> 
> Typically that is done through "picking". You have to provide names for
> your opengl primitives and you do a sort of "fake" redraw to let the
> hardware find named primitives within a certain distance of the cursor.
> Then you cull all that mess to find the ones you want. Try googling on
> the phrase "opengl picking". There are some good tutorials right at the
> top of the search page.
Nope, picking depends on a limit imposed by GL implementation (128 in my
case). It doesnt works for complex scenes. Raytracing and picking the
coordinate is the adequate solution, but Im bad in maths and cant find
the algorithm by myself.
> 

-- 
Roger D. Vargas
Linux User: 180787
ICQ: 117641572
jabber.ehtsc.co.cu: roger
"Object-oriented programming is an exceptionally bad idea which could
only have originated in California." 
- E.W. Dijkstra



---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html