Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentTimeDec 17th 2017 edited


    1. List (Basic)
    2. Symbols Along (Intermediate)
    3. Fractalise (Intermediate)
    4. Edit Text (Basic)
    5. Link with Map/File (Intermediate)
    6. Offset (Intermediate)
    7. Measuring Tools (Basic)
    8. Change like draw tool (Basic)
    9. Modifiers (Intermediate)
    10. File Paths (Intermediate)
    11. Complex Shapes [Combine Path] (Intermediate)
    12. Complex Shapes [Multipoly] (Intermediate)
    13. Break (Intermediate)
    14. Map Notes (Basic)
    15. Coordinates (Intermediate)
    16. Macros (Advanced)
    17. Search Files for Text (Basic)
    18. Text Justification (Basic)
    19. Mirrored Polygons (Intermediate)
    20. Managing Drawing Tools (Intermediate)
    21. Named Views (Basic)
    22. Symbol Lookup Sheets (Intermediate)
    23. Symbol Catalog Settings (Advanced)
    24. Symbol Catalog Filters (Advanced)
    25. Symbol Control Points (Advanced)
    26. Define Symbol (Intermediate)
    27. Curves (Basic)
    28. Selections (Intermediate)
    29. Sort Symbols in Map (Basic)
    30. Extract Properties (Basic)
    31. Convert File (Basic)
    32. Get Extents (Advanced)
    33. Quick Move (Basic)
    34. Menu Editing (Advanced)
    35. Trace (Basic)
    36. Array Copy (Intermediate)
    37. Explode (Basic)
    38. Clipboard Copy (Basic)
    39. Rename & Reorder (Intermediate)
    40. Drawtools Edit (Basic)
    41. Trims (Basic)
    42. Symbol Attributes (Intermediate)
    43. Fill Style Selection Mask (Basic)
    44. Browse Files (Basic)
    45. Node Editing (Intermediate)
    46. Automatic Sheet Selection (Basic)
    47. Scale (Basic)
    48. Text along a Curve (Basic)
    49. Shaded Polygons (Intermediate)
    50. Fill with Symbols (Intermediate)
    51. Global Sun (Basic)
    52. Symbols in Area (Intermediate)

    CC3+ contains a huge amount of various commands and features. This series highlights a number of these. There won't be any special progression to this series, and the command will be selected from the entire range, from the simple basic commands, to more advanced features intended for the more advanced users. Feel free to use this topic to discuss the command presented.
    This series is called the command of the week, but it could also explain a feature. The explanations will tend to explain the technical parts of the command, and is intended to highlight the basics (and complexities) of the command, and information about how to use it, but won't be a detailed tutorial. It is up to you to use it creatively in your maps.

    Week 51 - Global Sun

    In CC3+, the global sun is used to indicate the direction and strength of light in your map. This light is used in several effects and features, most notably shaded polygon (used for roofs in CD3 and shapes in Per3 and more), lighted bevels, directional wall shadows, and with the point light shadows (used for dungeon/floorplan lighting).
    Many of the aforementioned effects can also be set to ignore the global sun and set up their own direction, but by relying on the global sun instead, you have a single place to change the value, and all effects relying on it will behave properly, ensuring that you don't have some effects that makes the light come from the north, while others make it looks like it comes from the south, for example shadows going in opposite directions.

    Where to find it

    Toolbar: Right click effectsbutton.png -> Global Sun
    Command Line: SUNINFO

    How to use it?

    Using this command is a two part-procedure. You need to both set the global sun values in the dialog that shows when you run the command, as well as define effects in the map that will actually use these settings in this dialog. The values you set in the dialog is meaningless if no effects are set to rely on them, you cannot directly change light level in the map from this command, it is only a way to control other effects, as well as shading (see the Shaded Polygon command).

    When running the command, you will see The Sun dialog pop up. This dialog contains many settings, and you should be aware that not all effects use all the settings here. Some (like wall shadows) are only concerned about the compass direction (azimuth) the light is coming from), while others (like shaded polygons) also care about the strength of the sun and the height above the horizon (inclination), and uses this information along with the pitch and direction of the shaded polygon to calculate the final light levels.

    Let us examine the values in the dialog, and what they are used for.

    • Azimuth: This is the direction of the sun in the sky. There are two things to be aware of here. Firstly, remember that lights comes FROM the sun, so if the sun is due north, shadows will point due south. Secondly, remember that this is based on the CC3+ coordinate system, which means that a value of 0 means due east, 90 means north, 180 means west, 270 is south and 360 is full circle, so back to the east. So while we still use 360 degrees here, these will NOT match compass values. Note that the sun is considered to be an infinite distance away, making all shadows parallel (The real sun is far enough away that this is a reasonable assumtion)
      This value is used by most light and shading effects.

    • Inclination: This is the height of the sun above the horizon. A value of 0 means that it is at the horizon, while a value of 90 means it is straight overhead. This value is used along with the pitch of shaded polygons to determine how they are lighted. The higher the sun is in the sky, the less difference there will be between polygons facing the sun and those facing away from it.

    • Intensity: This controls the strength of the light output from the sun. This is used by shaded polygons to control how much the light affects them.

    • Activate Lighting: This enables/disables the dynamic floorplan lighting system. This requires that you have already set up both point light effects and actual light sources in your map.

    • Shadow - Blur: This controls the blurring of shadow edges from the dynamic lighting system

    • Shadow - Transparency: This controls the transparency of point light shadows. This is very helpful if you wish to show off the whole map, even the parts in darkness. A value of 0 means no transparency, which means anywhere on the map not lighted by a light source will be completely black, while a transparency of 100 means full transparency, so shadows aren't visible at all. Try with a value of 25 to make the parts of the map not lighted quite dark, but still visible.

    • Disable shading: This disables shading of shaded polygons. This is useful if you are only interested in using it to rotate fill styles to match the orientation of the polygon, but are not interested int he shading effects. Of course, this applies to every shaded polygon in the entire map.

    • Disable aligned fillstyles: This will draw all shaded polygons without rotating the fill styles to match their orientation. This is useful if you only want the shading, but not the rotation of fill styles. This will speed up map redraws.

    • Draw aligned fill styles as solid: This draws solidly filled fillstyles insted of aligned bitmaps on shaded polygons. This will speed up map redraws


    The below image shows what happens to shading and shadows as you move the global sun around.

    The example below shows a simple dungeon with point light effects set up, a single lightsource in the middle of the room. The left image shows the map with a shadow transparency of 0, while the right one use a value of 33. The right image is still dark, but you should still be able to make out the details of the map where the left image was completely black.
    • CommentAuthoraviadtal
    • CommentTimeDec 20th 2017
    That's awesome! A lot of useful information. thank you ^^
    Thank you!