How to generate a solar movement in the Torque engine (How to create a sun moving on the sky in the torque)

xiaoxiao2021-04-03  268

NOTE: The Block About How To Create a Sun Moving on The Sky In The Torque.torque game engine QQ group member article: (← Chengbo ☆ → QQ: 154141370)

Task files in Torque, also called scene files, it is a .mis as a subscriber file, usually you can find all the scene files you need to find in the Data / Missions folder, the scene file as the name suggests, it defines the game What is the location of these things, including these things, such as the properties of water and houses. The following defines a Sun Block that simulates the movement of the real sun, the specific: Open the task file, add the following code: New fxSunlight (Sunflare1) {locTorealsun = 1; // Have you locked it. If it is dynamic, don't lock it. Position = "98.5277 -289.053 188.13"; rotation = "1 0 0 0"; scale = "1 1 1"; enable = "1"; // localflarebitmap = "common / lighting / corona"; // Located File remoteflarebitmap = "common / lighting / corona"; // distant shining diagram file SunAzimuth = "193"; sunelevation = "10"; // Altitude flaretp = "1"; // Whether it shines color = "1.000000 1.000000 1.000000 1.000000 "; // Color Brightness =" 1 "; // Brightness Flaresize =" 1.5 "; // Sparkling Size Fadetime =" 0.1 "; // Fast Init Time BlendMode =" 0 "; // Mixed mode, 0 indicates black Transparent. Animcolour = "0"; // Whether the color color is not good if the color and the lowest color // value (black inter-black conversion) are not good. Animbrightness = "1"; // Whether animation is bright, no, the brightness of the sun does not change, not flash. Animrotation = "1"; // is rotated, the sun peripheral light is rotated. Animsize = "1"; // Whether the animation size, the sun sparkling dimension changes. Animazimuth = "0"; // Whether animation orientation, the sun moves at the same height. AnimeLevation = "0"; // whether it is highly animated. The sun is constantly changing, Dongshengxi / / LerpColour = "1"; lerPbrightness = "1"; lerProtation = "1"; lerPsize = "1"; // is gradually enlarged, cancel the solar size mutation. Of course // If you set the animation size as the true.

转载请注明原文地址:https://www.9cbs.com/read-131521.html

New Post(0)