Minecraft WebGL Project Core
Minecraft WebGL
Credit to @duck132912 for the menu. Thanks a bunch!
About
This is the final version of my WebCraft and MC-Engine projects. I merged them into one, and added a menu. (Once again, thank you, @duck132912!) Multiplayer is coming NEVER due to the fact that it would be almost impossible to get to work perfectly. I am ending the WebGL Minecraft project here and now.
Past versions
- https://webcraft--henrymartin4.repl.co
- https://WebCraft-20.henrymartin4.repl.co
- https://WebCraftV4.henrymartin4.repl.co
- https://webGLcraft.henrymartin4.repl.co
PLEASE UPVOTE IF YOU ENJOY!!!
NOTE
I will be experimenting with Voxel.js, so stay tuned!
I might just be able to make a multiplayer version using Voxel.js instead of WebGL.
EDIT: Click the open in new window button otherwise it just won't look very good.
EDIT EDIT: Thanks for all the upvotes, guys! I really appreciate it!
EDIT EDIT EDIT: Thanks for making this post the front page!
Awesome, the textures could use some work, but other than that, 5/5 stars!
What is the generation technique used
@MatReiner @WilliamB i use perlin
@MatReiner 2d and cast to 3d
Is this your code?
@HENRYMARTIN4 alright there are a lot of git hub posts with code like this but yours looks good keep making stuff :)
100th upvote! epic job btw
@SilentShadowBla yay!!!!!!!!!!
thank you!!!
I will gladly invite you to work on a repl with me if u want me to.
the map isn't useful
Yeah sorry no
LOL, so that's why @duck132912 was so busy! XD
@3941driB 4battle is not my only thing
@duck132912 You were on only 4 hours ago!
@4battle Btw you could have made something like https://login--duck132912.repl.co instead of the hours of php login of yours
@duck132912 BlueTube's trending
@duck132912 wow i looked on 4battle thanks for using ultracode yay
OMG, I'm duck132912's friend!
@3941driB I know, you come to my school
@duck132912 Are you still on ^_^? You replied 2 minutes ago!
@duck132912 Yay, it is!
WoW!This is amazing
Multiplayer is coming NEVER due to the fact that it would be almost impossible to get to work perfectly.
@HENRYMARTIN4 can you share what technical limitations exist to make this work? Maybe we, the Repl.it team, can help with this.
@amasad Well, I was experimenting with Voxel.js and realized that I don't have admin in the bash shell, meaning that I can't use the browserify command to compile the scripts. I therefore cobbled together this instead of using the Voxel.js engine. I'm still looking for ways to run Voxel.js scripts on Repl.it. You can see the tutorial at http://voxeljs.com.
You are welcome, I am happy to be mentioned.
News: Me and @3941drib are working on @4battle we could use a little help. Thank you @duck132912
@duck132912 I could help if you like.
@HENRYMARTIN4 Sure Ill ask 3941drib when I have a chance
@HENRYMARTIN4 You can. We need all the help we can get ;)
@HENRYMARTIN4 Go to the site https://repl.it/@duck132912/EnormousBrilliantComputergraphics for the login info
I cant build anything but other than that 4 stars
how did you make it so you could do tons of different things
cool
there is one thing that is when u dig down continuously u fall into the void but u don't die u just continuously fall down but other than that this is EPIC
also when u right click water it gets destroyed like other blocks
just work on that and your game will be PERFECT
and some trees and vegetation
That is so cool !!!!
@Lethdev2019 i know. i wuz lazy...
When you think you're good at programming and someone makes this.
ITS JUST AMAZING :D Please don't stop working on it!! It could be so cool!!!!
@JORDANSISNEY Voxel.js is a framework for building minecraft-like games in the web browser. I'll do stuff with that instead of WebGL. Therefore meaning the WebGL Minecraft project will end, but the Voxel.js Minecraft project will begin. Find out more at: http://www.voxeljs.com/
Ooooh. Well, I'm still definitely excited to see what else you do! :D @HENRYMARTIN4
Wow this is amazing!
Guys this is my friend he is literally sitting next to me in class.
@gameplayrawesom true dat
The quality of the textures is a little disappointing. Make sure that when you're resizing the images you're doing it with a point filter or whatever it's called. Makes it so it doesn't fade. I have no clue what the WebGL code is for it though.
Nice work!
while(true){ votes++; blocks.push(new Block(random(0, infinity), random(0, infinity))); }
No problem! @HENRYMARTIN4
OMG YOU ARE A AMAZING GOD AT CODING!!!
nice
Pretty good. One problem though: You can look down infinitely and it kinda gives me nausea whenever I do lol other than that its fantastic.
This looks awesome! This must have taken a long time
This is a account that I have not seen in a long time. I am happy to see it again
Nice work on this dude keep it up.
This is incredible! the menu looks great :D
@12608335 i didnt make the menu, i just changed the background image. the original is at https://repl.it/@duck132912/Minecraft
i just changed the script to embed an iframe of https://minecraft-engine.henrymartin4.repl.co instead of https://classic.minecraft.net
@HENRYMARTIN4 Thanks for the credit :D
I noticed you appear to be rendering each triangle individually, and doing frustum culling on all of them. I know that seems like a logical way to improve performance by minimizing the number of things being rendered, but it's actually a trap.
WebGL can easily handle 1000x more rendering than you're supplying it right now. The bottleneck comes from making too many individual draw calls. It takes longer to render 1 cube with 12 individual triangles than it would to render 1,000 cubes stored in a single buffer with 1 draw call.