Elvas Tower: MSTS/Kosmos Environments - Elvas Tower

Jump to content

Posting Rules

All new threads will be started by members of the Open Rails team, Staff, and/or Admins. Existing threads started in other forums may get moved here when it makes sense to do so.

Once a thread is started any member may post replies to it.
  • 4 Pages +
  • 1
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

MSTS/Kosmos Environments Proposal for Blueprint Rate Topic: -----

#31 User is offline   C490 

  • Apprentice
  • Group: Posts: Switchman
  • Posts: 11
  • Joined: 22-June 15
  • Gender:Male
  • Simulator:Openrails
  • Country:

Posted 24 September 2018 - 05:15 AM

 James Ross, on 28 August 2018 - 09:11 AM, said:

I've looked at the code and it looks like the following .env file options are supported when you select "MSTS environments" in the Experimental Options:

  • World water layers (height and 1st texture only)
  • World sky layers (texture and uvtiles only)
  • World sky satellites (1st and 2nd texture as sun and moon, respectively, only)

I've not checked, but that probably leaves loads of .env file features out, unfortunately. One of the problems is that for much of OR's development, we've built our own environment and this was added on later.

Thanks James for your explanation.
But if so , can we have the "date of the year" as an initial variable instead of the fixed date being hard coded for each season.
I believe then program can calculate the correct sun position.

Thank you

#32 User is offline   James Ross 

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

Posted 26 September 2018 - 12:27 PM

 C490, on 24 September 2018 - 05:15 AM, said:

Thanks James for your explanation.
But if so , can we have the "date of the year" as an initial variable instead of the fixed date being hard coded for each season.
I believe then program can calculate the correct sun position.

There's no dates in the .env files, are there? They do have the sun rise and set times, though, which we could use: the satellite with world_sky_satellite_light ( 1 ) is the sun, and it has world_sky_satellite_rise_time and world_sky_satellite_set_time.

#33 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin Group
  • Posts: 15,651
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 26 September 2018 - 02:51 PM

In the ideal any date that is used to determine the sun's location relative to the earth's annual journey should be a new parameter brought in with each activity.

#34 User is offline   C490 

  • Apprentice
  • Group: Posts: Switchman
  • Posts: 11
  • Joined: 22-June 15
  • Gender:Male
  • Simulator:Openrails
  • Country:

Posted 27 September 2018 - 01:53 AM

 Genma Saotome, on 26 September 2018 - 02:51 PM, said:

In the ideal any date that is used to determine the sun's location relative to the earth's annual journey should be a new parameter brought in with each activity.


It depends on how sophisticated the current sun position calculation.
(For example my case i have gps coordinate difference between msts and orts. Not big but it is there)

As i see right now date it is derived from season setting (getting day of the year then convert into month, then sets 21th day of that month)
I know there is no date only season setting in the activity file (i guess that is why the decision was like this at that time)

mstsskyseasonType = (int)MSTSSkyViewer.Simulator.Season;
date.ordinalDate = mstsskylatitude >= 0 ? 82 + mstsskyseasonType * 91 : (82 + (mstsskyseasonType + 2) * 91) % 365;
// TODO: Set the following three externally from ORTS route files (future)
date.month = 1 + date.ordinalDate / 30;
date.day = 21;
date.year = 2017;

So my recommendation:
- get the date of windows date
- set it somewhere in the program UI
- set the parameter somewhere else (activity file, route file)

Once we sorted the sun's position. As second step we need to move forward the sky and environment&ambient coloring at sunset/sunrise that was also env file feature in msts (maybe it is shader or program issue)

#35 User is offline   C490 

  • Apprentice
  • Group: Posts: Switchman
  • Posts: 11
  • Joined: 22-June 15
  • Gender:Male
  • Simulator:Openrails
  • Country:

Posted 27 September 2018 - 02:24 AM

 James Ross, on 26 September 2018 - 12:27 PM, said:

There's no dates in the .env files, are there? They do have the sun rise and set times, though, which we could use: the satellite with world_sky_satellite_light ( 1 ) is the sun, and it has world_sky_satellite_rise_time and world_sky_satellite_set_time.


For me it like downgrading the sun position calculation (if it's really sophisticated , but limited to fixed date)
I think we need to focus on "how to get date" instead of implement alternative calculations. We should aim to be better than msts not going back to Msts.
Also i do not want to see duplicate alternative coding, but improvement the current code instead.

So current big issue is with openrails environment:

- Fixed date sun position calculation (still do not know how good and "sophisticated" is because it is fixed), previously managed by env file in msts
- Sun position has no effect on ambient light coloring (only shadow position), no idea if it's shader issue or else. Previously it was also env.file feature

During msts times i shared "daily.env" file with my community. Correct sunrise/sunset and weather (sky texture) according to daily forecast and proper ambient coloring (dark night, blue/orange hour).
I'd like to see at least that ,preferably better control in Openrails.

#36 User is offline   James Ross 

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

Posted 30 September 2018 - 05:29 AM

View PostC490, on 27 September 2018 - 02:24 AM, said:

- Fixed date sun position calculation (still do not know how good and "sophisticated" is because it is fixed), previously managed by env file in msts

The .env files set a sun rise and set time, which I am saying we could implement in Open Rails as well.

View PostC490, on 27 September 2018 - 02:24 AM, said:

- Sun position has no effect on ambient light coloring (only shadow position), no idea if it's shader issue or else. Previously it was also env.file feature

We could also read these values from the .env files (e.g. "world_sky_satellite_dir_rise_colour").

View PostC490, on 27 September 2018 - 02:24 AM, said:

During msts times i shared "daily.env" file with my community. Correct sunrise/sunset and weather (sky texture) according to daily forecast and proper ambient coloring (dark night, blue/orange hour).

I'd like to see at least that ,preferably better control in Openrails.

I am confused about this. You seem to be saying you want at least what MSTS can do in .env files, but you don't want Open Rails to use the .env files for it? I think you're going to have to be more precise about what you want, as I am not understanding you right now.

#37 User is offline   C490 

  • Apprentice
  • Group: Posts: Switchman
  • Posts: 11
  • Joined: 22-June 15
  • Gender:Male
  • Simulator:Openrails
  • Country:

Posted 01 October 2018 - 06:04 AM

View PostJames Ross, on 30 September 2018 - 05:29 AM, said:

The .env files set a sun rise and set time, which I am saying we could implement in Open Rails as well.


We could also read these values from the .env files (e.g. "world_sky_satellite_dir_rise_colour").


I am confused about this. You seem to be saying you want at least what MSTS can do in .env files, but you don't want Open Rails to use the .env files for it? I think you're going to have to be more precise about what you want, as I am not understanding you right now.


Hi James

Sorry i am not being programmer by myself, just "power user". I'd be happy to see an improvement regardless the way :)
For coding perspective i am not sure which one is easier or more futureproof. Provide legacy support for env. files or improve the current code.
I am very familiar with .env files so if we can get those values read by orts sounds good to me :)
But for end user perspective fiddling with "color codes" and env file parameters, i am not sure about :)

So as a summary :)
- I'd like to control sunrise/sunset (does not matter if it's env file ,or code, or derived from some date)
- Better sky coloring during sunrise/sunset (does not matter if it's env file ,or code, or coming from shaders)
- Better environment/ambient coloring during sunrise/sunset (does not matter if it's env file , or coming from shaders)

What do you think ? I think those things are a way behind the msts.

Cheers

#38 User is offline   C490 

  • Apprentice
  • Group: Posts: Switchman
  • Posts: 11
  • Joined: 22-June 15
  • Gender:Male
  • Simulator:Openrails
  • Country:

Posted 01 February 2019 - 06:36 AM

Hi James

Is there any progress considering environments improvements ? Sunrise / sunset especially.

#39 User is offline   SP 0-6-0 

  • Foreman Of Engines
  • Group: Posts: Contributing Member
  • Posts: 985
  • Joined: 12-November 05
  • Gender:Not Telling
  • Location:Another planet.
  • Simulator:MSTS/ORTS
  • Country:

Posted 08 February 2019 - 11:21 PM

I am wondering the same thing???

I'd also like to have moving skies like MSTS had and the ability to use the Kosmos Environments in ORTS.

Robert

#40 User is offline   dforrest 

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

Posted 09 February 2019 - 04:43 AM

View PostSP 0-6-0, on 08 February 2019 - 11:21 PM, said:

I am wondering the same thing???

I'd also like to have moving skies like MSTS had and the ability to use the Kosmos Environments in ORTS.

Robert


This sort of comment confuses me. Surely is you set an environment file (.env file) from Kosmos as the environment to be used for a particular "season" in your route .trk file and them run Open Rails with the "MSTS Environments" option chosen, theis will be used. Am I wrong?

#41 User is offline   SP 0-6-0 

  • Foreman Of Engines
  • Group: Posts: Contributing Member
  • Posts: 985
  • Joined: 12-November 05
  • Gender:Not Telling
  • Location:Another planet.
  • Simulator:MSTS/ORTS
  • Country:

Posted 11 February 2019 - 01:41 PM

The problem is ORTS does not fully recognize all the satellites in the env file. The work Robert Murphey was doing might have corrected some of the issues. Kosmos environments were not trivial to create nor get working.

Robert

#42 User is offline   C490 

  • Apprentice
  • Group: Posts: Switchman
  • Posts: 11
  • Joined: 22-June 15
  • Gender:Male
  • Simulator:Openrails
  • Country:

Posted 12 February 2019 - 06:49 AM

View PostSP 0-6-0, on 11 February 2019 - 01:41 PM, said:

The problem is ORTS does not fully recognize all the satellites in the env file. The work Robert Murphey was doing might have corrected some of the issues. Kosmos environments were not trivial to create nor get working.

Robert


Yeah i know. Bigger issue is, ORTS is way behind of MSTS in that area ( unrealistic sunrise/sunset timing, cartoonish sky colors and ambient ligthing , etc)

#43 User is offline   scottb613 

  • Executive Vice President
  • Group: Status: First Class
  • Posts: 3,187
  • Joined: 06-July 09
  • Gender:Male
  • Location:Downeast Maine (soon)
  • Simulator:ORTS
  • Country:

Posted 12 February 2019 - 07:15 AM

View PostC490, on 12 February 2019 - 06:49 AM, said:

Yeah i know. Bigger issue is, ORTS is way behind of MSTS in that area ( unrealistic sunrise/sunset timing, cartoonish sky colors and ambient ligthing , etc)


Hi Folks,

Huh ?

I feel completely the opposite - LOL - my ORTS looks light years better than anything MSTS ever produced...


Attached Image: 533EF687-9F8F-4176-A0A3-3E93C599F69B.jpeg


Regards,
Scott

#44 User is offline   paulytechnic 

  • Conductor
  • Group: Posts: Active Member
  • Posts: 394
  • Joined: 26-January 11
  • Gender:Male
  • Location:Tampa, FL
  • Simulator:Open Rails
  • Country:

Posted 12 February 2019 - 08:27 AM

I'm in agreement with Scott; with the right skydome textures, OR skies can look pretty darn good to my eye (granted, maybe there's room for tweaking sunrise/sunset times and their associated colors, but as a whole, I'm satisfied with it).

Of course, the other factor related to Kosmos is the water, and I think THAT is where OR isn't quite up to par with MSTS. IMHO, I do think OR may be better suited with going its own direction for water, including reflection, ripples, or other dynamics, rather than only sticking to Kosmos compatibility (although that's not necessarily a bad thing). Kosmos water was good at the time for MSTS, since there wasn't much that could be done with the water back then, but I think OR has the capability to go much beyond that (I would say the "sky's the limit," but it's more like "the water's the limit" at the moment).

#45 User is offline   Coonskin 

  • Open Rails Developer
  • Group: Posts: Elite Member
  • Posts: 3,771
  • Joined: 15-January 04
  • Gender:Male
  • Location:Eastern Oklahoma
  • Country:

Posted 12 February 2019 - 09:10 AM

The snow effect in ORTS needs LOTS of work.

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