WaveFunctionCollapse VS Raylib-cs

Compare WaveFunctionCollapse vs Raylib-cs and see what are their differences.

WaveFunctionCollapse

Bitmap & tilemap generation from a single example with the help of ideas from quantum mechanics (by mxgmn)

Raylib-cs

C# bindings for raylib, a simple and easy-to-use library to learn videogames programming (by ChrisDill)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
WaveFunctionCollapse Raylib-cs
99 18
22,706 686
- -
4.8 8.0
10 days ago 16 days ago
C# C#
GNU General Public License v3.0 or later zlib License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

WaveFunctionCollapse

Posts with mentions or reviews of WaveFunctionCollapse. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-23.
  • I use Wave Function Collapse to create levels for my game (2022) [video]
    1 project | news.ycombinator.com | 27 Feb 2024
  • It's Okay to Make Something Nobody Wants
    2 projects | news.ycombinator.com | 23 Sep 2023
    Thank you! And yes, I agree. I was looking at uh https://github.com/mxgmn/WaveFunctionCollapse and wondering if that were applicable here :)

    Have a good day!

  • The Wavefunction Collapse Algorithm
    1 project | news.ycombinator.com | 1 Sep 2023
  • Kullback–Leibler Divergence
    2 projects | news.ycombinator.com | 22 Aug 2023
    Intuitively, it measures the difference between two probability distributions. It's not symmetric, so it's not quite that, but in my opinion, it's good intuition.

    As motivation, say you're an internet provider, providing internet service to a business. You naturally want to save money, so you perhaps want to compress packets before they go over the wire. Let's say the business you're providing service to also compresses their data, but they've made a mistake and do it inefficiently.

    Let's say the business has, incorrectly, determined the probability distribution for their data to be $q(x)$. That is, they assign probability of seeing symbol $x$ to be $q(x)$. Let's say you've determined the "true" distribution to be $p(x)$. The entropy, or number of bits, they expect to transmit per packet/symbol will be $-\sum p(x) lg(q(x))$. Meaning, they'll compress their stream under the assumption that the distribution is $q(x)$ but the actually probability of seeing a packet, $x$, is $p(x)$, which is why the term $p(x) lg(q(x))$ shows up.

    The number of bits you're transmitting is just $-\sum p(x) lg(p(x))$. Now we ask, how many bits, per packet, is the savings of your method over the businesses? This is $-\sum p(x) lg(q(x)/p(x))$, which is exactly the Kullback-Leibler divergence (maybe up to a sign difference).

    In other words, given a "guess" at a distribution and the "true" distribution, how bad is it between them? This is the Kullback-Leibler distribution and why it shows up (I believe) in machine learning and fitness functions.

    As a more concrete example, I just ran across a paper talking [0] about using WFC [1] to asses how well it, and other algorithms, do when trying to create generative "super mario brothers" like levels. Take a 2x2 or 3x3 grid, make a library of tiles, use that to generate a random level, then use the K-L divergence to determine how well your generative algorithm has done compared to the observed distribution from an example image.

    [0] https://arxiv.org/pdf/1905.05077.pdf

    [1] https://github.com/mxgmn/WaveFunctionCollapse

  • All of it under the most poorly designed and maintained village
    1 project | /r/worldjerking | 9 Jul 2023
    Reminds me of wave function collapse - a programmatic way to generate mazes.
  • How to detect and fix isolated terrain (islands or lakes) in a tile-based terrain?
    1 project | /r/proceduralgeneration | 7 May 2023
    I am using WFC to generate the terrain, with pretty much a copy-paste implementation of the original WFC implemented into Unity.
  • How to make wfc or post-gen script in blender?
    1 project | /r/proceduralgeneration | 13 Apr 2023
    If you still want to go the WFC route, the original WFC repository is a great place to start. There's also a (relatively barebones looking) Godot plugin you could take a look at.
  • Wave Function Collapse
    1 project | news.ycombinator.com | 25 Mar 2023
  • collapsed
    2 projects | /r/generative | 25 Mar 2023
    wave function collapse studies - this is done with the https://github.com/mxgmn/WaveFunctionCollapse algorithm after I saw https://github.com/CodingTrain/Wave-Function-Collapse mention it. done in P5! IG https://www.instagram.com/ronivonu/
  • Room Generation Using Constraint Satisfaction
    1 project | news.ycombinator.com | 23 Mar 2023
    There’s an interesting approach similar to this called [Wave Function Collapse](https://github.com/mxgmn/WaveFunctionCollapse) (no relation to wfc in physics idea besides inspiration). It can infer the probabilistic constraints from one input example, and it seems to generalize quite well. Here’s a [little demo](https://oskarstalberg.com/game/wave/wave.html)

Raylib-cs

Posts with mentions or reviews of Raylib-cs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-09.
  • How do I get started with Raylib?
    1 project | /r/raylib | 23 Jun 2023
  • How to add graphics
    4 projects | /r/csharp | 9 Jan 2023
    Glad I could help! Just one more disambiguation -- it's not built in. raylib is created by Ray/raysan5,and the C# bindings are created primarily by Chris Dill. Dill has packaged the bindings as a NuGet package, which you can add using the command line. The command downloads the package from the online repository and installs it.
  • Where to find more information on using languages beside c++?
    3 projects | /r/raylib | 29 Dec 2022
    Generally the respective Github pages for the binding would be a good starting point so for C# go here if you have not already https://github.com/ChrisDill/Raylib-cs
  • Need help with converting C++ to C#
    3 projects | /r/imgui | 6 Oct 2022
    I'm converting rlImGui from C++ to C# so I can use it with ImGui.NET and Raylib-cs but I'm getting stuck at a couple places. I don't know how to convert line 331 to C# since in ImGui.NET cmd.UserCallback is an IntPtr and not something I can call. I did a quick google search and you can use the Marshal library to convert it to a callable delegate but I think you need to also have the delegate known to do that. There's also line 82 but that is specific to Raylib. The function it calls does not seem to be included in Raylib-cs. Also, rlImGui keeps using a Texture type but that is not defined in Raylib-cs or ImGui.NET. I assume I can substitute it with Texture2D from Raylib-cs but I'm not to the point in porting to see if Texture2D has the necessary fields/properties/methods.
  • Simple 2D graphics framework for C#/Java
    3 projects | /r/csharp | 3 Sep 2022
    You can go with raylib: https://github.com/ChrisDill/Raylib-cs
  • If you were to start a new project that require OpenGL 3D graphics on C# What you will choose on 2022?
    2 projects | /r/csharp | 5 Aug 2022
    I've been using raylib-cs C# wrapper for raylib and have been quite happy with both. raylib is a relatively thin layer on top of OpenGL, especially if you use the rlgl functions.
  • Any official C# wrapper?
    2 projects | /r/raylib | 15 Jul 2022
    Not sure about "official", but I use raylib-cs and it works perfectly for me.
  • Help!
    2 projects | /r/csharp | 7 Jun 2022
    Raylib-cs is very easy to use: https://www.raylib.com/ https://github.com/ChrisDill/Raylib-cs It's a binding to the Raylib C library.
  • I made a space invaders game in C# using all of my absolute-beginner knowledge
    1 project | /r/csharp | 14 Mar 2022
    If you're looking to make simple games with C#, consider looking into MonoGame or Raylib-cs. OP's use of Windows Forms could prove hard to manage with a larger game project, but it is a pretty novel approach!
  • What are some good tutorials for making 2D games with C# in visual studio without a game engine?
    6 projects | /r/csharp | 10 Mar 2022
    If you find the structure of MonoGame too opaque or technical -- totally reasonable given that you're learning your way around -- check out Raylib-cs, a C# wrapper for the C games programming library raylib. It doesn't get much simpler.

What are some alternatives?

When comparing WaveFunctionCollapse and Raylib-cs you can also consider the following projects:

eShopOnContainers - Cross-platform .NET sample microservices and container based application that runs on Linux Windows and macOS. Powered by .NET 7, Docker Containers and Azure Kubernetes Services. Supports Visual Studio, VS for Mac and CLI based environments with Docker CLI, dotnet CLI, VS Code or any other code editor. Moved to https://github.com/dotnet/eShop.

MonoGame - One framework for creating powerful cross-platform games.

OpenFK - An open source replacement for the U.B. Funkeys executable.

raylib - A simple and easy-to-use library to enjoy videogames programming

DeBroglie - DeBroglie is a C# library implementing the Wave Function Collapse algorithm with support for additional non-local constraints, and other useful features.

bgfx - Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.

dnSpy-Unity-mono - Fork of Unity mono that's used to compile mono.dll with debugging support enabled

rlImGui-cs - A Raylib-cs integration with DearImGui

texture-synthesis - 🎨 Example-based texture synthesis written in Rust 🦀

SDL2-CS - SDL2# - C# Wrapper for SDL2

dnSpy

FontStashSharp - C# port of https://github.com/memononen/fontstash