Tag: 3d
-
Make a 3D Racing Game from Scratch in Godot
Download full source code from GitHub. This article is a breakdown for understanding, and not all code is written here. This tutorial assumes that you are familiar with GDScript & Godot in general. I took inspiration from Need for Speed 2, an old game. The game will have 2 or 3 levels, with a single…
-
Making Boat Physics in Godot
My objective was to make a ship that is floating on water; walkable on deck; and its motion is based on dynamic water waves. Yet it should be cheap to compute, not taking too much frame-rate. Breakdown Full Code Thank you for reading <3
-
Thunder Lightning Strike Shader for Godot
Originally based on this shader for 2D lightning. I added some more controls such as thickness and modified it to add alpha on areas other than lightning. Breakdown The full code is at the end of the post. Here I’m explaining some important parts of it. Main part uv += 2.0 * fbm(uv + TIME…
-
2D dissolve shader with edge burn (burning paper shader)
2D edge burn shader for Godot 4. adding more electrical effect: Breakdown
-
Sci-fi Engine Thrust Shader
Sci fi engine thruster VFX shader for Godot 4. Jet engine exhaust flame/propulsion. Breakdown We will start with the simple effect, and will add details to it with time. Start with Simple Gradient The first step is to make a gradient spanning across the mesh. One end of the mesh should be transparent (its ALPHA…
-
Fast Travel Shader (Speed Lines)
3D Fast travel shader (speed lines shader) for Godot 4. Sci-fi effects. Breakdown Start with gradient Similar to how I did in jet engine exhaust shader tutorial; initially, we just make our mesh transparency gradient, thus one end becomes transparent (alpha=0) and other end alpha=1. For this, we calculate vertex height in the vertex shader…
-
Simulating Hydraulic Erosion of Terrain
Hydraulic erosion is a nature-based algorithm that simulates erosion caused by water on terrain. It is useful to make procedurally generated terrains look more realistic & interesting. Hydraulic Erosion Overview Water from mountains come down through slopes, forming creases along the way. This water is then accumulated as is travels, causing the formations of streams.…
-
Marching Cubes Algorithm
A simple heightmap-based terrain works well for simple geometries in procedural generation, but when we have to make structures that should grow in any dimension, such as caves, cliffs, rocks; we need a better algorithm. For this the marching cube is a go-to algorithm but in my case, it was too slow for my game…
-
3D Procedural World Generation
I was making my bird game & the player should be able to fly tens of kilometers to any direction, above the rich forests & deserts. There should be different species of birds flying in beautiful patterns and should interact with the world in a good way. I knew that the answer is procedural generation,…
-
3D Boat Physics
In a Nutshell When an object is submerged in a fluid, it displaces the surrounding fluid. This displacement results in the elevation of the fluid around the object. As the fluid is lifted against gravity, it gains potential energy. The source of this potential energy is the work done by the object in displacing the…