def gl_display_marker_window(self):
active_window = glfwGetCurrentContext()
glfwMakeContextCurrent(self.markerWindow)
clear_gl_screen()
# gl stuff that will show on your plugin window goes here
#draw_gl_texture(self.activePattern)
center = np.array([0.1, 0.1])
#center = [0.5, 0.5]
#center = [100, 100]
draw_gl_point(center, size=100,color=(1.,0.5,0.5,1.))
glfwSwapBuffers(self.markerWindow)
glfwMakeContextCurrent(active_window)
def draw_circle(pos,r,c): pts = cv2.ellipse2Poly(tuple(pos),(r,r),0,0,360,10) draw_gl_polyline(pts,c,'Polygon')
pts = cv2.ellipse2Poly((0, 0),(10,10),0,0,360,1) / float(self.markerWindowHeight)
draw_gl_polyline(pts,(0.,0.,0.,1.),'Polygon')
Hi Michael,
Good to see that you got it running. Coordinates between opengl and opencv and row/column order with numpy can be very confusing.
We did some work on v0.3.6 to simplify coordinate systems.
It'd be great to see the full code if you have time to attach it or post it.
will patera
(mobile)
--
You received this message because you are subscribed to the Google Groups "pupil-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pupil-discus...@googlegroups.com.
To post to this group, send email to pupil-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pupil-discuss/e5e9ad30-e463-44c3-906c-4b5ea62202aa%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
draw_gl_points_norm([(0.5,0.5)],color=(0.,8.,.5,.8), size=100)