Maniphest T68746

Write image.pixels
Closed, ArchivedTO DO

Assigned To
Jacques Lucke (JacquesLucke)
Authored By
Ivan Perevala (ivpe)
Aug 16 2019, 8:21 PM
Tags
  • BF Blender
Subscribers
Ivan Perevala (ivpe)
Jacques Lucke (JacquesLucke)
Nathan Letwory (jesterking)
Ray Molenkamp (LazyDodo)
Vlad Kuzmin (Ssh4)

Description

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 388.13

Blender Version
Broken: version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: rBf6cb5f54494e
Worked: (optional)

Short description of error
So, I create gpu.types.GPUOffScreen and I want to make it context.scene.tool_settings.image_paint.clone_image. But to do this I need to call slow image.pixels = [v / 255 for v in buffer]
Why I can't access directry clone paint source? It works fine for images like 512x512 but I need to work at least with 2048x2048 textures.

Currently almost all of the execution time is spent in the last line. In the future this will hopefully be solved by implementing the Python buffer protocol for bgl.Buffer and bpy.types.Image.pixels (aka bpy_prop_array)

Event Timeline

Ivan Perevala (ivpe) created this task.Aug 16 2019, 8:21 PM
Ivan Perevala (ivpe) edited a custom field.
Jacques Lucke (JacquesLucke) changed the task status from Unknown Status to Unknown Status.Aug 20 2019, 5:05 PM
Jacques Lucke (JacquesLucke) claimed this task.
Jacques Lucke (JacquesLucke) added subscribers: Ray Molenkamp (LazyDodo), Jacques Lucke (JacquesLucke).

This is a well known issue. There have been multiple reports about this in the past. I even worked on this a little bit some time ago, but was not able to finish it back then. Didn't @Ray Molenkamp (LazyDodo) also work on this at some point?

In any case, this is not a bug and therefore should not be handled in the bug tracker.

Ray Molenkamp (LazyDodo) added a comment.Aug 20 2019, 5:11 PM

I did, but other things came up, never finished/published the patch.

Ivan Perevala (ivpe) added a comment.Aug 20 2019, 7:17 PM

Ok. But maybe I can have python access directly to the one from which clone brush take RGBA? Its a great future if addon work with texture paint

Vlad Kuzmin (Ssh4) changed the task status from Unknown Status to Unknown Status.Aug 28 2019, 1:57 AM
Vlad Kuzmin (Ssh4) added a subscriber: Vlad Kuzmin (Ssh4).
In T68746#757146, @Ray Molenkamp (LazyDodo) wrote:

I did, but other things came up, never finished/published the patch.

Is it possible increase priority for this fix/patch?
We are working on free addon that can substitute Mari and Mudbox in "camera" paint feature (using a lot in photogrammetry and 3D scanning) and such a slow calls making addon way less usable. :(

Ray Molenkamp (LazyDodo) changed the task status from Unknown Status to Unknown Status.Aug 28 2019, 9:38 PM

Not on my end, i'm a volunteer, i'll happily share the code i am working on for my own needs, but i can't let random strangers set priorities on my spare time.

also please do not re-open tickets in the future.

Vlad Kuzmin (Ssh4) added a comment.Aug 29 2019, 2:37 AM
In T68746#764682, @Ray Molenkamp (LazyDodo) wrote:

Not on my end, i'm a volunteer, i'll happily share the code i am working on for my own needs, but i can't let random strangers set priorities on my spare time.

also please do not re-open tickets in the future.

If you are volunteer, next time please avoid doing such comments like that. Answers like that main reason Why professional do not like open-source - always rude answers from “sparetimers”.
Blender Foundation and core developers trying change this opinion, but I see why this is so hard.

Sorry, I thought you are part of core-dev team. I’ll never ask random lad to fix something. Please, ignore my request about priority, it was not to you.

And as volunteer, Please, next time, do not tell other what they should or what they should not to do ;)

Nathan Letwory (jesterking) added a subscriber: Nathan Letwory (jesterking).Aug 29 2019, 5:22 AM

Please keep comments on topic, so we can maintain a friendly environment with respect for each other. Thank you.