Swell – a free water system for Godot 4.7.2+ (Some 4.8 features)
Bad weather should always be supported. Work in progress. Swell for Godot - Squalls
Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.
Bad weather should always be supported. Work in progress. Swell for Godot - Squalls
Godot Version Godot 4.6.2. stable Question I’m trying to make an enemy that shoot projectiles that can be hit, the enemy is perfectly fine except when I move to higher ground the enemy shoots the ground under me I’m not really sure which script is at fault, but I assume it’s this one v extends Node3D class_name BowWeapon @export var EXPLOSION_IMPULSE: float = 25.0 @export var show_aim := true @export var aim_high := false @export var ammo_resource:PackedScene @onready var spawn_point: Node3D =…
Godot Version 4.5.1 Question I want the player and enemies in my 3d game to have procedural animation, but I also want this procedural animation to affect the entire character, think Rainworld or Human fall Flat. How should I go about this (is there a plugin I can use?)
I DARE say I’ve finally made the results screen look pretty decent!
Why are you even deleting elements from that array? Just iterate over the entire array without hardcoding its supposed size. for t_card in chosen_cards: grid_card = card_scene.instantiate() grid_card.set_card(t_card) # the rest of stuff
Maybe, since you have a duplicate of each card in your deck from this line: ggsolaire: for i in 6: chosen_cards.append(deck.back()) chosen_cards.append(deck.back()) The .erase call is looking for the card from front-to-back, it will find the duplicate before reaching the end of the array and thus the “drawn” card from .back remains untouched. # [ a, b, c, a, b, c ] var card := array.back() # give 'c' array.erase(card) # [ a, b, c, a, b, c ] # ^ first 'c' found, deleting # [ a, b, a, b, c ] var…
There is already one built in for lightmap uvs, but its not useful for normal materials.
The idea here was that I would chose 6 cards from a deck, 2 copies each, so that I can put them on a grid to make the player find the (supposedly) shuffled pairs. This only happens when using .front() for some reason, even though the array is actually randomized when I check the data, but .back() passes the same card twice in a row Thank you for the tip I’ll change it right away pop_back() works too but doing .back() followed byerase(.back()) doesn’t for some reason…I would love if someone…

(topic deleted by author)
Currently reworking the UI for Swell Addon to make the editor more user-friendly and, most importantly, easier to understand. EDIT – New editor tools added Swell’s editor tools have grown a lot. Everything is in a new Swell bar in the 3D view’s toolbar: Tool panels: Water, Boats, Preview and Check, with big icons, tooltips and a search for any tool by name Guidance: tools that can’t be used yet are greyed out with what they need; the Check button counts what the scene check finds Tools for the…

i just noticed the shaders has uv scale alr i’ll mark this as solved as that’s what im looking for ty

You could probably edit the shader to include a UV scaling and/or offset uniform
.back() retrieves the last element in the array, .front() retrieves the first [ a, b, c, d, e, f ] ^.front() ^.back() I think you are conflating random shuffled values with a pattern that is not real. What is it you are trying to do? Instead of erasing cards after picking the .back() card, you can use .pop_back() which will retrieve and then remove the last item var t_card: Dictionary = chosen_cards.pop_back() grid_card.position = $cardSpawn.position grid_card.set_card(t_card)…
Godot Version 4.7 Question Is there a plugin for godot 4.7 that helps with making meshinstance3d’s have automatic uv gen for stuff like repeating textures? because the texture is just stretched across the meshinstance3d im using this shaders plugin Shader Store Page

Why am I making my life harder for myself? Baking in lighting into terrain is good, but if you change the size, shape, camera zoom… your mind in general, it makes tweaking a big hassle. So… why not just have a soft gradient along the edges of the fill texture? It highlights the brightest parts of the texture, and avoids the darkest. So it looks like the actual fill has highlights; rather than looking like a flat gradient washing over: Before After Next.. probably a script to help scatter some…

Godot Version 4.7.2 Question Hi, I’ve been working on a card match game to learn Godot and stumbled upon a strange issue #main.gd extends Node2D var chosen_cards : Array = [] ##Creo una PackedScene delle carte per poterne istanziare var card_scene : PackedScene = preload("res://Scenes/card.tscn") var screen_size #Semi e valori delle carte enum suits {clubs, diamonds, hearts, spades} const values = ["A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"] # Called when the node enters…
i already said on the last post, it is a plugin i failed to remove and didnt even used at the game
I similarly like using “splat map” style shaders, which may be close to what you are trying to achieve. Using RGB/A as values to represent a mix of up to four different colors or textures. The shader is very cheap with just colors, though if using textures it can be more expensive, 4 texture reads + 4 more for normal maps can be a lot, but as always try it out and use the profiler Best way to change colors on a character and access the shader parameters from the script Help You can use…
That was my plan. Have various outfit textures for characters that use a specific hue to define different areas. And then for each hue, there’s an input field for the object to define what the replacement hue should be. When saturation and value remain unchanged, this should allow assigning colors in the object properties for each object. At least in my mind, this sounds very simple and efficient.
Yora: That’s very few shaders. But I am wondering how big the impact might get when all the NPCs, buildings, buildings, and maybe also plants in view have to be shader modified at all times. Everything you see on the game screen is drawn by shaders. The engine cannot put a pixel out without going through a shader. So adding a couple of lines of your own shader code wouldn’t make much difference. Use custom shaders as much as possible. They are fast and convenient. Make each shader customizable…
I know the time it takes me understand what and more importantly why those 3 lines of code will be much longer than what I’m currently willing to spend. I’ll take your word for it for now
It’s literally 3 lines of code by directly constructing basis vectors using cross products. Try implementing it with eulers and there’s a chance you’ll go insane

I’ll save that for when I have the time thanks
Yora: But I am wondering how big the impact might get when all the NPCs, buildings, buildings, and maybe also plants in view have to be shader modified at all times They will always have a shader, any material including the StandardMaterial3D (even a lack of one) will use a shader. Your tinting shader may likely be more efficient than the standard material shader even. To apply a shader material to every object in the scene is a common use case for one off EditorScripts Godot Engine…
So far, the only two shaders I have planned are color adjustments for clothing textures, and to smoothly blend between different sky colors and have clouds and stars fade in an out. That’s very few shaders. But I am wondering how big the impact might get when all the NPCs, buildings, buildings, and maybe also plants in view have to be shader modified at all times.
If you can also reuse the material then it’s an all around win. I prefer to use white textures for the same reason, usually the albedo color property is enough, and any shaders I make end up with a similar modulate uniform. The only potential downside is more shader compilations but I don’t think it would result in more than an average 3D game.
A preview of how Swell could look under the water. Swell for Godot - Under the water
How would you create a non-orthogonal or non-normalized basis using euler rotations? Eulers create matrices under the hood anyway so it always boils down to matrix multiplication, just with added confusion of rotation order and gimbal locks. Once you develop an intuition for working with bases/matrices, you’ll never want to touch eulers again. You can bring any basis into existence simply by specifying its 3 vectors. No need to “rotate” anything. For practice, I’d suggest implementing your own…