tips:batterymeters
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tips:batterymeters [2015/01/21 20:53] – [Rotation] jt3 | tips:batterymeters [2015/01/22 05:01] (current) – jt3 | ||
---|---|---|---|
Line 21: | Line 21: | ||
===== Intro to Battery Meters ===== | ===== Intro to Battery Meters ===== | ||
+ | {{: | ||
Battery Meters are one of the most requested “Math” functions among users of WatchMaker. | Battery Meters are one of the most requested “Math” functions among users of WatchMaker. | ||
Line 33: | Line 34: | ||
Segmented meters are used when you want an “LED” effect, where you light up equal segments such that an entire segment lights at once. This is very common for battery meters and makes a cool effect. | Segmented meters are used when you want an “LED” effect, where you light up equal segments such that an entire segment lights at once. This is very common for battery meters and makes a cool effect. | ||
- | |||
- | {{: | ||
- | |||
===== Explanation of Examples ===== | ===== Explanation of Examples ===== | ||
==== Rotation ==== | ==== Rotation ==== | ||
- | {{ : | + | {{ : |
The first example is a simple meter, working as a clock hand. 100% at 12:00, moving counterclockwise, | The first example is a simple meter, working as a clock hand. 100% at 12:00, moving counterclockwise, | ||
Line 55: | Line 53: | ||
==== Circle Shaders (Segments) ==== | ==== Circle Shaders (Segments) ==== | ||
- | This is where things tend to get tricky. | + | This is where things tend to get tricky. |
- | Here, rotation won’t work, so you’ll need to add a circle object, go into its shader section, and create a “Segment Between” shader. | + | {{: |
- | For these examples, we’re going to duplicate the “watch on one side/ | + | For these examples, we’re going to duplicate the “watch on one side/ |
- | On the left side, the formula is %%180+(9*(math.floor(({bl}/ | + | {{ : |
| | ||
- | For the right side we’re moving the other way, so we end at 180ᵒ and subtract the rest, where we’d added before. | + | {{: |
| | ||
tips/batterymeters.1421873619.txt.gz · Last modified: 2015/01/21 20:53 by jt3