export_uv_png: Use grayscale FBO for drawing. #104800

Open
YimingWu wants to merge 1 commits from ChengduLittleA/blender-addons:fix-uv-export into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

Since you don't really need any color info when exporting UV layouts,
changed the FBO to using grayscale to save system resource especially
for exporting large images.

Note: this needs blender/blender#110630 to be merged first.

Since you don't really need any color info when exporting UV layouts, changed the FBO to using grayscale to save system resource especially for exporting large images. Note: this needs https://projects.blender.org/blender/blender/pulls/110630 to be merged first.
YimingWu added 1 commit 2023-07-30 16:16:29 +02:00
Since you don't really need any color info when exporting UV layouts,
changed the FBO to using grayscale to save system resource especially
for exporting large images.
YimingWu added the
Interest
Pipeline, Assets & IO
label 2023-07-30 16:16:50 +02:00
First-time contributor

Thank you so much. Will try it out and let you know.

Thank you so much. Will try it out and let you know.

This looks like it will produce an image with no alpha. A typical use-case for this addon will be to use the resulting file and overlay it on top of whatever you're painting as a layer rather than painting directly on the resulting file.

This looks like it will produce an image with no alpha. A typical use-case for this addon will be to use the resulting file and overlay it on top of whatever you're painting as a layer rather than painting directly on the resulting file.

Note that exporting UV layouts uses material color, so I don't think the premise of this PR is correct.

Note that exporting UV layouts uses material color, so I don't think the premise of this PR is correct.
Author
Member

@jesterking You could still use multiply/overlay mixing for these kind of single channel images to achieve the same effect.

@ideasman42 Hummm looks like only filling uses vertex color... Maybe I'll go add an option there for people that want to have mono output.

@jesterking You could still use multiply/overlay mixing for these kind of single channel images to achieve the same effect. @ideasman42 Hummm looks like only filling uses vertex color... Maybe I'll go add an option there for people that want to have mono output.
First-time contributor

@jesterking You could still use multiply/overlay mixing for these kind of single channel images to achieve the same effect.

@ideasman42 Hummm looks like only filling uses vertex color... Maybe I'll go add an option there for people that want to have mono output.

and yes I use it as multiply, or even we can use it as a mask or even, we can use it just as a resource for selection tool

> @jesterking You could still use multiply/overlay mixing for these kind of single channel images to achieve the same effect. > > @ideasman42 Hummm looks like only filling uses vertex color... Maybe I'll go add an option there for people that want to have mono output. and yes I use it as multiply, or even we can use it as a mask or even, we can use it just as a resource for selection tool
This pull request has changes conflicting with the target branch.
  • io_mesh_uv_layout/export_uv_png.py

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u fix-uv-export:ChengduLittleA-fix-uv-export
git checkout ChengduLittleA-fix-uv-export
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#104800
No description provided.