Shadows - odds and ends
-
Some plugin shadow tools I used to learn about SU Ruby. I've tried to follow TT rules. Mostly based on Shadow_Info.
Caveats:- Dev platform Win7 64 bit SU8. YMMV
- Little here is original; it's mostly modded from other people's code.
- Credits given in code where remembered (happy to add any missed).
- Tries to deal sensibly with N/S hemispheres.
- Shadow_info time is sometimes hard to understand so I chose to go with the flow for Daylight Saving - and let SU work it out.
- Scene Export is Rick Wilson's - just changed to PNG and wrapped in a module.
- No warranties, use it as you want. Post back here if you want to suggest a change/correct code
Following are a few odds and ends I hacked up to look at shadows. Nothing sophisticated like shadow analysis, just some tools to:
Add time and season to the top LH side of screen (shadow_time.rb)
- Add lat/long to top RH side of screen (Shadow_latlong.rb)
- Slightly modded Scene_Exporter (scene_expLM.rb)
- Plugin to produce a set of scenes for export (shadow_scenes.rb) This allows you to produce a logical (to me) set of shadow scenes. By season at solstice/equinox, or by month with a range of intervals (daily, weekly etc), selectable time start/end inc sunrise/sunset and selectable hourly intervals
-
Thanks. Could you integrate them in one Shadow tools plugin?
-
That, and an rbz are the next stage. I haven't because
l) Lack of skills - hopefully fixable.
2) It would be best if I could include the scene exporter
(not mine in any way, so I would prefer to have Author's permission)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement