45
submitted 1 week ago* (last edited 1 week ago) by PorkrollPosadist@hexbear.net to c/libre@hexbear.net

I just started a new project about a week ago. I guess it's time to port it.

top 6 comments
sorted by: hot top new old
[-] PorkrollPosadist@hexbear.net 11 points 1 week ago

It appears they have changed how Image works internally and my ugly hack of reading directly from its internal buffer has exploded shrug-outta-hecks

[-] Enjoyer_of_Games@hexbear.net 8 points 1 week ago
[-] PorkrollPosadist@hexbear.net 3 points 1 week ago* (last edited 1 week ago)

Problem was an array indexing miscalculation in my C++ code (many such cases). It failed silently in the old build, but triggered a segmentation fault in the new version.

Screenshot of the new Godot 4.6 editor displaying a heightmap mesh.

I'm trying to implement the CDLOD heightmap algorithm in a GDExtension. I'm pretty close. I need to implement the distance function (basically just log₂(distance)) and frustum culling (Camera3D provides methods which make this fairly trivial, and I already know the AABB of any arbitrary tile. The code which was failing was the bit that runs on leaf tiles to iterate the actually pixel data and find the Z-min/max. From there the min/max values just accumulate back upwards as the initialization function ascends out of the tree).

It's a pretty cool system (especially for it's relative simplicity). I'm using a MultiMeshInstance3D to draw an arbitrary number of identical grid meshes. The same mesh is used regardless of the level of detail and simply transformed into the correct position / size. The tile boundaries are passed using INSTANCE_CUSTOM to the shader which applies the heightmap in the vertex stage, so the whole terrain can be rendered in arbitrary detail without making any changes to the rendering pipeline.

[-] invo_rt@hexbear.net 9 points 1 week ago

I will get my act together and make a vertical slice this year

[-] segfault11@hexbear.net 5 points 1 week ago

where we go one, we dot all

[-] DogThatWentGorp@hexbear.net 4 points 1 week ago* (last edited 1 week ago)

IKs and light banding fixes are looking good but I'm too scared of breaking my momentum in order to update and fix whatever breaks because of that right now ;-;

this post was submitted on 27 Jan 2026
45 points (100.0% liked)

libre

10145 readers
24 users here now

Welcome to libre

A comm dedicated to the fight for free software with an anti-capitalist perspective.

The struggle for libre computing cannot be disentangled from other forms of socialist reform. One must be willing to reject proprietary software as fiercely as they would reject capitalism. Luckily, we are not alone.

libretion

Resources

  1. Free Software, Free Society provides an excellent primer in the origins and theory around free software and the GNU Project, the pioneers of the Free Software Movement.
  2. Switch to GNU/Linux! If you're still using Windows in $CURRENT_YEAR, take Linux Mint for a spin. If you're ready to take the plunge, flock to Fedora! If you're a computer hobbyist and love DIY, use Arch, Gentoo, Guix or the many, many offerings out there.

Rules

  1. Be on topic: Posts should be about free software and other hacktivst struggles. Topics about general tech news should be in the technology comm or programming comm. That doesn't mean all posts have to be serious though, memes are welcome!
  2. Avoid using misleading terms/speading misinformation: Here's a great article about what those words are. In short, try to avoid parroting common Techbro lingo and topics.
  3. Avoid being confrontational: People are in different stages of liberating their computing, focus on informing rather than accusing. Debatebro nonsense is not tolerated.
  4. All site-wide rules still apply

Artwork

founded 4 years ago
MODERATORS