Difference between revisions of "Useful lighting commands"
From Platinum Arts Sandbox Free 3D Game Maker
| Line 3: | Line 3: | ||
*skylight: adds light to the entire map. with values of 255, 255 and 255, your entire map has a pretty cool ambient occlusion-style look. It's also useful for night maps. | *skylight: adds light to the entire map. with values of 255, 255 and 255, your entire map has a pretty cool ambient occlusion-style look. It's also useful for night maps. | ||
*ambient: this determines the minimum darkness of a map. It's useful for night maps, and also things like caves and buildings. | *ambient: this determines the minimum darkness of a map. It's useful for night maps, and also things like caves and buildings. | ||
| − | *lightprecision: this lets you choose the accuracy of lighting. You can use it to speed up calclighting. | + | *lightprecision: this lets you choose the accuracy of lighting. You can use it to speed up calclighting. Best done in powers of 2, with larger powers for larger maps (for example: default is 32. You can use 64 or 128 for less accuracy and fast lighting, or you can use 16 for high accuracy but slow lighting). |
*patchlight: fixes lights that were changed in some way. Much faster than using calclight over and over again. | *patchlight: fixes lights that were changed in some way. Much faster than using calclight over and over again. | ||
*Sunlight commands: [http://forum.sandboxgamemaker.com/viewtopic.php?f=15&t=3209&p=29502&] | *Sunlight commands: [http://forum.sandboxgamemaker.com/viewtopic.php?f=15&t=3209&p=29502&] | ||
Latest revision as of 17:27, 30 March 2012
This is a list of some of my favorite lighting commands, more info on them here: Wiki: Lighting and Command Ref: Lighting
- skylight: adds light to the entire map. with values of 255, 255 and 255, your entire map has a pretty cool ambient occlusion-style look. It's also useful for night maps.
- ambient: this determines the minimum darkness of a map. It's useful for night maps, and also things like caves and buildings.
- lightprecision: this lets you choose the accuracy of lighting. You can use it to speed up calclighting. Best done in powers of 2, with larger powers for larger maps (for example: default is 32. You can use 64 or 128 for less accuracy and fast lighting, or you can use 16 for high accuracy but slow lighting).
- patchlight: fixes lights that were changed in some way. Much faster than using calclight over and over again.
- Sunlight commands: [1]