-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Request to not antialias the Paint Texture image #182
Comments
Saving the image directly uses the preview image so if you manually shrink the paint texture window as small as possible it will be less blurry. Exporting the default preview size without smoothing to 128x128 end up with dots instead of lines which seems too broken to be useful. Ideally it should be rendered at the specified size. Either changing the displayed widget size or rendering offscreen. I haven't looked into these. |
You can use |
I acknowledge getting a clean image is an issue and should be fixed by adding code to rendering the texture at the specified size instead of scaling it. There would be no anti-aliasing or broken lines at any image resolution, just like the preview window. "Saving the image directly uses the preview image" -> Saving the image (the Save Texture… button) uses the literal image displayed in the window and then scales it to the specified size. If you make the window smaller there is less scaling when exporting 128x128. It's still blurry though because I didn't get the preview to exactly 128x128. (Result of Save Texture… This is unmodified Maverick 1.3.13.) The image I previously posted changed this line https://github.com/zturtleman/mm3d/blob/53b0d1b33412bddacd65559f41d5511b9050a27a/src/implui/painttexturewin.cc#L238 You can do the same thing by taking a screenshot of the Paint Texture window, cropping the image, and scaling it to 128x128 with no interpolation.
Adding an option to "disable anti-aliasing" (use Qt::FastTransformation scaling mode) is a hacky workaround that doesn't work with lines enabled (users should resize the window to match the target size as best they can and/or disable lines). If the code is changed so that the image is rendered at the specified size, there would be no image scaling / anti-aliasing and so a "disable anti-aliasing" option would be entirely unnecessary. When I was working on Maverick 1.3.13, I viewed it as possibly the final release. I plan to make one more Maverick release to fix a rendering issue and include macOS again but beyond that I'm not sure. I haven't been motivated to work on it in the past 5 months and in general I've lost interest in working on it. It remains to be seen if I decide to invest time to try to fix this issue. |
Thank you for the input once again. I had thought about simply resizing a screenshot without interpolation. So I can certainly do that if needs be. It's a shame to hear that work/support for Maverick is drawing to a close, but also completely understandable. |
If you want to use it as an editor my fork (https://github.com/mick-p1982/mm3d) makes many improvements. But be warned it's MM3D files only work with itself. |
When you save an image using the Paint Texture feature, the image produced is resized to whichever size you select and, when doing so, antialiasing is applied during the resize. This can result in the projected panels in the image having blurred edges.
A nice crisp image in the preview:
I know that this output image is unusually small, but that's what the model demanded (and the effect happens to a greater or lesser extent at all resolutions). The white lines are blurred, but that is perhaps not as important as the fact that the edges of the panels are also blurred and semi-transparent.
Given that the main point of the tool is to export an image that shows the location of the UV mapped panels exactly (and the preview in Maverick is nice and crisp), I feel that the antialiasing potentially limits the usefulness of the tool. I realise that outputting to small resolutions without antialiasing could cause blocky looking edges and broken white lines, but I feel that it could be useful - perhaps more useful than an antialiased image.
So, could there please be an option to not antialias the output image from Paint Texture Image?
An option to create an opaque background might also be useful.
Thank you.
The text was updated successfully, but these errors were encountered: