ucupumar / ucupaint

Ucupaint is Blender addon to manage texture layers for Eevee and Cycles renderer.
GNU General Public License v3.0
1.25k stars 37 forks source link

Feature request: Can add a textures generator like bpainter? #8

Closed iillya closed 6 months ago

iillya commented 1 year ago

Feature request: Can add a textures generator like bpainter to make composite rgba channel more convenient ? image

ucupumar commented 1 year ago

Can you explain what does it do? I'm not familiar with bpainter.

iillya commented 1 year ago

Can you explain what does it do? I'm not familiar with bpainter.

The functionality it implements is similar to combine color in compositor.But it can composite not only pictures, but also channels like this. image

ucupumar commented 1 year ago

I see. Do you want the baked channels to be filled in the RGB channel of a single texture, something like that?

iillya commented 1 year ago

I see. Do you want the baked channels to be filled in the RGB channel of a single texture, something like that?

YES

ucupumar commented 1 year ago

I actually think about this feature before, but I'm not sure how to integrate a UI that makes sense in ucupaint. Do you have an idea or proposal for how the UI will work?

iillya commented 1 year ago

I actually think about this feature before, but I'm not sure how to integrate a UI that makes sense in ucupaint. Do you have an idea or proposal for how the UI will work?

OK.I will have a try.

iillya commented 1 year ago

I actually think about this feature before, but I'm not sure how to integrate a UI that makes sense in ucupaint. Do you have an idea or proposal for how the UI will work?

I think you can refer to the logic of another plugin Philogix PBR Painter.I modified it slightly ui

ucupumar commented 1 year ago

Hmm, I think it's too complicated to add another panel specific only for this. I prefer if the panel will be on the channel settings instead. After some more thinking, it's probably more compact if the option is just a checkbox to export the channel as one bundled texture. And the RGBA order will be the same as the order of the channels. Something like that. What do you think?

iillya commented 1 year ago

Hmm, I think it's too complicated to add another panel specific only for this. I prefer if the panel will be on the channel settings instead. After some more thinking, it's probably more compact if the option is just a checkbox to export the channel as one bundled texture. And the RGBA order will be the same as the order of the channels. Something like that. What do you think?

I prefer to manually check the export to a certain channel.Something like this.How about it? ui

ucupumar commented 1 year ago

Hmm, the problem with this approach is I need to set the image first to use its RGB channels. How to make it automatically assign to the B channel of the newly generated image after baking?

I want more automatization because some applications like godot can read ORM textures, it will be cumbersome to manually create a new image and assign the RGB target for each channel for every material.

ucupumar commented 9 months ago

Update on this issue, I actually already started the implementation a few months ago, but I guess I forced the automation too much, it made the implementation very messy, I think I'll start from scratch instead. I think the manual checkbox will be a better option I guess. So the ORM, or any other can be chosen as preset if all the channels are available.

ucupumar commented 6 months ago

I just committed a base implementation of channel packing/custom bake target in ucupaint. It can be accessed here: image I still need to add a simpler UI element to show the baked bake target images.

ucupumar commented 6 months ago

I just added a new menu to save and pack the image results. I also added presets to create GLTF ORM and DirectX normal bake targets. Feel free to give me more preset suggestions before I close this issue. image

ZAQraven commented 6 months ago

Suggestion: Each channel should be added to adjust the value of color such as color ramp.

ucupumar commented 6 months ago

Suggestion: Each channel should be added to adjust the value of color such as color ramp.

Thanks for the suggestion, but currently there's no way to preview the bake target so there's no way to preview the color adjustment. For the initial implementation, this is just for packing the channel results into a single texture. There will probably be a dedicated preview mode for custom bake targets in the future, but it's not covered in this issue,

Since there are no more preset suggestions, I think I'm closing this issue now.