Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ColoreRendere:draw_color_image #14

Open
sitifukujin opened this issue Mar 10, 2022 · 1 comment
Open

ColoreRendere:draw_color_image #14

sitifukujin opened this issue Mar 10, 2022 · 1 comment

Comments

@sitifukujin
Copy link

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
Copy link

Ediwna commented Oct 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants