turanszkij / WickedEngine

3D engine with modern graphics
https://wickedengine.net
Other
5.78k stars 606 forks source link

Linux Paint Tool Doesn’t paint textures #417

Closed EvanNibbe closed 2 years ago

EvanNibbe commented 2 years ago

When I open a .obj file, I can see the structure just fine, but if I right click on the terrain, then press “Paint tool”, then change the color to red, then draw over the texture, nothing happens. I can use Mode: Vertexcolor, which then makes colors appear centered on the vertices.

My current setup is Ubuntu 20.04.3 LTS, with the X11 windowing system, 31.3 GB Ram, Vulkan 1.3.211.0

I have not run any C++ or LUA code in your system yet.

Also: feature recommendation: please add the ability to load a .png image as the texture in Material. Currently, when pressing on the default single color to replace it, no file type is ever recognized as the thing to use.

turanszkij commented 2 years ago

The "Texture" Paint Tool mode requires there to be a texture on the material on the selected slot. An other limitation that the texture must be uncompressed. Uncompressed texture is something you get when the texture is loaded from PNG, JPNG, or common format. Compressed texture could be coming from DDS and KTX2 format, that will not work. For example, if you generate terrain, the terrain textures are loaded from JPG, so a simple way to try texture painting is to generate the terrain, select a terrain block and paint on it.

PNG textures can be set in the Material window for materials. Is there no option on your system to allow selecting between a different file type filtering? Can you post screen shot of the file browsing dialog?

turanszkij commented 2 years ago

Confirmed that the file dialog file type filtering is broken on Linux, will be fixed.

turanszkij commented 2 years ago

The file dialog should be fixed in this commit: https://github.com/turanszkij/WickedEngine/commit/e934673562d43ed741cd1dee667f2f446336bdfd Main problem was that it didn't handle lowercase extensions on linux, sorry for that.

EvanNibbe commented 2 years ago

Also, what does it mean on cmake where it says OpenImageDenoise not found, it will be disabled.

? //I realize this is a non-fatal error since it compiles anyways with make, but will that mean the image quality is lower?

EvanNibbe commented 2 years ago

Thanks for fixing the issue. ![Uploading image.jpg…]()

MolassesLover commented 2 years ago

OpenImageDenoise not found, it will be disabled. means that the OpenImageDenoise binaries haven't been found by Wicked Engine, disabling denoising. This affects rendering quality drastically in some occasions.

turanszkij commented 2 years ago

OpenImageDenoise is completely optional. If available, it will be used to improve final quality of path tracing and lightmap renders.