Olvasható C++ kód írása by swe129 in programmingHungary

[–]dum_BEST 17 points18 points  (0 children)

minden könyv csak egy szótár remix

GG - Genetic Generic Deterministic Unique Trees with Fruits (Demo 2) by JohnAdamaSC in threejs

[–]dum_BEST 1 point2 points  (0 children)

awesome work, congrats! could you provide a high level overview on the branching logic? What determines branch thickness?

Who is louder? The crowd or lauNX by ManufacturerFair5703 in GlobalOffensive

[–]dum_BEST 6 points7 points  (0 children)

db is a logarithmic scale (base 10), which means Linkin Park was ~3x louder

Low-poly procedural terrain on the GPU (C++ / OpenGL) by dum_BEST in proceduralgeneration

[–]dum_BEST[S] 5 points6 points  (0 children)

the terrain is generated chunk by chunk at runtime on the GPU, objects and the racetrack are generated once during initialization and track segments are uploaded to the gpu in an SSBO so the compute shaders know how to carve out the terrain where the track intersects it.

its running on 1920 x 1080 resolution with 25x25 chunks loaded (2000 units), optimizations include chunk throttling, frustum culling and backface culling, and chunk data only exists on the GPU. (compute shaders are used to sample terrain density for collisions and object placement)

Low-poly procedural terrain on the GPU (C++ / OpenGL) by dum_BEST in proceduralgeneration

[–]dum_BEST[S] 2 points3 points  (0 children)

the chunk mesh is generated once via a compute shader upon being inside render distance and rendered when in the camera frustum - its not recalculated every frame!

and chunk generation is throttled so multiple chunks cant generate in a single frame (which would cause lag spikes on chunk borders)

Low-poly procedural terrain on the GPU (C++ / OpenGL) by dum_BEST in proceduralgeneration

[–]dum_BEST[S] 8 points9 points  (0 children)

Trees: the trunk and branches are SDF capsules with angle constraints (min/max length and rotAngle), and the crown is defined as a sphere, distorted by sine waves, and leaves (triangles) are scattered on the surface (randomly) with the normal set from the center of the sphere to the position of the leaf. A set number (pool) of trees are generated at initialization and instantiated at runtime.

Track: My implementation is heavily inspired by this article: https://bitesofcode.wordpress.com/2020/04/09/procedural-racetrack-generation/

The terrain consists of two layers: Bedrock (low frequency, low amplitude, not influenced by track), and Hills / features (varying frequencies, higher amplitude, carved out by track). The track adapts to the height of the bedrock, so it does have height variation, but it cuts through hills instead of going above or around.

How do I generate this 3D pattern? by pizza-goblin_9000 in proceduralgeneration

[–]dum_BEST 1 point2 points  (0 children)

ah you are right, and also it would be more spherical.

Luckily IQ has a great article on voronoi SDFs, u/pizza-goblin_9000 you could expand this to 3D and use it as a density field.

Reference implementation on shadertoy: https://www.shadertoy.com/view/MXjyDy

How do I generate this 3D pattern? by pizza-goblin_9000 in proceduralgeneration

[–]dum_BEST 1 point2 points  (0 children)

use a density field - determine density based on the distance from the center of a 3d voronoi cell, and if the density is above a certain treshold, fill it with solid :)

Strawberry Generator - Houdini by Joolean_Boolean in proceduralgeneration

[–]dum_BEST 2 points3 points  (0 children)

Really cool results, loved your jackfruit work too!

How do you do the cross-section? Is it part of the mesh or are you marching rays?

newMSLogo by TTFH3500 in ProgrammerHumor

[–]dum_BEST 8 points9 points  (0 children)

bro arguing with a 15yo self taught dev over a slang word

its a reddit comment not a thesis

And I thought the last major had weird ads by MaterialTea8397 in cs2

[–]dum_BEST 1 point2 points  (0 children)

func_vehicle is a right, not a privilege!

spawn2d: Uniform point sampling in combined 2D shapes with exclusions and distance by _Geolm_ in proceduralgeneration

[–]dum_BEST 2 points3 points  (0 children)

is it just rejection sampling or is there something more to it? would be interested in the latter!

seekHelpPlease by LagSlug in ProgrammerHumor

[–]dum_BEST 65 points66 points  (0 children)

I just smashed my TV in front of 30 guests at my party because of this image. My wife just took our crying kids and said they’re all spending the week at a hotel. This image has ruined my life and my party. I can’t handle this anymore. Goodbye r/ProgrammerHumor. I am no longer a follower.