Giter Site home page Giter Site logo

Comments (27)

copygirl avatar copygirl commented on July 17, 2024

What's your linux distribution, graphics card and drivers?

from vintagestory-issues.

tyronx avatar tyronx commented on July 17, 2024

I have a feeling it's related to the pngcrush I executed over all the pngs to get rid of the 'Incorrect sRGB profile' error

from vintagestory-issues.

copygirl avatar copygirl commented on July 17, 2024

@tyronx Does that explain the crafting table leaves, too?
@zkol So earlier versions don't have this bug?

To find out whether the PNG files are what's causing this, one could copy them over from the new version over the old one or the other way around.

from vintagestory-issues.

tyronx avatar tyronx commented on July 17, 2024

I dunno really, but please do test

from vintagestory-issues.

tyronx avatar tyronx commented on July 17, 2024

Also @copygirl do you also get these issues?

from vintagestory-issues.

copygirl avatar copygirl commented on July 17, 2024

Game looks fine for me (and I'm quite happy about the libPNG warnings being gone).

from vintagestory-issues.

tyronx avatar tyronx commented on July 17, 2024

Oh ok, thats good to hear. Maybe you and @zkol could also compare the installed libPng Version?

from vintagestory-issues.

copygirl avatar copygirl commented on July 17, 2024

I personally doubt it's important. How would this affect the creation of the terrain texture atlas? Either way, here you go:

 copygirl@yuuko  ~  pacman -Qs png
local/lib32-libpng 1.6.34-1
    A collection of routines used to create PNG format graphics files (32-bit)
local/lib32-libpng12 1.2.59-1
    A collection of routines used to create PNG format graphics files
local/libpng 1.6.34-2
    A collection of routines used to create PNG format graphics files
local/libpng12 1.2.59-1
    A collection of routines used to create PNG format graphics files

from vintagestory-issues.

zkol avatar zkol commented on July 17, 2024
Linux karg 4.4.0-116-lowlatency #140-Ubuntu SMP PREEMPT Mon Feb 12 22:41:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
ii  libpng12-0:amd64    1.2.54-1ubuntu1   amd64   PNG library - runtime
ii  libpng12-0:i386     1.2.54-1ubuntu1   i386    PNG library - runtime
ii  libpng12-dev:amd64  1.2.54-1ubuntu1   amd64   PNG library - development

The previous versions did not have this bug, of course.

from vintagestory-issues.

zkol avatar zkol commented on July 17, 2024

Updating to 1.5.2.2 did not change the problem.
Additional Info: seems that the messed up textures always change a bit, for every server restart. Here are some examples:
2018-03-22_23-05-57
2018-03-22_23-06-45
2018-03-22_23-07-59
2018-03-22_23-08-42
2018-03-22_23-10-26
2018-03-22_23-11-02
2018-03-22_23-12-01
I like the last one very much

from vintagestory-issues.

tyronx avatar tyronx commented on July 17, 2024

Lol, thats too wicked. Maybe a peek into the texture atlas reveals something. Please send me the output of .debug exptexatlas block. It should generate a png file where the VintageStory.exe resides.

from vintagestory-issues.

tyronx avatar tyronx commented on July 17, 2024

Also @zkol please try for me one more thing. Copy&Overwrite all textures from 1.5.1.6 into your 1.5.2.2 folder. Then we can identify if the engine is at fault or pngcrush

from vintagestory-issues.

zkol avatar zkol commented on July 17, 2024

blockatlas-0
here comes the atlas

from vintagestory-issues.

zkol avatar zkol commented on July 17, 2024

Ok, I'll try to patch the textures. But why not the textures from 1.5.2 - in 1.5.2 there was no texture issue. Maybe this information may help you.

from vintagestory-issues.

tyronx avatar tyronx commented on July 17, 2024

Oh yea, 1.5.2 is fine too then

from vintagestory-issues.

tyronx avatar tyronx commented on July 17, 2024

Well I did find some minor brainf*** in my code involving converting an array of pixels into a system.drawing.bitmap and back for no apparent reason, maaaaaybe that fixes something. Also should speed up start up times by 0.5 - 2 seconds \o/

from vintagestory-issues.

zkol avatar zkol commented on July 17, 2024

I did the texture patch in between (with 1.5.1.6) and the issue seems to be gone.

from vintagestory-issues.

tyronx avatar tyronx commented on July 17, 2024

Aw. So it is the pngcrush I guess :/

from vintagestory-issues.

tyronx avatar tyronx commented on July 17, 2024

Ok, just confirmed to be not the game engines fault. Either mono or pngcrush borks it.

from vintagestory-issues.

tyronx avatar tyronx commented on July 17, 2024

Reported on the mono bug tracker: mono/mono#7821

from vintagestory-issues.

tyronx avatar tyronx commented on July 17, 2024

Also reverting to pre-pngcrush files until we know more about it from the mono guys.

from vintagestory-issues.

filipnavara avatar filipnavara commented on July 17, 2024

It was fixed in libgdiplus last year (mono/libgdiplus#47, mono/libgdiplus#77). That library is used by Mono to implement System.Drawing and the related graphics manipulation. New enough libgdiplus+Mono should be enough to fix the issue. It is possible to avoid triggering the issue by running pngcrush with different parameters, but probably not worth the effort.

from vintagestory-issues.

tyronx avatar tyronx commented on July 17, 2024

Thank you! @filipnavara

from vintagestory-issues.

zkol avatar zkol commented on July 17, 2024

Tested 1.5.2.4 successfully (no such texture issue). Thanks a lot!

from vintagestory-issues.

tyronx avatar tyronx commented on July 17, 2024

Yea but @copygirl has her error log spam back :<
Probably need to fiddle with pngcrush options to make it print no errors. That can go into a new issue though.

from vintagestory-issues.

filipnavara avatar filipnavara commented on July 17, 2024

You can strip just the color profiles by running pngcrush -rem gAMA -rem cHRM -rem iCCP -rem sRGB -noreduce -ow <files>.

from vintagestory-issues.

tyronx avatar tyronx commented on July 17, 2024

Oh okay, thanks a lot @filipnavara! I'll try that out.

from vintagestory-issues.

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.