{"id":20659153,"url":"https://github.com/ddupont808/planetcraft","last_synced_at":"2025-04-12T23:43:29.922Z","repository":{"id":215898306,"uuid":"739992768","full_name":"ddupont808/planetcraft","owner":"ddupont808","description":"Minecraft-like voxels mapped onto large spherical planets","archived":false,"fork":false,"pushed_at":"2024-01-07T07:21:37.000Z","size":54411,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-12T23:43:05.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ddupont808.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2024-01-07T07:13:17.000Z","updated_at":"2024-12-09T06:36:22.000Z","dependencies_parsed_at":"2024-01-07T08:36:15.229Z","dependency_job_id":null,"html_url":"https://github.com/ddupont808/planetcraft","commit_stats":null,"previous_names":["ddupont808/planetcraft"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddupont808%2Fplanetcraft","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddupont808%2Fplanetcraft/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddupont808%2Fplanetcraft/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddupont808%2Fplanetcraft/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddupont808","download_url":"https://codeload.github.com/ddupont808/planetcraft/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647256,"owners_count":21139081,"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":[],"created_at":"2024-11-16T18:33:16.538Z","updated_at":"2025-04-12T23:43:29.895Z","avatar_url":"https://github.com/ddupont808.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Planetcraft\n\nThis is a playable proof-of-concept of a Minecraft-like voxel game mapped onto a large-scale spherical planet. It is written in C# and HLSL and created in Unity3D.\n\n\nhttps://github.com/ddupont808/planetcraft/assets/3820588/d7989566-fdff-4cd0-be97-dc0880a9352b\n\n\nThis video demonstrates a 12km wide flatgrass planet with rings at `y=6025 x=2 z=2` using a mod that adds Minecraft content (examplemod.zip)\n\n## Features\n- A 12km wide spherical planet made of cubical voxels\n- Basic JS modding API\n- Flood-fill voxel lighting w/ ambient occlusion\n\n## Why is this significant?\n\nThe planets in Planetcraft consist of **cubical voxels** on a **flat spherical surface**. It is [mathematically impossible to map any sort of plane (like a cube) to a sphere without distortion](https://en.wikipedia.org/wiki/Stereographic_projection#Cartography). Planetcraft does not try to fake anything using shaders, instead it explores several different techniques to try to minimize distortion while still being a true planet.\n\nRather than a single continous mapping, the world structure is arranged into 6 different grids, and mapped using [this equation](https://mathproofs.blogspot.com/2005/07/mapping-cube-to-sphere.html):\n\n![](image.png)\n\nAs you increase your altitude, blocks will start to stretch horizontally until they become ~2m wide, at which point the chunks will subdivide to try to minimize distortion. This project was designed with large-scale planets in mind which reduces the amount of subdivisions a player would encounter around sea level.\n\nThe final result is an uniquely shaped world structure. A 2D slice of which can be seen below:\n\n![Alt text](image-2.png)\n\n## Media\n\nBelow are screenshots of an earlier version that supported planets only up to 200 meters wide. In this version, the core contained a highly distorted Nether layer.\n\n![Alt text](image-3.png)\n![Alt text](image-4.png)\n![Alt text](image-5.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddupont808%2Fplanetcraft","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddupont808%2Fplanetcraft","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddupont808%2Fplanetcraft/lists"}