Re: [PD] Ray casting

2017-04-21 Thread Max
impressive, thanks babtiste! (a bit complicated to find all its dependancies for getting it to run though :) ) On 2017년 04월 20일 12:26, baptiste chatel wrote: I think so for point in polygon, see attached. It's an old attempt of mine, with a mechanism to draw polygons in Gem and then tell in

Re: [PD] Ray casting

2017-04-20 Thread baptiste chatel
I took this particular road only to have a gui to draw in. This was an interactive musical project, where people equipped with a smartphone would trigger different sounds or events by visiting a city. The patch i've sent could be easily reduced to a single object taking the polygon's points coordin

Re: [PD] Ray casting

2017-04-20 Thread patrice colet
If it's about mouse binding in [gemwin], the math is really heavy, particulary if the camera is moving. It can be solved differently by rendering the polygons in an hidden frame or another gemwin, and set a different color for each new polygon, the binding will be about detecting color under

[PD] Ray casting

2017-04-20 Thread Max
Did someone here solve this in Pd before? https://en.wikipedia.org/wiki/Point_in_polygon https://rosettacode.org/wiki/Ray-casting_algorithm ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinf