Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meric/renderplanet
Render 2D planets in a realistic style.
https://github.com/meric/renderplanet
Last synced: about 1 month ago
JSON representation
Render 2D planets in a realistic style.
- Host: GitHub
- URL: https://github.com/meric/renderplanet
- Owner: meric
- License: mit
- Created: 2017-02-12T20:42:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-19T10:14:33.000Z (about 7 years ago)
- Last Synced: 2024-05-21T13:00:55.577Z (7 months ago)
- Language: Lua
- Homepage:
- Size: 4.72 MB
- Stars: 20
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-love2d - renderplanet - Realistic orthographic planet rendering. (Drawing)
README
# [love2d](http://love2d.org) renderplanet demo #
![Earth](/screenshot.png)
This project demonstrate the 2D planet rendering technique described at
https://habrahabr.ru/post/248381/ (Russian).I google translated the article to English and followed the instructions
as best as I can, with the difference being I used shaders for the atmosphere
and shadow instead of using a translucent image.[texture_template.png](/texture_template.png) is orthographic projection encoded into an image.
![template](/texture_template.png)
http://mathworld.wolfram.com/OrthographicProjection.html
It is generated using [generate-template.lua](/generate-template.lua).
All the earth textures are equirectangular projection and the rendering
algorithm assumes this too.https://en.wikipedia.org/wiki/Equirectangular_projection
You can find more planet texture data from NASA.