News:

Please request registration email again and then check your "Spam" folder

Former www.henthighschool.com

[MOD DEVELOPMENT] Professor Fen's Discovery Corner!!!

Started by Fen_Going_To_School, Jun 03, 2022, 12:29 AM

Previous topic - Next topic

Fen_Going_To_SchoolTopic starter

Good evening, I'm Professor Fen and welcome to my TIT talk. I got my Doctorate in Degeneracy at the prestigious Bigville University where I graduated as Gigus Chadicus of my class. I come to you today to discuss a very serious problem, we lost all the documentation. Like any dick-punch, the fall of the old forums left us winded, disoriented, and scrounging around for our misplaced testicles. This is my small contribution to reclaim what has been lost, which will be updated as I test the depths of the current build.
IMG Format
  • The game currently supports 4 known formats; JPG, PNG, GIF, and WEBP.
  • Limitations
    • Animated PNGs (APNG) and WEBPs will only display the first frame of their animations. Which is unfortunate as APNGs look better and WEBPs are far more compact and look just as good as APNGs.
    • WEBPs are 'supported', but do not currently show up automatically during development. To see them you must switch the file type from [Image Files] to [All Files].
    • WEBP may increase the size in smaller files, should you decide to forgo compression. Still worth it in my opinion but use your best judgement..
    • Upon closing the Event editor, the game reverts to [image files], so upon returning to it your image will appear to be 'missing'. The game will still read it just fine when booted up, but the editor will not and you'll need to either make do or bust out the exceptions (which could be a problem if one of them actually goes missing).

    Suggestions
    • I would recommend switching to WEBP as the primary image format, whenever possible. Below is a breakdown of of how much space was saved with the process with attachments below that.
    Spoiler
    • The original file a was 8.89MB PNG that I know most everyone here has read, I recommend reading it again to check the image quality against the attachments ;).
    • All images were resized to 800x1100
    • While PNG might not suffer from extreme distortion under compression, the smaller size of WEBP means it never needs to go down that far.





    Size(KB)        |PNG |Quality  |WEBP| Quality|
    Lossless        |XXXX|Perfect  |777 |Perfect
    No Compression  |3555|Perfect  |305 |Perfect
    50% Compression |1216|Perfect  |74  |Fantastic

    Max Compression |1182|Perfect  |27  |Bad
    [close]
    Further Investigation
    • I've verified that animated WEBP files have an equally large advantage over GIF size and quality. Should we discover a way for them to function in the game, then having 'GIFs' in the game will no longer balloon up the size.
    • I will come back and provide a guide for WEBP conversion and compression later, when I've had time to test and write.

    Sound
    -A sound overhaul is next on my experiment list, cause if I have to listen to Calm one more GOD DAMN TIME!
      [/td]
    [/tr]
    [/table]

Fen_Going_To_SchoolTopic starter

#1
Reserved for Sound


Umgah

The problem with WEBP is that the base platform (DotNet) might not support WEBP on all versions of Windows equally.
For instance, WEBP images might not work on Windows 7 (however this have to be checked).

That's why WEBP is not yet added as a format that HHS accepts in the image editor.

PS: Topic about WEBP support was discussed internally just a week ago.

Fen_Going_To_SchoolTopic starter

I'm stupid when it comes to the backend of programming, but from what I've seen it works for Windows XP and beyond. I know for certain that WEBP images can be viewed on 7 via the projects file viewer. But can't say for certain it wouldn't be buggy.

I know that web-sites that use WEBP also use a function to decompress a WEBP file back into a PNG/JPEG in the event that the browser doesn't support it. Can't speak for the speed, but that might be a solution.

Shilo

I think for WEBP in WPF, it has some issues with transparency. So while it may work okay for fully opaque images, you may want to stick to PNG for anything with transparency.

Fen_Going_To_SchoolTopic starter

#6
Just tested, and can confirm. It really does not like transparency.
You cannot view this attachment. You cannot view this attachment.

Umgah

Yeah. That's the bug: https://github.com/dotnet/wpf/issues/1436

I think that we should add WEBP support even if that means opaque images only. However somebody have to test it first on Windows 7.