Elvas Tower: Passenger view - glass in windows - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Passenger view - glass in windows Rate Topic: -----

#1 User is offline   QJ-6811 

  • Conductor
  • Group: Posts: Contributing Member
  • Posts: 430
  • Joined: 27-December 15
  • Gender:Male
  • Simulator:MSTS / Open Rails
  • Country:

Posted 15 April 2025 - 12:34 AM

a question about passenger-view.

If the setting is something like: "Inside ( PassengerCabinFile ( passenger.s ) ...... etc." and this shape "passenger.s" is provided with 'glass in windows' the following happens:
The 'glass' is never visible, only as an 'empty hole'. Only a completely closed window becomes visible.
In other words, it seems that Alpha is not supported, only Transparent, so 'open or closed'.
Is this conclusion correct?

If I make this "passenger.s" for test as 'wagon shape' in the .WAG/ENG and I still give the setting "Inside ( PassengerCabinFile ( passenger.s ) ...... " the windows remain 'an open hole'. (picture1). If I go to view-8 the glass becomes visible (picture-2).
Picture3 shows that it is the wagon shape in this test, so no influence from other shapes or settings.

If I remove the line Inside "Inside ( PassengerCabinFile ( passenger.s ) ...... ", so only "Inside ( PassengerCabinHeadPos ...... etc", it works fine, then you have the glass like picture2 (OK, now you see the passenger.s as wagon shape, but clearly equal files.)

The only bypass is to place the passenger.s as FreightAnimStatic( in your wagon, but you don't have anything like Visibility ("inside or passengerview") or something like that?
(now you get a double interior externally....)

Does anyone know a solution or trick?


Attached Image: picture1.jpg
picture1

Attached Image: picture2.jpg
picture2

Attached Image: picture3.jpg
picture3

#2 User is offline   Weter 

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

Posted 15 April 2025 - 09:58 AM

Hello.
I maybe understand You wrong, Roger, but if You mean "glass in windows" option, that's about popup driving aids as track monitor, train operation, timetable, etc. So, in case, I tell it right, that has nothing with alpha-sorting.

#3 User is offline   QJ-6811 

  • Conductor
  • Group: Posts: Contributing Member
  • Posts: 430
  • Joined: 27-December 15
  • Gender:Male
  • Simulator:MSTS / Open Rails
  • Country:

Posted 15 April 2025 - 01:15 PM

No, I don't mean this option.
If the object (the interior) has "glass" in the windows (like picture2), you see this in principle in all situations.
The "Glass", the texture .ace that displays this side wall, of course has an alpha setting to make the glass (half) transparent.

It turns out that if you specify "Inside ( PassengerCabinFile ( passenger.s ) ......", so this interior shape-file in the passenger view "key 5" that the alpha does not work, so you always get an 'open hole'. (or you do not specify an alpha in the .ace, you have a closed window, not transparent of course). IOW, "open or closed".

#4 User is offline   superheatedsteam 

  • Engineer
  • Group: Posts: Contributing Member
  • Posts: 591
  • Joined: 28-June 08
  • Location:Perth, WA
  • Country:

Posted 16 April 2025 - 03:15 PM

Have a look at the following 3 threads.

https://www.elvastow...ing-8-bit-alpha

https://www.elvastow...page__hl__alpha

https://www.elvastow...passenger-view/

The workaround for me was to create a new texture file with the 8-bit alpha channel and applying that texture to the window glass object.

Hope this helps.

Cheers,

Marek.

#5 User is offline   QJ-6811 

  • Conductor
  • Group: Posts: Contributing Member
  • Posts: 430
  • Joined: 27-December 15
  • Gender:Male
  • Simulator:MSTS / Open Rails
  • Country:

Posted Yesterday, 12:05 AM

Thanks Marek for your information.

I had also read these threads in the meantime, but I don't really see a solution? (or am I misunderstanding?)

To be clear for me:
A 1-bit Alpha is "Transparent" (yes/no transparent) and 8-bit is "Alpha", so from fully transparent ('black') via half transparent ('grayscale') to no transparency ('white')?
[Black/grayscale/white if you look at the Alpha channel in TGATool or in Paintdotnet, if you define an Alpha.)

Okay, my example is the glass with "grayscale" as Alpha made in Paintdotnet, so should it be 8-bit Alpha, in my opinion?

By the way, I had the feeling that this problem occurred with 3D-Cabs (as I read the threads) and there are indeed no problems with that nowadays.

To be sure, your new texture file that you made, is also something like "a side wall with windows", where you then edit the window part with Alpha (grayscale).?
(so in TGA-Tool, everything is "white" and window part is "gray"). Or do you use separate textures for windows in the shape?

For those interested, I have added my .ace, should there be anything "wrong" in it?


I will continue to puzzle and compare in the coming period, so far no 'passenger view found with glass', only passenger views with glass if they are posed 'from inside your wagon shape', not with with 'own shape'. OK, I will continue searching.

Cheers, Roger

Attached File(s)



#6 User is offline   superheatedsteam 

  • Engineer
  • Group: Posts: Contributing Member
  • Posts: 591
  • Joined: 28-June 08
  • Location:Perth, WA
  • Country:

Posted Yesterday, 01:03 AM

Your understanding of 8-bit alpha = 256 shades of grey vs 1-bit = black or white is correct. Your texture looks correct to me with the 8-bit alpha channel.

I have not worked on a passenger view for 6 years so my knowledge on this topic is not current and I don't recall exactly how or if I used an alpha for the window glass. Unfortunately I am away from my computer that has the source files for my passenger view for a couple of weeks. I won't be able to test and confirm your findings till then. Hopefully someone else may be able to assist before then.

Also what version of OR are you using?

Cheers,

Marek.

#7 User is offline   QJ-6811 

  • Conductor
  • Group: Posts: Contributing Member
  • Posts: 430
  • Joined: 27-December 15
  • Gender:Male
  • Simulator:MSTS / Open Rails
  • Country:

Posted Yesterday, 11:47 AM

Finally found the problem........... :sweatingbullets:

After I found a train that did have "glass in the windows" from the inside, it turned out that even if I used the same shape file here as passenger view, the windows remained visible....

After much testing and comparing files, I found "the difference".

It turns out that in the shape file for passenger view, the windows in 'texture mode' should not be set to "Normal" but to "Half Bright"!

Again for clarity, this difference only has an effect on a 'passenger view shape file', not in Shape Viewer, as a 'wagon shape', via FreightAnimStatic(, as a 3D-CAB or possibly as an object in your route.... (those who understand it, understand it.....) :ko2: :ko2: :ko2:

Page 1 of 1
  • 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