Elvas Tower: U2020-10-16-2036 and Smoke Colour - Elvas Tower

Jump to content

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

U2020-10-16-2036 and Smoke Colour Rate Topic: -----

#11 User is online   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,491
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 25 October 2020 - 05:30 AM

View Postdforrest, on 17 October 2020 - 11:21 AM, said:

Has U2020-10-16-2036 caused steam locos to emit technicolor smoke?

Yes, it appears so.

View PostCsantucci, on 19 October 2020 - 01:09 AM, said:

In U2020.10.16-2036 a new porting to Monogame has been introduced. I assume that this has created the problem. Also in the preceding porting to Monogame (the one in OR NewYear MG) this problem arose and was solved. IIRC the coding sequence of the colour components has changed in Monogame.

Yes, this is the new MonoGame version.

When we encounter an issue that you remember being fixed previously, if you are able, it would be helpful if you could find that fix. I don't want to duplicate the work of fixing these kinds of problem if I can help it. :)

View PostCsantucci, on 24 October 2020 - 01:03 AM, said:

that Peter already noticed and corrected for lights, but I'm not sure.
Here http://www.elvastowe...post__p__226424 I mention the issue.

Yes, we've got the correction for lights. Thanks for the link to the post, which gives me a period to search your code to find the fix.

View PostCsantucci, on 24 October 2020 - 01:03 AM, said:

If you read just subsequently in that thread, you will notice also the pixellation effect bug, that seems the same reported in another bug thread here.
Reading further in the thread, pixellation seems to have been solved here by Dennis http://www.elvastowe...post__p__228355 .

Ah, great, thanks! I will put down a review of all the shader warnings in case there's other problems lurking in there like this one.

#12 User is offline   dennisat 

  • Conductor
  • Group: Status: Contributing Member
  • Posts: 474
  • Joined: 16-February 13
  • Gender:Male
  • Simulator:Open Rails & MSTS
  • Country:

Posted 25 October 2020 - 08:57 AM

Hi,

I have been watching these problems and, knowing that I'd previously found solutions to some of them, have been trying to untangle them from my poorly documented system. I'd forgotten that some of the patches might still be found on these forums.

Dennis

#13 User is offline   dennisat 

  • Conductor
  • Group: Status: Contributing Member
  • Posts: 474
  • Joined: 16-February 13
  • Gender:Male
  • Simulator:Open Rails & MSTS
  • Country:

Posted 25 October 2020 - 09:08 AM

View Postdennisat, on 25 October 2020 - 08:57 AM, said:

HI have been watching these problems and, knowing that I'd previously found solutions to some of them, have been trying to untangle them from my poorly documented system. I'd forgotten that some of the patches might still be found on these forums.


Incidentally, the solution to the football sized snow drops is this:

 Source/RunActivity/Viewer3D/Precipitation.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Source/RunActivity/Viewer3D/Precipitation.cs b/Source/RunActivity/Viewer3D/Precipitation.cs
index 9c177d8e2..a4d620f77 100644
--- a/Source/RunActivity/Viewer3D/Precipitation.cs
+++ b/Source/RunActivity/Viewer3D/Precipitation.cs
@@ -520,7 +520,7 @@ public override void SetState(GraphicsDevice graphicsDevice, Material previousMa
                 shader.precipitation_Tex.SetValue(DynamicPrecipitationTexture[precipitation_TexIndex]);
             }
 
-            graphicsDevice.BlendState = BlendState.AlphaBlend;
+            graphicsDevice.BlendState = BlendState.NonPremultiplied;
             graphicsDevice.DepthStencilState = DepthStencilState.DepthRead;
         }
 


Dennis

#14 User is online   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,491
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 25 October 2020 - 04:08 PM

View Postdennisat, on 25 October 2020 - 09:08 AM, said:

Incidentally, the solution to the football sized snow drops is this:

Fantastic, thanks! This is fixed in U2020.10.25-2351.

The smoke colour will take a little longer as I need to find the fix in the git history.

#15 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,000
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 26 October 2020 - 12:38 AM

OK,
by checking with Notepad++ the differences in ParticleEmitter.cs between Peter's original version and the actual OR NewYear MG I found the patch needed to get correct exhaust colors. Here it is
Attached File  ParticleEmitter.cs.patch.txt (1.33K)
Number of downloads: 432
Dennis, do you remember if this too was your finding?

#16 User is offline   dennisat 

  • Conductor
  • Group: Status: Contributing Member
  • Posts: 474
  • Joined: 16-February 13
  • Gender:Male
  • Simulator:Open Rails & MSTS
  • Country:

Posted 26 October 2020 - 01:45 AM

View PostCsantucci, on 26 October 2020 - 12:38 AM, said:

by checking with Notepad++ the differences in ParticleEmitter.cs between Peter's original version and the actual OR NewYear MG I found the patch needed to get correct exhaust colors. Here it is
Dennis, do you remember if this too was your finding?


Yes, I agree with your finding.

Dennis

#17 User is online   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,491
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 31 October 2020 - 06:12 AM

View PostCsantucci, on 26 October 2020 - 12:38 AM, said:

OK,
by checking with Notepad++ the differences in ParticleEmitter.cs between Peter's original version and the actual OR NewYear MG I found the patch needed to get correct exhaust colors. Here it is
Attachment ParticleEmitter.cs.patch.txt

Thanks very much!

The smoke colour is fixed in U2020.10.31-1406.

#18 User is offline   dforrest 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 977
  • Joined: 12-January 12
  • Gender:Male
  • Location:St. Vincent (formally UK)
  • Simulator:MSTS, Open Rails
  • Country:

Posted 31 October 2020 - 12:53 PM

I confirm that this is now corrected.

  • 2 Pages +
  • 1
  • 2
  • 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