jeffkdev (@jeffkdev) header
jeffkdev (@jeffkdev) profile picture

Programmer, game dev @jeffkdev@mastodon.gamedev.place @jeffkdev.bsky.social

Joined March 2016
Character test with runtime bone constraints
2
Made a low-poly grass field today
1
2
The motion still needs some work, but was fun experimenting with different color colors
1
1
Each grass blade has 4 vertices with the motion being masked by the alpha channel of the vertex color. Haven't applied any lighting yet except fog interpolation in the vertex shader
1
Adding the tangent of the surface normal (black line) to an acceleration vector causes the player to surf around the dunes automatically. Still a lot to do until this looks right though.
1
Happy little accident of the day: when the light direction is at the right angle the shadow artifacts look like ripples in the sand
1
Working on some lighting and fog effects for a desert scene. Right now just using a linear transition between three environments for a sped up day/night cycle.
1
The previous level editors I made used Bullet Physics with a btCollisionWorld just for ray-intersection entity selection. But working without a physics engine means I get to make my own ray-shape collisions!
1
1
It just has a narrow phase without any space partitioning so far. But, if I knew how simple this would be to set up I probably would have done this for the editor and only used the physics world for gameplay.
1
Ported these glsl functions to Zig: iquilezles.org/www/articles/… Made for raytracing, but same idea for ray collision detection
Instanced + skinned mesh rendering test. Each cube face is linked to one bone and each row of cubes shares the same bone state (stored in the alpha channel of the instance color). Supports 4 bones/vertex, but currently just using 1 here #zig #sokol
1
The Sokol debug UI which has been great for some fast debugging while working on this. The video shows the visual representation of the texture that is being updated each frame with the bone transforms
Wrote a couple functions that converts Zig structs to ImGui menus and then serializes them back to code where they are compiled into the binary during the next run #ziglang
1
7
The Zig type system has been really great to work with. The menu generation and code serialization are both only 50 LoC each. For release builds the struct variables can be defined as 'const' so in theory Zig should be able to inline the values too.
1
Made a quick and easy fluid simuluation using a single ball constraint. Each sphere has an unrendered ball inside to track inertia and then has a ripple effect based on the magnitude of the velocity in the vertex shader.
1
2
Since both the outer shell and fluid are instanced everything can be rendered with two draw calls (plus one for the ground)
2
Experimenting with constraints. Moving the bounding sphere around was way more satisfying than I expected
2
1
12
Basic shadow mapping and instanced cubes with #ziglang
4
Has anyone working with zig+sokol tried (or succeed) using one of the generated glsl.h files from shdc? It seems like Zig ends up skipping most of the symbols and doesn't compile when trying to use the shader_desc. @hugoviala @Srekel @gustav_olsson
2
1
I was able to get this to kind of work by modifying the generated glsl.h file (I added an example to the repo). Basically I removed "static inline" and separated the *_shader_desc function into a declaration and implementation. Probably will revisit this later...
1
1
So it turns out this is exactly what the "-- format sokol_impl" flag does automatically in shdc. So this actually will work now without any modifications to the generated .h files.
1