dima glib dairin0d
  • Joined on 2011-08-24
dima glib commented on issue blender/blender#118147 2024-02-13 17:01:05 +01:00
GPUFrameBuffer.read_color() returns garbage

Oops! My bad. My mistake was assuming that flattening via ndarray.reshape(-1) is equivalent to buffer.dimensions = ...

The reason I was using numpy arrays is because I'm actually trying to…

dima glib commented on issue blender/blender#118147 2024-02-13 15:55:51 +01:00
GPUFrameBuffer.read_color() returns garbage

...Huh. Thanks! I only encountered transposed matrices before, so the behavior of transposed tensors threw me off the trail.

If the developer consensus will be that this behavior should…

dima glib commented on issue blender/blender#118147 2024-02-12 20:27:57 +01:00
GPUFrameBuffer.read_color() returns garbage

Also, would you mind clarifying how to compare it to gpu.types.GPUTexture.read? I'm afraid I'm not aware of any API which could use GPUTexture as an alternative to GPUFrameBuffer.read_color(). The…

dima glib commented on issue blender/blender#118147 2024-02-12 20:24:24 +01:00
GPUFrameBuffer.read_color() returns garbage

It's not simply transposed, the behavior is quite a bit trickier. I created a large black plane taking the whole view (so theoretically RGB should be 0 and A should be 255), and here's the RGBA8…

dima glib opened issue blender/blender#118147 2024-02-12 18:24:59 +01:00
GPUFrameBuffer.read_color() returns garbage
dima glib opened issue blender/blender#115151 2023-11-19 22:01:39 +01:00
ID property's id_type enum is missing the SCREEN type