Add hyper-realistic procedural Minecraft demo#16
Draft
ilikevibecoding wants to merge 2 commits into
Draft
Conversation
Browser-based Minecraft-style sandbox built with Three.js: - 16 seamless procedural block textures (textures.js) generated per-pixel - derived tangent-space normal + roughness maps for PBR realism - directional sun with soft shadows, ACES tone mapping, sky, clouds, fog - value-noise terrain with trees, water, beaches, snow peaks, and ore pockets - per-vertex baked ambient occlusion on chunk meshes - first-person controls with collision, flying, raycasting, block break/place Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
Co-authored-by: ilikevibecoding <ilikevibecoding@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a self-contained, browser-based hyper-realistic Minecraft-style voxel demo under
minecraft-demo/, and wires it into the GitHub Pages deploy so it ships alongside the existing site (reachable at/minecraft-demo/). The existing phone-gift site is untouched.The demo keeps Minecraft's blocky geometry but renders it with physically based lighting and high-detail procedural textures.
How it was built
Per the request, the block textures were generated by multiple parallel sub-agents (one group each for soil, rock, wood/foliage, and sand/water/ore blocks). Each sub-agent produced self-contained, seamless-tiling canvas drawing functions and self-checked full-tile coverage. All 16 were assembled into
textures.js.What's included
textures.js) drawn per-pixel at runtime — grass top/side, dirt, stone, cobblestone, bedrock, gravel, oak log side/top, planks, leaves (with transparent cutouts), sand, snow, water, coal ore, diamond ore. All seamless-tiling.Controls
WASDmove ·Mouselook ·Spacejump/fly-up ·Shiftsprint/fly-down ·Left/Right clickbreak/place ·1–9/scroll pick block ·Ffly ·Escrelease mouse.Testing
node --checkontextures.jsandengine.js(syntax clean).leaveshas both solid and transparent pixels — all pass.Screenshot from the headless render:
Minecraft demo render
Notes
main.To show artifacts inline, enable in settings.