Hi,

I have a question about the best way of 'drawing' a set of pre-defined points with the NDK. As a simplified example, say I have a list/vector full of random points (x,y screen coords) where I could have multiple points on a row in various x positions. I simply want to draw a pixel for each of these points. Since the draw engine can call any row in any order, it seems like I have to use a seemingly inefficient method to check whether the current row/pixel matches one of the points within my list.

Although I still have to try this, the best I can think of is for each row called we check to see if the row position (Y) matches that of any of the y-coords within my list. If not it looks at different row. If there is a match then we iterate through the points and output a pixel for every occasion where our X Y matches the coords of the point. It seems like a lot of work to output pixels for points we already know the position of and I guess could be very slow if we have thousands of points. Am I missing something obvious?

Cheer,
Steve

--
Stephen Newbold
Senior Compositor - Film
MPC
127 Wardour Street
Soho, London, W1F 0NL
Main - + 44 (0) 20 7434 3100
www.moving-picture.com

_______________________________________________
Nuke-dev mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to