Elvas Tower: Paint.NET not saving the alpha channel as expected - Elvas Tower

Jump to content

  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

Paint.NET not saving the alpha channel as expected I've just noticed that now, and I think it's not compatible Rate Topic: -----

#1 User is offline   MLProject 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 49
  • Joined: 29-November 21
  • Gender:Male
  • Location:São Paulo, Brazil
  • Simulator:OpenRails
  • Country:

Posted 29 May 2022 - 12:23 PM

Hello everyone! Recently, I've started noticing that TGATools wasn't saving the Alpha Channel properly, (as I was using Paint.NET as a editing program) as they came with corruptions or very smaller or duplicated.
However, only when I decided to use Microsoft Paint as a editing program, it saved the alpha channel (I mean, it saved without any problem, did came any corruption and etc...). Otherwise, I feel uncomfortable using Microsoft Paint (cuz, comparing it to other actual paint programs, it seems useless), and so, I've been thinking in which program I should use (as paint.NET seems to be incompatible to TGATools). http://www.elvastower.com/forums/public/style_emoticons/default/sorry2.gif

#2 User is offline   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 6,985
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 29 May 2022 - 12:30 PM

Under win95 I used Serif PhotoPlus.
PhotoShop costs huge money in Western part of World...
Now... really don't know.

#3 User is offline   steved 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,855
  • Joined: 19-December 09
  • Gender:Male
  • Location:South of here
  • Simulator:ORMG
  • Country:

Posted 29 May 2022 - 01:24 PM

Not all paint programs have a default save file type that supports transparencies.
TGATool doesn't support all file formats that also support transparencies.
The .tga file type works with both, hence the name.
It's also possible that the image doesn't have any transparent properties.
Transparent parts of an image show as a white/grey check pattern.
Attached File  trans.JPG (13.6K)
Number of downloads: 0
If you don't have these you don't have any transparencies.
PaintDotNet is the only paint program I use and it does a grand job.
Another option is to use .dds (DirectDraw Surface) image files.
They work just fine in OR and PaintDotNet will save them natively.
You'll want the updated .dds friendly ShapeViewer program available here at ET to be able to view your work.

Randy


#4 User is offline   QJ-6811 

  • Conductor
  • Group: Status: Active Member
  • Posts: 385
  • Joined: 27-December 15
  • Gender:Male
  • Simulator:MSTS / Open Rails
  • Country:

Posted 22 October 2023 - 03:00 AM

I've also been looking into the "low quality" Alpha problem for a while now.

For example, if I open this .ACE
Attached File  Lblau.zip (1.23K)
Number of downloads: 1

Attached File  Open_AceFile.jpg (46.7K)
Number of downloads: 0

, Standard via MSPaint, I can save the picture and Alpha as TGA or BMP, good quality.

Attached File  blau_as_BMP.jpg (454bytes)
Number of downloads: 0 Attached File  Alpha_as_BMP.jpg (565bytes)
Number of downloads: 0


If I "mirror" both as a test, such as CTR-C/CTR-V via an Editor, or via MSPaint, it works fine until I close MSPaint.
Then, if Export to .ACE and reopen, the Alpha is as "Low Quality". (actually as less pixels build up).
Attached File  AfterSave_MSPaint.jpg (50.08K)
Number of downloads: 0


After searching I found this post, and now also use PaintDotNet (5.0.11).
This indeed works better, if I have edited both, TGATool gives a good quality picture and Alpha after a "mirror". [OK]
Attached File  AfterSave_paintDotNet.jpg (52.57K)
Number of downloads: 1

However, after exporting to .ACE (and reopening) everything is 'garbled' ?
Attached File  AfterSave_to_ACE.jpg (54.58K)
Number of downloads: 1



Does anyone have an idea what causes this, or better yet how to solve it, to make a good .ACE (with good Alpha) again?

#5 User is offline   mrmosky 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 648
  • Joined: 02-October 16
  • Gender:Male
  • Location:Chasetown
  • Simulator:Openrails
  • Country:

Posted 22 October 2023 - 05:00 AM

I also use Paint.net. I don't understand where TGATool comes into your workflow.

My method is to create the texture in Paint.net, then if I need a transparent area, I cut that out of the image, which leaves a checkered area - which means no colour. Then if I want a tinted glass, I add a layer in Paint.net and put the colour there. I change the properties of the new layer and change the transparency until the tint looks right.

Then I save to a .TGA file with 32 bit depth. It asks if it's ok to flatten, which adds the layers together.

Then I convert to a .ace file with AceIt , using the Format RGB + alpha (8 bit alpha).

That then works perfectly in OR, with the alpha parts showing transparent and the rest of the image opaque.

edit.. I did not see that you are using TGATool to convert the .ace file to TGA as a first step. Now I understand.

The file is very small to begin with. Maybe that is causing a problem.

edit edit... The .ace file is compressed, and it is also 44x19 pixels. When it is converted into a .TGA by TGATools it makes it into a square image of 60x60 pixels, with a lot of white space. I think that is the problem. When you re-convert that image to a .ace file, It is distorted, compared to the original.

Geoff

#6 User is offline   mrmosky 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 648
  • Joined: 02-October 16
  • Gender:Male
  • Location:Chasetown
  • Simulator:Openrails
  • Country:

Posted 22 October 2023 - 05:32 AM

Okay,

Try this file that is attached.

I have converted to a TGA file and then stretched it in Paint.net to be 64x64 size. Then I have converted it using AceIt to .ace again.

Geoff

Attached File(s)



#7 User is offline   pwillard 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 807
  • Joined: 03-March 08
  • Gender:Male
  • Location:Cumming, Ga
  • Simulator:OpenRails
  • Country:

Posted 22 October 2023 - 06:30 AM

First of all, MSPAINT has always been a TOY and not a real bitmap manipulators tool. Yes, the most recent versions in Windows 11 might improve it a little... but it remains a TOY, nonetheless. Second, many of our 3rd Party tools limit us to legacy requirements placed on us by the original MSTS.   [NO DDS]

I would say... Use PAINT.NET.  It's reasonably intuitive (unlike GIMP), free, and supports all of the formats we want, including DDS (which I prefer). It also has a LOT of cool addons available (also free).  It understands layers and can work with PSD files... (which is a plus).

#8 User is offline   QJ-6811 

  • Conductor
  • Group: Status: Active Member
  • Posts: 385
  • Joined: 27-December 15
  • Gender:Male
  • Simulator:MSTS / Open Rails
  • Country:

Posted 22 October 2023 - 08:06 AM

Thanks in advance for the answers, I will try further.

By the way, I had already tried it with.TGA. I have often used TGAtool to open existing .ACE, and after adjustments export it again to .ACE (usually it works fine...)
I see that you are converting to .ACE via Acelt, I will test this to see if it goes well.

#9 User is offline   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 6,985
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 22 October 2023 - 08:12 AM

Tag tool is just manipulator, not converter. It just a shell, handy interface, calling dedicated programs to do the work.
Latter should be pointed, by settings.

#10 User is offline   steved 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,855
  • Joined: 19-December 09
  • Gender:Male
  • Location:South of here
  • Simulator:ORMG
  • Country:

Posted 22 October 2023 - 09:24 AM

Did you try saving like this?
Attached File  dxt5.jpg (77.78K)
Number of downloads: 2

Randy


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users