Latest  | Search | Go
Edit this page   |   Attach file 

  Home | Tutorials | Technical Reference | Runtime | API Documentation | ContentCreation > DynamicSkyTutorial  

Dynamic Day-Night Cycle Tutorial

sunset.jpg

- Quick Guide to Adding a Dynamic Day-Night Sky To A Scene

  • Install latest Reality build at RealityBinaries, so that you have base sky sample textures and .py script to work with. They are located in the "Textures\Sky" directory if you care to alter them, or copy them to your GameModules Textures subdirectory. Their naming scheme is self explanatory, the DDS' can be opened in Photoshop with the DDS plugin.

  • Load up your level in RealityBuilder, then go to "Game\Edit World Properties". Select "Enable Sky" from the list of "Sky" variables displayed in the "General" tab, and change the value to "True".

RBsky1.jpg

  • You can adjust many aspects of the Sky's appearance through the rest of the "Sky" variables. When you are done, save your scene and you will see your Sky subsequently in the Game and in Reality Builder.

RBsky2.jpg

  • Useful Sky console commands:

    • setdaytimespeed 999 ---- alters how many sky minutes pass every game second. For instance, typing "setdaytimespeed 100" into the console will make the day/night cycle proceed very quickly, at 100 minutes per game second.

    • setdaytime 24:00 ---- jumps the day/night cycle to a given time of day, in 24-hour 'military' time. For instance, typing "setdaytime 14:45" would jump the cycle to 2:45 PM.

  • You can alter SkyControllerDemo.py (or whatever you've set the ScriptClass property value to be) in the "Scripts" folder to control the Sky's processes of transformation throughout the day and night (you can also include your own in your GameModules "Scripts" subdirectory).

Attachment sort Action Size Date Who Comment
RBsky1.jpg manage 49.9 K 15 Feb 2005 - 18:47 Main.guest  
RBsky2.jpg manage 28.8 K 15 Feb 2005 - 18:48 Main.guest  

DynamicSkyTutorial   Edit | Attach | Ref-By | Printable | Diffs | r1.8 | > | r1.7 | > | r1.6 | More