Cool thanks for the tips, its a bit over my head but I'll try to work
on it. Another question,if I have several openGL object, then say the
same amount of nurbs or poly objects in an identical but spererate
scene, which should draw faster? Right now, with my openGL plugin my
frame rate drops from 200 fps to 30. If I use the same setup but with
spheres the FPS change undetectable.

On Feb 22, 2:19 pm, damon shelton <[email protected]> wrote:
> draw your points in a for loop
>
> pseudo:
> get all points
> for i in range(len(points)):
>     if i < len(points):
>         GLLine(points[i].x, points[i].y, points[i].z)
>         GLLine(points[i + 1].x, points[i+1].y, points[i + 1].z)
>
> On Mon, Feb 22, 2010 at 2:14 PM, shawnpatapoff <[email protected]>wrote:
>
>
>
> > Hey All,
>
> > I have an idea for a plugin, that draws a line from point a to b. Easy
> > enough...
>
> > The question is this, if I had one locator, with several line segments
> > in it what  would be the best way.
> > Basically, right now I'm iterating through all my points in space and
> > creating a new locator for each set of points...This doesn't seem very
> > good.
> > Is there a better way?
>
> > Cheers,
> > Shawn
>
> > --
> >http://groups.google.com/group/python_inside_maya

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to