[Community Project] WIP Weather & Water Shader

Hey!

The days since 2000 (it’s actually the Julian Day 2000 epoch, which is 01/01/2000 @ 12:00:00 (noon)) is used for the calculation of the moon rotation, and the phase calculation uses the JD1900 epoch (the last time a new moon fell on Jan 1st). The further from those dates you go, the less accurate it will be, but it’s very minimal for dates within a couple centuries. The approximations help reduce the potential error, but it’s still not perfect.

But yes, you can go +/- 2000 by 800+ years before noticing any issues, and the calculations can be re-based to a closer epoch without much difficulty. I’ll add that to the blueprint in the next release.

The sun is even more accurate, doesn’t matter the year (limited to 0000 to 9999 though), the position is accurate within a degree or two at the equinox’s. :slight_smile:

  1. There are changes to the following files:
    \ShipsAndExamples\CustomThirdPerson\ThirdPersonGameMode (modified)
    \ShipsAndExamples\CustomThirdPerson\TP_HUD (modified)
    \ShipsAndExamples\CustomThirdPerson\ManOWar\BP_ManOWar (bugfix)
    \Sky\BP_Compass (New)
    \Sky\BP_Sky (New)
    \Sky\M_Sky (New)
    \Sky\WB_Sky_HUD (New)
    \Sky\Textures\Sphere_N (New)
    \Sky\Textures\T_Moon2_D (New)
    \Sky\BP_Skydome –> moved to –> \Sky\Old
    \Sky\Materials\M_Sky –> Renamed to M_Sky_Old
    \Materials\M_Ocean_Versions\M_Ocean_Depth (bugfix)

and the plugin of course! don’t forget to copy that over. There were a lot of code changes.

Easiest way to do is to open the demo project, right click on the new files and select Asset Actions -> Migrate, and then select your project’s content folder as the destination. can sometimes overwrite other files, so be careful and read the list of files after clicking migrate to ensure you don’t overwrite something you customized. In case it should be ok though.

  1. First thing I would check is the format of the file (RAW works best since it’s uncompressed, but png will work too) and that the file has a 1:1 aspect ratio (as in 2048x2048 for example, length and height are equal). If both those are ok, if you’re able to, PM me the heightmap file and I’ll see if I can get it to work for you. :slight_smile: