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

Manually created UDIM images sometime don't get packed correctly #237

Closed
colby3d opened this issue Jan 26, 2025 · 12 comments
Closed

Manually created UDIM images sometime don't get packed correctly #237

colby3d opened this issue Jan 26, 2025 · 12 comments
Labels
bug Something isn't working

Comments

@colby3d
Copy link

colby3d commented Jan 26, 2025

When closing and reopening the file, painted layer information is lost, it looks like this happens when two different versions of the file exist, both versions of the image are lost if one is edited. This might be due to how the images are saved?

Image

@ucupumar
Copy link
Owner

Can you record your process for reproducing the issue? It's difficult to figure out what's wrong there.

@ucupumar ucupumar added the needs more info Needs more information from user label Jan 26, 2025
@colby3d
Copy link
Author

colby3d commented Jan 26, 2025

sure, so what I did was save 2 versions of the file, edit the image in one, save, and open the other version. https://youtu.be/DXsMXizlcrs after which both versions of the file are missing the edited image.

@ucupumar
Copy link
Owner

ucupumar commented Jan 26, 2025

Can you show the entire process? Like from the default cube scene, I want to know how did you create the layer image.

@colby3d
Copy link
Author

colby3d commented Jan 26, 2025

sure, also I've figured out it's only when I use UDIMS https://youtu.be/IUPtiHiblEk
basically, just ucupaint setup > create layer> paint >save main file and alternate > paint on alt. > save > open main file > both files have lost the layer.

@ucupumar
Copy link
Owner

I see, I just tried just like what you did and yeah, it does not save on Blender 4.0, but it works fine on Blender 4.3. I'll check what's the problem there later.

@ucupumar ucupumar changed the title Missing layers (from twitter post) UDIM image doesn't packed correctly on Blender 4.0 Jan 26, 2025
@ucupumar ucupumar added bug Something isn't working and removed needs more info Needs more information from user labels Jan 26, 2025
@ucupumar
Copy link
Owner

I'm not sure what's wrong with Blender 4.0 but this issue only happens on that version (even Blender 3.3 is fine). If you manually fill the tile using the image editor, the image just won't get packed correctly. I found no way to detect if the image is manually filled using the image editor or automated using ucupaint.
To get around this issue you can refill the images using ucupaint's own operator, it will fill the images based on your current UV

Image
And make sure not to fill the tile manually using the image editor.

@ucupumar ucupumar changed the title UDIM image doesn't packed correctly on Blender 4.0 Manually filled UDIM image doesn't get packed correctly on Blender 4.0 Jan 28, 2025
@ucupumar ucupumar changed the title Manually filled UDIM image doesn't get packed correctly on Blender 4.0 Manually filled UDIM image doesn't get packed correctly (Blender 4.0 only) Jan 28, 2025
@colby3d
Copy link
Author

colby3d commented Feb 8, 2025

Issue happens in 4.3.2 as well, without filling UDIMS, the affected layers are alpha backrounds. I've also avoided saving alternate versions, this happens seemingly at random upon loading the file. Creating entirely new layers will also break the shader and turn the model pink at times, this might be related?
Image

@ucupumar
Copy link
Owner

ucupumar commented Feb 8, 2025

Can you record your process of recreating the issue again on Blender 4.3?

@colby3d
Copy link
Author

colby3d commented Feb 8, 2025

sure, though it's not really a process, it's the same as with the other version but without backups/filling, just starting blender and layers made previously are gone (halfway through the video I notice a layer not broken but missing) the images look like they have some information but exporting and loading them as an image node shows they're missing most data, on the left you can see some strokes were preserved (the last ones on the layer). I've also noticed that creating new layers past a certain point seems to break the material in a similar way, could it be there's a limit to the number of images and new images break old ones after reloading? https://youtu.be/mRLGXPg1zE8

Edit: the blend file was also originally made in the previous version with the bug, and while it's a little different now, maybe that's part of the problem?

@ucupumar
Copy link
Owner

ucupumar commented Feb 8, 2025

It's possible. Can you please try to recreate the issue directly in Blender 4.3 from the start?

@ucupumar
Copy link
Owner

ucupumar commented Feb 8, 2025

I just made a fix to ensure manually created/filled UDIM images will be packed correctly when you save the blend file.

Also, I just checked your video again and the pink material is likely not related to this issue. It's probably because you hit the maximum UDIM image limit per material. I already compiled some info about that here https://ucupumar.github.io/ucupaint-wiki/01.11.extras/

The workaround is to convert all your UDIM images to use image atlas, the demo can be seen here https://x.com/ucupumar/status/1716421635513987331

@ucupumar ucupumar changed the title Manually filled UDIM image doesn't get packed correctly (Blender 4.0 only) Manually created UDIM images sometimes doesn't get packed correctly Feb 8, 2025
@ucupumar ucupumar changed the title Manually created UDIM images sometimes doesn't get packed correctly Manually created UDIM images sometime doesn't get packed correctly Feb 8, 2025
@ucupumar ucupumar changed the title Manually created UDIM images sometime doesn't get packed correctly Manually created UDIM images sometime don't get packed correctly Feb 8, 2025
@colby3d
Copy link
Author

colby3d commented Feb 8, 2025

yup, you're right that was the issue with the new layers, converting to atlas fixed that, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants