RE: SDK : caching the tool context pick buffer

2012-09-03 Thread Brent McPherson
: Re: SDK : caching the tool context pick buffer hey brent GAP related question... are you guys internally using your nearest neighbor/point locator to get points within the brush radius? say for weight painting? s On Wed, Aug 1, 2012 at 11:06 AM, Steven Caron car...@gmail.commailto:car

Re: SDK : caching the tool context pick buffer

2012-09-03 Thread Steven Caron
2012 19:09 To: softimage@listproc.autodesk.com Subject: Re: SDK : caching the tool context pick buffer hey brent GAP related question... are you guys internally using your nearest neighbor/point locator to get points within the brush radius? say for weight painting? s On Wed, Aug 1, 2012

Re: SDK : caching the tool context pick buffer

2012-08-15 Thread Steven Caron
: softimage-boun...@listproc.autodesk.com [mailto: softimage-boun...@listproc.autodesk.com] On Behalf Of Steven Caron Sent: 01 August 2012 18:18 To: softimage@listproc.autodesk.com Subject: Re: SDK : caching the tool context pick buffer i didn't realize the pickbuffer in ogl could provide

RE: SDK : caching the tool context pick buffer

2012-08-01 Thread Brent McPherson
-boun...@listproc.autodesk.com] On Behalf Of Steven Caron Sent: 31 July 2012 21:39 To: softimage@listproc.autodesk.com Subject: Re: SDK : caching the tool context pick buffer thanks, i am going to use the fps counter for now ... i made some progress last night... i am caching the pickbuffer properly

Re: SDK : caching the tool context pick buffer

2012-08-01 Thread Steven Caron
-boun...@listproc.autodesk.com] On Behalf Of Steven Caron Sent: 31 July 2012 21:39 To: softimage@listproc.autodesk.com Subject: Re: SDK : caching the tool context pick buffer thanks, i am going to use the fps counter for now ... i made some progress last night... i am caching the pickbuffer

RE: SDK : caching the tool context pick buffer

2012-08-01 Thread Brent McPherson
[mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Steven Caron Sent: 01 August 2012 18:18 To: softimage@listproc.autodesk.com Subject: Re: SDK : caching the tool context pick buffer i didn't realize the pickbuffer in ogl could provide that or maybe it was a convenience function the sdk would

Re: SDK : caching the tool context pick buffer

2012-08-01 Thread Steven Caron
of which don't seem to be very efficient) -- Brent From: softimage-boun...@listproc.autodesk.com [mailto: softimage-boun...@listproc.autodesk.com] On Behalf Of Steven Caron Sent: 01 August 2012 18:18 To: softimage@listproc.autodesk.com Subject: Re: SDK : caching the tool context pick buffer i

Re: SDK : caching the tool context pick buffer

2012-07-31 Thread Steven Caron
@brent, can i use softimage's fps counter to do speed testing? does that counter represent the entire ogl rendering pipeline? no biggie if not, i just didn't want to have to make my own profiling/fps counter. s On Mon, Jul 30, 2012 at 3:09 PM, Steven Caron car...@gmail.com wrote: well the

RE: SDK : caching the tool context pick buffer

2012-07-31 Thread Brent McPherson
July 2012 20:59 To: softimage@listproc.autodesk.com Subject: Re: SDK : caching the tool context pick buffer @brent, can i use softimage's fps counter to do speed testing? does that counter represent the entire ogl rendering pipeline? no biggie if not, i just didn't want to have to make my own

RE: SDK : caching the tool context pick buffer

2012-07-30 Thread Brent McPherson
Hi Steven, Why don't you keep a dirty flag for the pickbuffer and simply set that in Activate and then the next time you ask for the pickbuffer (in mouse move or mouse down) recompute it if it is dirty. The pickbuffer is specific to a particular view so you can't generate it is a callback

Re: SDK : caching the tool context pick buffer

2012-07-30 Thread Steven Caron
thanks for the reply Brent! using a dirty flag is totally fine, i think it was just late and i couldn't think of such a obvious answer. i dont think an IsValid method is needed for the PickBuffer, i can use IsNavigating() or use the activate callback to set the flag. i am not at the point where

Re: SDK : caching the tool context pick buffer

2012-07-30 Thread Steven Caron
@listproc.autodesk.com Subject: Re: SDK : caching the tool context pick buffer thanks for the reply Brent! using a dirty flag is totally fine, i think it was just late and i couldn't think of such a obvious answer. i dont think an IsValid method is needed for the PickBuffer, i can use IsNavigating

Re: SDK : caching the tool context pick buffer

2012-07-30 Thread Steven Caron
well the CGeometryAccessor is a dump of everything too, but its just float/long data arrays instead of full fledged classes. at least i could cache this data easily without loops... should be a fun exercise, which is available here for anyone who is interested...