3DWorld
FastNoise
Our great sponsors
3DWorld | FastNoise | |
---|---|---|
54 | 57 | |
1,062 | 2,549 | |
- | - | |
9.9 | 7.8 | |
7 days ago | 28 days ago | |
C++ | Rust | |
GNU General Public License v3.0 only | MIT License |
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.
3DWorld
-
Generating Master of Orion 2 like starmap
You mean you want to draw the individual stars themselves? It's likely just a texture, probably white so that it can be colored differently for each star. This is how I've done it. Try a Google image search for "flare texture". You can find some of the ones I used here (flare*.jpg): https://github.com/fegennari/3DWorld/tree/master/textures
-
Map Generation by Diamond Square with Shading and Raycasted Shadows.
I remember it being called "wave surfing", where you start at the current pixel and draw a line to the light source, checking the elevation vs. the altitude value of the line (Y or Z) at every step. I have the code in my mesh_shadow_gen class here: https://github.com/fegennari/3DWorld/blob/master/src/visibility.cpp
-
How to manage a buffer containing objects of varying size? For sparse chunk loading/unloading
This all sounds complex, but the system can be made to work well. I've written something similar myself, except with VBOs rather than SSBOs. My code can be found in these two files: https://github.com/fegennari/3DWorld/blob/master/src/buildings.h
-
Procedurally Generated Spider Model and Animation
C++ code for drawing spiders can be found in my GitHub project, in the spider_draw_t class: https://github.com/fegennari/3DWorld/blob/master/src/building_animal_draw.cpp
-
Procedurally generated 8km Octree Terrain using Compute Shaders and WGPU (Rust)
Filling the cracks properly generally gives better performance and fewer drawing artifacts compared to skirts. If you use indexed triangles and set them up in neat rows and columns, it's pretty easy to get right. No lookup tables or big switch cases, and it works with any number of LODs. See the crack_ibuf_t code starting around like 1800 here: https://github.com/fegennari/3DWorld/blob/master/src/tiled_mesh.cpp
-
Pixel planets with Pygame and OpenSimplex
I wrote a planet name generator that combines multi-character combinations. It may not do as good as a proper Markov Chain, but may produce names that sound better than your simple approach. If you're interested, the code can be found here: https://github.com/fegennari/3DWorld/blob/master/src/Universe_name.cpp
-
Reusing vertices while using marching cubes/tetrahedra
The code for this is in my voxel_manager::add_triangles_for_voxel() on line 497 here: https://github.com/fegennari/3DWorld/blob/master/src/voxels.cpp
- Memory Management for infinite procedural generation algorithm (please help me I beg)
-
Best approach to render a lot of text.
Thanks. Yes, I was looking at this. The problem is that the texture atlases are in a different format than the ones I currently use. The MSDF versions don't have all of the ASCII characters and some characters have a different number of pixels. So it's not a drop in replacement for my system, which is using texture atlases like this: https://github.com/fegennari/3DWorld/blob/master/textures/atlas/text_atlas.png
-
Rigid Body Physics with rotation question
I have some code for this here, but it's part of a large project and not easy to read/understand: https://github.com/fegennari/3DWorld/blob/master/src/free_obj.cpp
FastNoise
-
Using FastNoiseLite (or any GLSL library) in a shader.
If you go to the FastNoiseLite github you'll see there's a FastNoiseLite.glsl file, this file contains the entire library. So to use this in a shader we need to use the new shader #inlude preprocessor. In short, create a new ShaderInclude resource, paste the contents of the FastNoiseLite.glsl file into it and then simply #include it in your shader.
- Procedural terrain generation that isn't so bumpy?
-
While working on my game I made a highly optimized Noise Library for C#, I just made it open-source!
FastNoiseLite: ValueNoise, OpenSimplex2, OpenSimplex2S, Perlin, ValueCubic (from https://github.com/Auburn/FastNoiseLite )
-
Experimenting with shaped islands and Perlin noise. Video link below.
Fair enough. If it helps, you can drop this into a P5.js sketch without too much friction: https://github.com/Auburn/FastNoiseLite/tree/master/JavaScript
-
Has anyone written "Idiot's Guide To FastNoiseLite"?
I suppose I'll compile what I can find here for future searchers: Here's the original github for FNL , it has some images to use as examples but few explanations unless you want to download and run the preview program yourself.
-
perlin noise offset
Also take a look at FastNoiseLite if you want better control over noise generation, and for cool examples.
-
My second procedural mesh attempt. No vegetation cover yet.
I used this repo: https://github.com/Auburn/FastNoiseLite
-
Using noise seeds in a very large world.
Yeah, that's literally what a seed does. It's really odd to me that the unity mathematics one doesn't have a seed. I use this one: FastNoiseLite
-
Has Anyone Created Noise (e.g. Perlin, OpenSimplex, etc.) in C# Using the GPU?
I really like this library which appears to have gals implementation. https://github.com/Auburn/FastNoiseLite
-
I have created a floating point origin system for my game to allow the player to venture out far beyond what Unity allows for normally (roughly 5000 meters)
For the actual dunes I used fast noise lite ( https://github.com/Auburn/FastNoiseLite ). They have a nice gui app, where you can create noise textures (in my case voronoi noise). Then I apply the height map to the individual terrain tiles. So no fancy procedural Generation is going on here.
What are some alternatives?
tinygltf - Header only C++11 tiny glTF 2.0 library
FastNoise2 - Modular node graph based noise generation library using SIMD, C++17 and templates
single_file_libs - List of single-file C/C++ libraries.
OpenSimplex2 - Successors to OpenSimplex Noise, plus updated OpenSimplex.
MarkovNameGenerator - :black_nib: Markov process-based procedural name and word generator demo
FastLED - The FastLED library for colored LED animation on Arduino. Please direct questions/requests for help to the FastLED Reddit community: http://fastled.io/r We'd like to use github "issues" just for tracking library bugs / enhancements.
PolyWorld - A world generator that is based on Voronoi diagrams
LearnOpenGL - Code repository of all OpenGL chapters from the book and its accompanying website https://learnopengl.com
Cities - Procedural city & road placement
Scattered-Biome-Blender - Smooth transitions over biome borders using scattered point evaluations.
webgl-noise - Procedural Noise Shader Routines compatible with WebGL
glNoise - A collection of GLSL noise functions for use with WebGL with an easy to use API.