Giter Site home page Giter Site logo

Comments (6)

zturtleman avatar zturtleman commented on July 2, 2024

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.

paint-tex-2

Ideally it should be rendered at the specified size. Either changing the displayed widget size or rendering offscreen. I haven't looked into these.

from mm3d.

zturtleman avatar zturtleman commented on July 2, 2024

You can use Polygons: Filled to simply remove the lines.

from mm3d.

Enjay001 avatar Enjay001 commented on July 2, 2024

Thanks for looking in to this and the further info. I agree (and expected) that below a certain size the lines would start to become broken and not much use without anti-aliasing.

Personally I would still find the ability to only export the blue areas (without anti-aliasing) because, if I'm correct, that should give a pixel-perfect image of which bits of the skin are actually used by the model. Yes?

I'm interested in how you got the image that you posted because, apart from the white dots, that is basically what I was looking for. Is that something that is possible to export now, or was that from your testing?

I wasn't sure what you meant by "Saving the image directly". Do you just mean hitting this button?
PaintPic1

Thanks again.

from mm3d.

zturtleman avatar zturtleman commented on July 2, 2024

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.

Screenshot from 2022-06-17 19-34-11

paint-tex

(Result of Save Texture… This is unmodified Maverick 1.3.13.)

The image I previously posted changed this line

img = img.scaledToWidth( h, Qt::SmoothTransformation );

from Qt::SmoothTransformation to Qt::FastTransformation. This changes the image scaling interpolation from (probably) Linear to None. No anti-aliasing but broken lines.

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.

174412980-aa84354f-2308-4598-8afb-9db12448ef9d-128x128
(The image you posted + GIMP: Scale Image to 128x128 with Interpolation: None.)

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.

from mm3d.

Enjay001 avatar Enjay001 commented on July 2, 2024

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.

from mm3d.

m-7761 avatar m-7761 commented on July 2, 2024

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.

from mm3d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.