{"id":20687127,"url":"https://github.com/andewx/dieselsky","last_synced_at":"2026-05-05T15:39:28.315Z","repository":{"id":87505521,"uuid":"592073493","full_name":"andewx/dieselsky","owner":"andewx","description":"Simulates atmospheric rendering in GoLang with accurate and true representations of sky colors relative to sun position. Renders the sky from a hemispheric perspective and can render out to any desired resolution as well has handle time phase renderings for animations.","archived":false,"fork":false,"pushed_at":"2024-01-24T02:17:04.000Z","size":1787,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T16:37:33.361Z","etag":null,"topics":["gpu","physics","sim","simulation","sky"],"latest_commit_sha":null,"homepage":"https://dieselsky.org","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andewx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-22T20:44:28.000Z","updated_at":"2024-03-23T18:46:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"f91fbb4a-4dc4-4640-9cf4-726852b3c8b9","html_url":"https://github.com/andewx/dieselsky","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andewx%2Fdieselsky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andewx%2Fdieselsky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andewx%2Fdieselsky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andewx%2Fdieselsky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andewx","download_url":"https://codeload.github.com/andewx/dieselsky/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242945843,"owners_count":20210762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gpu","physics","sim","simulation","sky"],"created_at":"2024-11-16T22:55:58.466Z","updated_at":"2026-05-05T15:39:28.283Z","avatar_url":"https://github.com/andewx.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dieselsky\n\u003ePhysical based sky rendering in go\n\n\u003eThis package allows you to create atmospheric renders into a disk in JPG format using GO!\n\n## Installation\n\n```\ngo build\n./dieselsky \u003cheight\u003e \u003cwidth\u003e \u003cclamped\u003e \u003cprefix\u003e\n```\n\nFor example\n\n```\n./dieselsky 4096 4096 true dome\n```\n\n![Rim_Glow](preview.jpg)\n\n\u003e *Note: Atmosphere package assumes to be working\nin meters to include all physical phenomena including wavelengths astronomical measurements*\n\nCoefficients are based off of the surface layer coefficients for Rayleigh and\nMie scattering phenomena future work can be done to move non normalized images\ninto an HDR format for Global Environmental lights.\n\nWe can also extend the framework for atmosphere into a more generalized Rayleigh/Mie\nScatter framework to allow for different Mie Scattering solutions during weather\nenvironmental changes and descriptions\n\nThis framework in the future should be updated to incorporate a handler for\nElectron Node dispatch requests\n\nInclude options for detailed Rayleight / Mie Scatter and height configurations for complete control over the model for users to include all configurable options\n\n**API Usage**\n\n\u003e Create a new atmosphere object and create textures\n```\nmSky := NewAtmosphere(45.0, 0.0)\nmSky.SetDay(200.2)\nbase := \"sky_\"\nfor i := 0; i \u003c 10; i++ {\n  filename := base + strconv.FormatInt(int64(i), 10) + \".png\"\n  mSky.StepDay(1 + float32(i)/10)\n  mSky.CreateTexture(256, 256, filename)\n}\n```\n\n**Notes**\n- Next update will fix the celestial observer model. \n- Fixed Mie Scattering Error where sun disk failed to render\n- Adjust Sky.Light.Lx.Flux settings for sun intensity. Default (20.5)\n- Adjust Mie Scattering Phase Function by tuning g variable, forward scatter coefficient\n- BetaR , BetaM correspond to the extinction coefficients in RGB tristimulus color space. Tune these vectors according to atmopsheric composition to affect atmospheric colors\n\n**Fixes**\n- Eliminate Negative View Vector Evaluations\n- Faciliate Parameter Tuning for the Atmosphere Package as a whole with JSON Configurations\n- Approximate depth integrals for Rayleigh Mie scattering with Pre-Packaged LUTs for algorithmic speedup\n- Implement Volumetric Cloud Features\n- Implement Ozone Extinction\n\n\n**Table of Measurements**\n| phenomena | description | units | underlying units |\n| ----------| ----------- | ------| -----------------|\n| Flux      | Radiant Flux| Watts | kg m^2 s^-3      |\n| Wavelength| Electromagnetic Wavelength| Meters | m |\n| Astronomical Units| Radii| Meters | m |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandewx%2Fdieselsky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandewx%2Fdieselsky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandewx%2Fdieselsky/lists"}