Godot

6020 readers
39 users here now

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

!roguelikedev@programming.dev

Credits

founded 2 years ago
MODERATORS
476
477
 
 

I'm not terribly proficient with making materials yet, but I was wondering if something like this is doable and if so, what it might involve. I basically want to make a part of a creature appear beneath the ice in 3d. but I don't know how to approach it or what I should be looking at.

478
 
 

TL;DR:

Before:

An image showcasing the old de-noiser

After:

An image showcasing the new de-noiser

These images are 2 weeks old and there have been some changes to it, as well as a slider to adjust de-noising. Notice how much more pronounced the ambient occlusion is, and how much better the overall shading is. It's also faster than the older implementation.

On the scene I used for testing this out, the overall rendering time went down from 3 minutes to just over 1 minute in an RTX 3090 Ti with an 8K lightmap.

Bonus: This PR shaves off a massive chunk of the codebase (about 10% apparently.) Expect faster build times and a smaller engine size in 4.2!

An image showing a diff of +304 and -114,449

479
 
 

Is there a way to disable it, so that, when I switch from godot to my browser it does not type my search in godot instead of my browser?

480
481
482
 
 

This adds AMD FSR 2.2 scaling to Godot, where it previously only supported FSR 1.

483
484
 
 

One of the big winners of the Unity debacle is the free and open source Godot Engine, which has seen its funding soar to a much more impressive level as Unity basically gave them free advertising. Certainly helps that Godot ended up launching their new funding platform on the same day Unity announced their hated Runtime Fee system.

Initially when the Godot developers announced their new funding platform they only had around €25K per month from 438 members. This has now exploded up to €50,323 per month from 1,458 members. A much better and more sustainable amount considering they're building an entire game engine.

They also recently gained Terraria developer Re-Logic as a Platinum sponsor, as Re-Logic donated $100K along with $1,000 a month in ongoing funding. On top of that developer Robot Gentleman of 60 Seconds! has also upped their support of Godot and no doubt plenty of others.

Hopefully this is going to be a turning point, where developers look more to open source tools where feasible instead of locking themselves into proprietary game engines with predatory business practices. Unity has proven multiple times now they're willing to break developer's trust like their messing around with Terms of Services.

485
 
 

I am trying out Godot and I've noticed that when I export the game to linux, the result has a much longer boot time

I'm talking about an 80mb executable for a 3d game and the difference between windows and linux is 0.x seconds vs 10 seconds (the windows computer is more powerful but not by that much...)

I wouldn't care much about that, but during that load time the scene's ready() is triggered and music is played. This causes the cutscene to be desynced with the music and is quite jarring.

Does anyone know why this is happening? Version is 4.1.1 btw

EDIT: after some trial and error I've finallly found the issue. Surprisingly the cause of it was the world environment, more specifically the sky settings, which I had set to high. Bumping them down pretty much fixed the issue.

It's probably a bug, but hey, it works now 🤷

486
487
 
 
  • Stylized 3D Test & Pho King My Life
  • Galaxy Drift
  • The Adventures of Sir Kickalot
  • War of the Fourteen Dynasties
  • Seedlings
488
 
 

Wildmagic Wizardry is a Spell Mixing, Dice Rolling, Strategy roguelike where you Mix the elements from your magical dice to create powerful spells and fight your way through groups of enemies.

Currently available on both Windows and Linux, so please give the demo a try and let me know what you think! 🙂

https://heffy.itch.io/wildmagic-wizardry

489
 
 

My game has options for player customization, it's a number of .png files that are not loaded with the game startup, save for the default ones. Instead, if the player clicks a button, it will load the next file for that part (like, say, hair-2.png)

This works fine on the editor, but I've just tested an exported version and it doesn't work there, completely failing to find any files within the .pck. If I move the executable back to the project's folder, it works as expected.

Trying to figure out the why, I've also exported via Export ZIP/PCK, and found out it doesn't actually export any of the .png files, it only exports the .import files. The actual images are stored in the .godot/imported folder, each with a long, random(?) string attached to their name: hair-1.png becomes hair-1.png-t3g9r2he7783y9hut.tcex

I haven't figured out a way to export the .png files as is, so what are my options here? Besides coupling all of the parts in a single image and separating it by frames of animation, which will require both code and art rework

Tested on both Godot 4.1.1 and 4.1.2-RC1

490
 
 

Hey guys, unity refugee here:

I'm gonna try to port my 7 year game to Godot, lets see how it goes. Since it's a massive project and I am coming to unity I have decided to use C# instead of GDScript (which I did try for a while and may even use in some scripts).

I have had two crazy last days working on how to set up intellisense and Debugging on my linux machine for Godot (it should work similar for windows) for C#. So here is a guide of how I managed, in case someone else faces the same problem to save them some headaches:

1.Follow this guys tutorials which are amazing especially to sort the debugging out:https://www.youtube.com/watch?v=xKjfjtLcWXw&t=279s (Linux)

https://www.youtube.com/watch?v=c_cdAYDHR0E&t=58s (windows)

He will tell you to only install the C# extension on VSCode

If you still have issues you may try the following:

  1. if you have many different versions of .net uninstall themFrom discover I installed .net core sdk only one, otherwise the variables get mixed up.

  2. I also uninstalled Vs code and all the configurations and settings https://code.visualstudio.com/docs/setup/uninstall, and installed Vs code from the snap store.

  3. Put the exec file shortcut:

    Open the Editor Settings

    Select Text Editor > External

    Make sure the Use External Editor box is checked

    Fill Exec Path with the path to your VS Code executable

    /snap/bin/code (for Linux)

    Fill Exec Flags with {project} --goto {file}:{line}:{col}

5 .A the key part is when/if you lose instellisense, press ctrl+shift+P-> .Net generate assets to build and debug

Let me know if you need more help or I am missing something please. I so glad this is working now :)

491
 
 

After nearly three years, it's finally time: My @godot remake of https://twitter.com/strongbadactual 's Stinkoman 20X6 is complete! Every level, every cutscene, and a whole lot more. To celebrate, I've put together a little trailer. https://ratheronfire.com/projects/stinkoman/ https://youtu.be/MitDNlfcgeM #godotengine #stinkoman

492
493
494
 
 

Hey guys I've recently been looking at Godot since Unity has set itself on fire. I'm liking it so far but I've run into a small issue that disrupts my usual workflow. I like to store multiple meshes as separate objects in a single .blend file for meshes that are very related to each other like pieces of a build kit. I was able to split the meshes into separate scenes by opening the .blend scene, right clicking and allowing children to be editable, then exporting each branch to a new scene. This works as expected with one problem. The exported branches don't update their mesh when I save changes to the blend file. Is there a fix for this?

If not I can always split the blend into multiple files. Its just less convenient. Perhaps exporting to colladae would work too? I didn't try that yet but ideally I would like to keep using blend files only to avoid exporting every time I make a change.

495
 
 

Hello all!

Like most people I find myself a recent refugee from the Unity fiasco. I've been trying to prototype a project in Godot and I've been running into an issue I would think would be pretty easy to find a solution to as it seems to be a pretty fundamental building block of any project in Godot. Perhaps I'm misunderstanding how to accomplish this in Godot, but essentially I'm instantiating a number of tiles to be used for a grid system in my game. I want these tiles to be able to emit their index and transform values and then have other scripts pick this information up as needed. From what I've read signals are the way to do this, however whenever I try to send a signal with or without parameters nothing seems to happen. I seem to be able to connect to the signal just fine but the method doesn't seem to be called.

Here's an example of me defining the signal and then emitting it:

signal index_transform()

index_transform.emit()

And here's how I am connecting and attempting to call the method in a secondary script:

func _ready() -> void:
	var hexGrid = get_node("/root/Main/Map/HexGrid")
	hexGrid.index_transform.connect(Callable(self, "_get_hex_index_transform"))

func _get_hex_index_transform():
	print("I'm Connected")

And when I'm passing parameters from what I understand I should only have to include the parameters like so:

signal index_transform(index, transform)

index_transform.emit(tile_index, tile_coordinates)
func _ready() -> void:
	var hexGrid = get_node("/root/Main/Map/HexGrid")
	hexGrid.index_transform.connect(Callable(self, "_get_hex_index_transform"))

func _get_hex_index_transform(index, transform):
	print("I'm Connected")
	print("INDEX: ", index," POS: ", transform)

However neither of these seem to work. What am I doing wrong?

496
 
 

For example if you want pretty effects like areas being lit by projectiles will Compatibility provide lower of options than Forward+ ?

Can you use materials (normals, reflect, etc) on textures in Compatibility to have light show up as it's passing by?

I'm still getting a grasp on things, nothing serious yet, but I'd like to know what to expect and your experience. More of a food for thought type of question.

497
 
 

I have a wall in my 3D game which is relatively thin and it can be hit on both sides with objects that may occasionally be moving somewhat fast. Is there a reliable way to ensure that the colliding objects will be stopped on either side of the wall as opposed to simply passing through?

498
 
 

The past days the timeline of Unity user passivestar has been very enjoyable as they try out Godot and make many exciting discoveries about the engine (and bugs that they create issues for). They might also find something new that an experienced Godot user did not know before.

Alternative link via nitter: https://nitter.net/passivestar_/status/1704435403606864036

499
 
 

this seems a well-argued article to me the 'General directionless development' seems the most concerning point, I don't think the 'let's go with what the community ask\want' model is gonna work in the end.

what do you think?

500
 
 

Runs at around 300 FPS on my RTX 3060, WITH realtime global illumination enabled (sdfgi). Sadly still not fast enough for the scene to be playable in VR on my hardware - at least not at native resolution.

Some additional screenshots:

I'm pretty new to Godot, and the tower is a model I made for a different project. This is an updated version of the scene I posted here a couple of months ago. I'm posting this to show that you can achieve some pretty nice graphical fidelity in Godot - and you don't need to be a professional artist or have tons of Godot expertise to do it.

view more: ‹ prev next ›