블랙 프라이데이 크리에이터 세일을 시작합니다! 12월 4일 오후 1시 59분까지 엄선된 콘텐츠를 70% 할인받으세요.

Date, Time, and Climate Systems

Acinonyx - 코드 플러그인 - 2023/09/20

Date, Time, and Climate System

  • 지원 플랫폼
  • 지원 엔진 버전
    5.1 - 5.3
  • 다운로드 유형
    엔진 플러그인
    이 제품은 코드 플러그인과 함께 미리 빌드한 바이너리와 언리얼 엔진에 통합되는 모든 소스 코드를 포함하고 있으며 원하시는 엔진 버전에 설치하여 프로젝트에 따라 활성화할 수 있습니다.

The sun and moon positions are calculated using reference astronomical equations, taking into account the latitude and longitude of the observer, as well as the time of day and year. This means that you can accurately represent the position of the celestial bodies in the sky.


In addition to the celestial bodies, the plugin also includes date and time handling capabilities. You can specify the date and time of day for your world, and the plugin will automatically calculate the positions of the sun and moon accordingly. This allows you to create realistic planetary schedules, including day/night cycles.


The plugin is based around a date and time system, allowing you to set specific dates and times for your world, or alternatively, you can let it run as a real-time game clock. You can also switch between the two on the fly.


By default, this plugin creates a global GameInstanceSubsystem that most parts of the engine can reference. Climate Systems will automatically pick up on this subsystem if the GameInstance or GameState do not implement the IDateTimeSystemInterface interface.


A demo of the motion of the sun is demonstrated in this YouTube video.

An example of some use cases can be found in this video.



Update 1.3:

Corrected GetMoonRotation.

Sky Material now shades the moon in relation to its phase.


Update 1.4:

Fixed an error where the yearbook didn't work in standalone applications.

Added support for HDRI's of the night sky in the sky material.

Added texture support for spherical moon textures.

기술적 세부사항

Features: (Please include a full, comprehensive list of the features of the product)

  • Customisable date and time system (Year Length, Number of Months, Length of Day, etc)
  • Plausible sun and moon positions
  • Basic date and time calculations
  • Highly approximated local climate system
  • Live or gameplay date progression
  • Callbacks for Sunrise and Sunset


Code Modules:

  •  DateTimeSystem (Runtime)


Number of Blueprints: 0

Number of C++ Classes: 7 (8 including non-exported Settings class)

Network Replicated: No

Supported Development Platforms: Win64, Linux

Supported Target Build Platforms: Win64, Linux

Documentation: acinonyx.nz/documentation-date-climate-root

Example Project: https://drive.google.com/file/d/1ZYB_Vu32V5tyY9LYnw8d3FSxjkgcEy5n/view?usp=sharing

Important/Additional Notes: Also includes a sky material that supports a moon.