-------------------New UPDATED VERSION------------------------ https://scratch.mit.edu/projects/403944180/ Please note I will not be updating this anymore, I will be updating the new version instead. New version includes random terrain, and a MINIMAP! :) -Run on https://forkphorus.github.io/#372426720 for much faster speeds (use turbo mode) -Higher view length is higher lag -Arrow keys to look around, wasd to move -move mouse to top for options - switch to wireframe for significantly faster speeds, try using pen size 1 :) -You can only look up a certain amount - Love, fave and follow me, @howtomakeausername for more like this. -Try putting view length high, it looks great!
-----------------------------Changelog--------------------------------- v4.8 - MOUSE CONTROLS v4.7 - HUGE optimisation :D v4.6 - updated lighting to make it more realistic v4.5 - Made it so it only calculates lighting for each square, not each triangle. It looks a lot cleaner now. v4.4 - Added some mountain below the snow v4.3 - Another speedup to the 3d tri-filler v4.2 - Added snow on top of high mountains! v4.1 - Updated light position and light strength v4 - Lighting is calculated by the dot product of the surface normal and light position, and distance v3.9 - SIGNIFICANT speed boost due to back-face culling v3.8 - Water is now COMPLETELY flat v3.7 - Increased players height off the ground v3.6 - HUGE speedup for the triangle rendering v3.5 - Removed XY clip for wireframe for a slight speed boost v3.4 - All water is now mostly flat! v3.3 - More variability, now there are entire lakes of water and the amount of water in different areas changes v3.2 - Added water if the y drops below a certain point, increased pen size for wireframe v2.2 - Checkered plane + z-sorting (works but is a different than usual method) + reshared v2.1 - Even more complicated sine/cosine transform v2- New sine/cosine equation used to make the world + less wireframe lag +more view + ADDED FILLER! This is a very simple way to make a 3d world. I'll try to explain what's going on. First, you need to have a 3d engine (there are tons of tutorials for this). Then what's happening is every point is determined by one equation including the y position of the player, which is drawing the map as a combination of different sine and cosine transformations. Basically, it's like climbing up and down a graph. I have notes inside the project if you want more info. I've wanted to make a 3d world or a 3d terrain engine for quite a while so I'm pretty happy how it turned out! credits: @mathmathmath for his tutorial on 3d that helped me make this @s_tutorials for the z-clipping of the triangles @dadofmrlog for the tri-filler @jamothehyperturbopro for his tutorial on front-face detection and @codingbio for suggesting it. tags: @scratch-minion for help with the code for the lighting #3d #world #open #3d #terrain #engine #pen #howtomakeausername #who #uses #tags #anyway #me