polmorenoc/opendr

ColoreRendere:draw_color_image

sitifukujin opened this issue · 1 comments

argument2 of reshape are both same as 'height'

result = np.flipud(np.frombuffer(GL.glReadPixels( 0,0, self.frustum['width'], self.frustum['height'], GL.GL_RGB, GL.GL_UNSIGNED_BYTE), np.uint8).reshape(self.frustum['height'],self.frustum['height'],3).astype(np.float64))/255.0

I think correct is .reshape(self.frustum['width'],self.frustum['height'],3).

Ediwna commented

Hello, do you fixed the error?

Initializing GLFW.
FRAMEBUFFER ERR: 36053
FRAMEBUFFER ERR: 36053
glValidateProgram: None
glGetProgramInfoLog
GL_MAX_VERTEX_ATTRIBS: 16
0
--Return--

lib\opendr\renderer.py(1156)draw_color_image()->None
-> import pdb; pdb.set_trace()
(Pdb)

I have correct the error you mentioned bur it still shows the error