News for hackers. Stuff that matters.
Re:Terraria developer bashes Unity, donates $200k to open so... by Rapzid on Thursday September 21, 2023 @02:19AM (#37593871)
I've been diving into the engine development scene this week. Lots of cool activity going on.

There is a PR shaping up to produce "libgodot"; Godot as a shared lib for embedding in other code. Users reporting use cases and what they are currently doing with that:

* embedding in .net to flip that script

* embedding in Blender so assets can be viewed in engine and a tighter integration created

* VR applications

* Miguel de Icaza's(yes that one!) SwiftGodotKit

* Image export, a UI system, 3d viewport, asset conversion automation, etc.

Really cool stuff!

Re:Terraria developer bashes Unity, donates $200k to open so... by slabity on Thursday September 21, 2023 @02:25AM (#37593893)
Do you have a link to that PR? I am actually very interested in something like that.
Re:Terraria developer bashes Unity, donates $200k to open so... by Rapzid on Thursday September 21, 2023 @02:31AM (#37593920)
Yes it's here: https://github.com/godotengine/godot/pull/72883 .

Looks like it lost a little momentum in the past few weeks but it's working for people and there is a path forward to getting accepted by maintainers. It's also on the DotNet contributors meeting agenda for tomorrow..

Re:Terraria developer bashes Unity, donates $200k to open so... by livrem on Thursday September 21, 2023 @02:37AM (#37593951)
There are many mentions of C# there, but it is just a C library that can be embedded without involving C#, right?
Re:Terraria developer bashes Unity, donates $200k to open so... by Rapzid on Thursday September 21, 2023 @02:41AM (#37593978)
Yes, I think someone who first started pushing for it was interested in embedding it in their C# app as the entry.

But it's just an .so that can be used in any app through the C ABI I gather.

Re:Terraria developer bashes Unity, donates $200k to open so... by foxyv on Thursday September 21, 2023 @11:05AM (#37598730)
I don't know about C# but I do know Java can use C code through the Java Native Interface. I wouldn't be surprised if .NET and Mono have something similar.
Re:Terraria developer bashes Unity, donates $200k to open so... by gofixurcode on Sunday September 24, 2023 @12:52AM (#37630227)
Golang has this as well and can also be compiled to a .so if desired.
Re:Terraria developer bashes Unity, donates $200k to open so... by malermeister on Thursday September 21, 2023 @03:15AM (#37594213)
Oooh I wonder if this libgodot would also allow me to work with Kotlin/Native. I've tried getting into Godot, but C# felt a bit... dated compared to Kotlin.

Don't even get me started on GDScript.

Re:Terraria developer bashes Unity, donates $200k to open so... by Rapzid on Thursday September 21, 2023 @03:21AM (#37594252)
I imagine so. Should also be possible to generate bindings from the ClassDb json in a similar way to how it's done in C#. I'm not super familiar with it but it's all moving to the GDExtension stuff.
Re:Terraria developer bashes Unity, donates $200k to open so... by msk-lywenn on Thursday September 21, 2023 @03:29AM (#37594312)
GDExtension appears to be quite the bottleneck though. https://sampruden.github.io/posts/godot-is-not-the-new-unity...
Re:Terraria developer bashes Unity, donates $200k to open so... by Rapzid on Thursday September 21, 2023 @03:37AM (#37594370)
In a few places. Author has communicated with the devs and they seem receptive to addressing the issues with the usual caveats that it doesn't break anything.
Re:Terraria developer bashes Unity, donates $200k to open so... by Guillaume86 on Thursday September 21, 2023 @05:53AM (#37595448)
Not familiar with Kotlin, what are the features you were missing when using C#?