Hi Michael,

> Subject: Re: [Tutor] Point in polygon intro please~!
> To: Michael Shulman <[EMAIL PROTECTED]>
> Cc: tutor@python.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed

> Michael Shulman wrote:
> > Hello, I'm very new to both python and OpenGL, but I'm catching on
> > pretty quick,
> > and trying to make a little game.  I'm stuck on being able to do this
> > point-in-polygon test though.
> > Everyone seems to say that I should create a ray and see how many 
sides
> > of a polygon it intersects, (even vs odd)
> > but I have no idea how to go about setting this up.


If you would like to get the 3D object, that belongs to the given pixel, 
OpenGL gives a simpler way for it with glRenderMode(GL_SELECT);

Converting the 3D objects to poligons, seems to be too difficult,
and not needed.


Take a look after the GL_SELECT mode

http://www.google.hu/search?hl=hu&q=glRenderMode%28GL_SELECT%29&meta=



Yours sincerely, 
______________________________
János Juhász 

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to