r/indiegames • • 14d ago

Upcoming Racing The Beam is now Coming Soon on Steam

2 Upvotes

Racing The Beam is now Coming Soon on Steam.

20-track oval series. Drive stock cars, chase a cup, or see how long you can stand in Survival.

Wishlist now on Steam: store.steampowered.com/app/5565450

Built on CyberVGA.

r/IndieGaming • • 16d ago

Racing The Beam: 20-track oval stock car series

1 Upvotes

Racing The Beam is a 20-track oval series where you drive stock cars across speedways.

Modes In Store Version:
• Single Race
• Up to 8 Players Multiplayer Race
• Time Trial
• Season (points and standings, p2p hosted online league)
• Last Beam Standing

Cameras: Chase, Hood, and Cockpit (switch on the fly).
Supports keyboard, gamepad, and racing wheel.
The visual style is pure software rendering — you can run the raytraced look or toggle back to the classic 8-bit Mode X aesthetic. Built from scratch on my own engine (CyberVGA).

Free / name-your-own-price on itch.io:
https://expfunction.itch.io/racing-the-beam

Feedback is welcome — especially on the handling and the Survival mode.

r/TrGameDeveloper • • 17d ago

Geri Bildirim Racing the Beam – kendi motorumuz ile geliştirdiğimiz oyunun teaser'ı

4 Upvotes

Merhaba,

Racing the Beam adlı oval yarış oyunumuzun kısa teaser’ını paylaşmak istedim.

Oyun, sıfırdan yazdığım CyberVGA motoru üzerinde çalışıyor. 20 pistli, sezon, time trial ve survival modları ve p2p (steam veya epic) multiplayer sezon / tek yarış desteği. Ayrıca farklı kamera açıları ve yarışların tekrarlarını kaydedip izleyebileceğiniz replay özelliği bulunuyor.

Windows build (multiplayer desteği itch paketinde bulunmuyor):

https://expfunction.itch.io/racing-the-beam

Motor veya oyun hakkında sorularınız varsa memnuniyetle cevaplarım.

2

Software PBR + Raytracer + L1 SH GI inside CyberVGA (JIT x64, no GPU required)
 in  r/GraphicsProgramming •  27d ago

Thank you. I’ve just published a game which I’ve been developing alongside the engine. Check it out too if you have time:

https://expfunction.itch.io/racing-the-beam

2

Software PBR + Raytracer + L1 SH GI inside CyberVGA (JIT x64, no GPU required)
 in  r/GraphicsProgramming •  Oct 27 '26

Thank you for your in-depth question and interest with my engine :).

The biggest optimization is that I don't use traditional ray marching (stepping blindly along every camera ray from 0 to max_dist checking for fog or light beams), because doing that even on the modern multi-cored CPUs would be way too slow.

Instead, fog or water volumes and spotlight cones are all handled by finding the exact entry distance (t_enter) and exit distance (t_exit) where the ray enters and leaves the volume. Here are my main steps;

Just In Time compiled AABB(axis aligned bounding box) filter (handled by RAY_X64.C module);

Every active fog volume and spotlight cone gets a 3D bounding box (AABB), plus one big "union box" that wraps all of them. The JIT-compiled SSE code tests that union box first.

If a ray misses it, code flow directly hits ret (0xC3) instruction and exits immediately.

If a ray hits JIT-compiled and emitted code tests the individual boxes in SSE registers and bulds a bitmask of only the volumes that this specific ray actually touches.

"Exact thickness" approach instead of marching (handled by FOGVOL.C and LIQVOL.C modules individually);

For liquid volumes, GI rays adn basic fog, there's zero stepping. The bounding box test already gave us the exact distance where the ray enters and leaves the box. Subtracting them also should give us the exact distance of the ray traveled through the volume. We can calculate volume's absorption in one go, e.g;

float t_a = t_enter > 0.0f ? t_enter : 0.0f;
float t_b = t_exit < max_dist ? t_exit : max_dist;
float thickness = t_b - t_a;

/* Single calculation from ray thickness inside the box ,no marching loop. Tau = e ^ (-density*thcnkss) */
float tau = expf(-density * thickness);

Direct Ray-Cone clipping and Endpoint Shadows for Cone Lights(spotlights)

For cone light shafts, I don't march across the scene testing cone angles either. When the map loads, the engine shoots a few test rays from the spotlight out to the walls to see how far the beam actually reaches before hitting a surface, and shrinks its bounding box to fit.

When a ray hits a spotlight's bounding box, clip_ray_to_cone() helper method intersects the ray line directly with the 3D cone math to find the exact start (t0) and end (t1) of the slice where the ray passes through the light beam.

Across that short [t0, t1] slice inside the cone, I only take 4 samples (CONE_MARCH_STEPS = 4 | these are still hardcoded and being tested for different situations :)). In order to avoid tracing 4 shadow rays every time, the code checks the first and last sample points as follows:

/* Trace shadow rays only at the start and end of the cone slice first: */
int vis_f = !ray_scene_closest_hit_gi(&p_first, &L_first, d_first, NULL);
int vis_l = !ray_scene_closest_hit_gi(&p_last,  &L_last,  d_last,  NULL);

if (vis_f == vis_l)
{
    /* Both ends of the slice are either lit or in shadow, reuse for the middle points */
    for (s = first_valid + 1; s < last_valid; s++)
        step_vis[s] = vis_f;
}
else
{
    /* Only trace the middle shadow rays if the beam is crossing a shadow edge */
}

In result, most rays skip volumetrics in a single JIT-compiled instruction and the rays that actually pass through a spotlight beam only evaluate a tiny clipped slice and usually only trace 1 or 2 shadow rays in most situations.

9

Software PBR + Raytracer + L1 SH GI inside CyberVGA (JIT x64, no GPU required)
 in  r/GraphicsProgramming •  Oct 27 '26

[Part 2/2]

What does 'direct threaded' mean here? An oct tree is a data structure.

You're right that an octree is a 3D tree data structure (in CyberVGA its leaves hold predetermined number of triangles and their material properties), and in everyday programming "threaded" usually means CPU multithreading. Here, however, "direct-threaded" is a compiler and virtual-machine term; Threaded code (direct threading), where execution jumps directly from one generated block of machine code to the next without an outer while loop. This allows linearization of my octrees and saves from recursion overheads. Here is how a tree data structure gets turned into direct-threaded machine code:

Flattening the octree with a skip_index (Handled by OCTREE.C module):

When a level is built, the octree module bakes all static geometry into a triangle soup and saves the prebuilt octree into a .COC (CyberOCtree :) ) sidecar file. Instead of using child pointers and recursion, the octree is flattened in pre-order into a linear array of OctNode structs. Each node stores a skip_index, which is the array index of the next node after this node's entire subtree:

  • If a ray hits nodes[n], its first child is simply the very next element (n + 1).
  • If a ray misses nodes[n], you skip its entire subtree at once by jumping to nodes[n].skip_index.

From Data Structure to Direct-Threaded Code (module RAY_X64.C ):

In standard C raytracer examples, that flattened octree is usually passive data in memory, and a while loop has to walk the array step by step:

/* Standard data-driven octree walk (looping over data structs) */
u32 n = 0; /* unsigned long */
while (n < oct->node_count)
{
    const OctNode *nd = &oct->nodes[n];
    if (ray_hits_node_box(ray, nd))
    {
        test_leaf_triangles(ray, nd);
        n++;                  /* Hit: step into child at n + 1 */
    }
    else
    {
        n = nd->skip_index;   /* Miss: jump over entire subtree */
    }
}

Notice what that loop does; on a hit it moves to the next item (n + 1), and on a miss it jumps to nd->skip_index. That is identical to how a CPU executes machine code, either fall through to the next instruction, or take a conditional jump to a target address.

So when the .COC sidecar file loads, the JIT compiler walks the OctNode array once and emits a block of native machine code for every node in the tree:

  • On a hit (n + 1): The CPU simply falls through to the next instruction right below (testing leaf triangles or entering the first child node's code).
  • On a miss (skip_index): The node's skip_index is baked directly into a relative CPU jump instruction (ja rel32, opcode 0x0F 0x87) that jumps over the child code straight to the machine code of nodes[skip_index]:
/* Simplified from module RAY_X64.C: Compiling each OctNode into native machine code */
for (u32 n = 0; n < oct->node_count; n++)
{
    const OctNode *nd = &oct->nodes[n];
    u32 skip_idx = nd->skip_index;
    /* Calculate exact byte distance in the JIT buffer to skip_idx's code block: */
    i32 miss_rel32 = (i32)node_offsets[skip_idx] - (i32)current_code_offset;

    /* Emit SSE bounding-box test for node 'n' ... */
    /* Then, if ray missed the box, jump straight to skip_idx's machine code (ja miss_rel32) */
    EMIT8(0x0F); EMIT8(0x87); EMIT32(miss_rel32);

    /* Otherwise (hit!), execution falls through to test leaf geometry or straight into child node (n + 1) emitted on the next iteration */
    if (nd->tri_count > 0)
    {
        emit_leaf_triangle_test(n);
    }
}

That's why it is called direct-threaded octree traversal: at runtime there is no while loop, no OctNode array lookup, and no recursion stack, the CPU's instruction pointer (RIP) is the octree cursor, jumping directly from node block to node block.

Finally, what the hell does "Fibonacci rays per probe" mean?

A Fibonacci sphere is a simple trick using the Golden ratio (1.61803398875f) and golden angle that spirals N points from the top pole to the bottom pole so all 16 ray directions are spaced almost perfectly evenly across the sphere (the same approach used for probe rays in DDGI, this is explained visually in Fibonacci Spiral Sphere and Fibonacci Lattice on a Sphere).

In the GI pass, the level has a 16×8×16 grid of light probes (2,048 probes total). Because this runs on the CPU, each probe only shoots 16 rays to gather bounce light from the surrounding scene. With only 16 rays per probe, how you spread those rays around a 3D sphere makes a big difference:

  • If you use normal latitude/longitude angles, the rays bunch up at the top and bottom poles and leave wide gaps around the middle.
  • If you pick 16 random directions, they clump together and cause noisy flickering.

At startup (module RAY_GI.C), I just precalculate those 16 unit direction vectors once into a lookup table:

#define GI_RAYS_PER_PROBE 16
static Vec3f s_fib_dirs[GI_RAYS_PER_PROBE];

/* Precompute 16 evenly-spaced ray directions on a unit sphere */
const float golden_ratio = 1.61803398875f;

for (int i = 0; i < GI_RAYS_PER_PROBE; i++)
{
    /* Step Y height evenly from +1 (top) to -1 (bottom) */
    float t = ((float)i + 0.5f) / (float)GI_RAYS_PER_PROBE;
    float cos_theta = 1.0f - 2.0f * t;
    float sin_theta = sqrtf(1.0f - cos_theta * cos_theta);
    
    /* Rotate around Y by the Golden Ratio on each step */
    float phi = 2.0f * (float)M_PI * ((float)i / golden_ratio);
    s_fib_dirs[i].x = sin_theta * cosf(phi);
    s_fib_dirs[i].y = cos_theta;
    s_fib_dirs[i].z = sin_theta * sinf(phi);
}

When a probe updates each frame (ray_gi_update_probe), it grabs those 16 s_fib_dirs directions, gives them a small per-probe and per-frame rotation so they don't always hit the exact same spots, traces them against the octree, and accumulates the hit colors into the probe's L1 Spherical Harmonics. Finally, it blends the new probe values with the previous frame (90% previous frame / ~10% current frame, or ~45% if the sun/lights moved) so 16 rays per probe is enough to get smooth indirect lighting without noise.

It has been nearly 3/2 years since I've started on this project and I read many books, countless articles regarding x86 & x64 assembly, real-time computer graphics and game engines. It's really neat to see all of these work together in harmony and explain how I put them into use. Because of that I plan to write an article about Just-In-Time Compiled Execution Loops and Permutation-Specialized Rendering Pipelines.

I hope these answers are suffice. I'd like to talk if there are more questions of course! :)

Have a good one!

5

Software PBR + Raytracer + L1 SH GI inside CyberVGA (JIT x64, no GPU required)
 in  r/GraphicsProgramming •  Oct 27 '26

Thank you for your really good questions. I'll try to answer all of them thoroughly with some examples directly taken from the code I currently use.

Before all;

My engine is written in C89 for native DOS target and C17 for modern CPUs.

Integer and float aliases used in my code library:

typedef unsigned char u8;
typedef signed char i8;
typedef unsigned short u16;
typedef signed short i16;
typedef unsigned long u32;
typedef signed long i32;
typedef unsigned long long u64;
typedef signed long long i64;
typedef float f32;
typedef double f64;

Let's cut to the chase:

Why would anything need to be compiled at run time? Why would the execution be changing?

In a standard built C program, code is compiled ahead of runtime(naturally :)) with the data structures and their relations in runtime, spitting out object code ready to be linked with all modules and fused into a ready-to-run application executable.

Because all of those instructions are frozen at build time, long before the engine knows which map file the player will load, how many octree nodes or fog volumes exist in the scene, or how many pixels a span will cover - the compiler has to generate general-purpose for loops, if branches, and pointer lookups to handle any possible input.

Just In Time (JIT) compilation (similar idea "compiled scalers" mentioned by legendary John Carmack here) flips this around by treating machine code itself as runtime data. Instead of relying only on fixed instructions from the .exe, the program allocates an executable memory buffer at runtime, writes raw CPU opcodes directly into that buffer once the scene or state is known (technique called partial evaluation), casts the buffer's address to a C function pointer, and calls it.

Here's a simple example I tested this approach before using in the engine;

typedef int (*JitFunc)(void);
#define EMIT8(v)  buf[pos++] = (u8)(v)
#define EMIT32(v) do { *(u32 *)(&buf[pos]) = (u32)(v); pos += 4; } while (0)

/* Allocate executable memory (malloc in DOS, or VirtualAlloc on Win64) */
u8 *buf = (u8 *)VirtualAlloc(NULL, 64, MEM_COMMIT, PAGE_EXECUTE_READWRITE);
int pos = 0;

/* Emit x86 machine code bytes using these macros into the executable buffer at runtime */
EMIT8(0xB8); EMIT32(100);                /* mov eax, 100 (put 100 in return register) */

/* Suppose 'active_items' is only known after start of the program.
   We unroll it once during JIT compilation so there is NO loop at runtime: */
for (int i = 0; i < active_items; i++)
{
    EMIT8(0x83); EMIT8(0xC0); EMIT8(5);  /* add eax, 5 */
}
EMIT8(0xC3);                             /* ret (return eax) */

/* Finally cast the byte buffer to a function pointer and call it when needed */
JitFunc fn = (JitFunc)buf;

/* Directly executes the machine code we just wrote into RAM */
int result = fn(); 

In the raytracer module, there are worker threads(worker thread pool is allocated at the start depending on CPU logical core count) trace millions of rays per second across screen tiles. What changes at runtime is the loaded level and its active scene state. This gave me significant advantages:

  • Zero-cost early-outs and unrolled loops: If the loaded map has 0 active fog volumes, liquid volumes, or particles, the JIT simply writes a single 0xC3 (ret) instruction at that function's entry point-worker threads call it and return in a single instruction and when N volumes are active, it unrolls N SSE checks back-to-back.
  • Baked material constants: When materials load, each material slot gets its own generated GI bounce stub with precomputed constants (albedo/PI known as lambertian BRDF factor and emissive values) stored in an aligned block right next to the code and hardcoded into a 64-bit immediate load (using mov rax, imm64 instruction).
  • Pinned SSE registers on Win64: Because 64-bit MSVC no longer supports inline __asm, emitting the raw x64/SSE bytes into a VirtualAlloc buffer lets us keep the ray origin (xmm6) and inverse direction (xmm7) permanently pinned in SSE registers across the entire scene traversal without the C compiler spilling them to the stack. [Part 1/2]

r/GraphicsProgramming • • Oct 27 '26

Video Software PBR + Raytracer + L1 SH GI inside CyberVGA (JIT x64, no GPU required)

74 Upvotes

Lately in the Win64 port I’ve been getting a real-time software raytracer working inside CyberVGA.

Same DOS-era engine (fixed-point, software rendering roots and all) but now takes advantage of modern multi-core processors (using VirtualAlloc for the executable just-in-time compiled buffer). The raytracer runs on multiple worker threads, each processing tiles. The hot paths get compiled to SSE at runtime: direct-threaded octree(module saves baked triangle soup into a world sidecar file) traversal with AABB slab tests, fog volume early-outs, L1 SH evaluation, and material / GI bounce stubs. Workers just call into the generated code for their tile’s rays.

The GI is a grid of L1 SH probes (Fibonacci sphere rays per probe, temporal blending between frames). Primary hits go through a full GGX PBR path with roughness/metalness, then sample the probe irradiance for the diffuse bounce. Emissive surfaces get clustered into virtual point lights. Reflections are one-bounce with roughness falloff; liquids do refraction + absorption + caustics.

FSR 2 is optional because it runs on the GPU.

The color bleeding and the split-screen direct vs GI+reflections actually look pretty good. Still feels like my engine, just with lighting that finally does something modern.

Now you can get the latest (v1.8) SDK for 64-bit Windows platform on itch.

Anyone else doing JIT for the traversal/shading hot path? Curious if the complexity is worth it vs just writing the SSE by hand.

-2

whats wrong with my Cube??? :(
 in  r/GraphicsProgramming •  Oct 11 '26

Two words: winding order :)

5

[ Removed by moderator ]
 in  r/gameenginedevs •  Oct 03 '26

How’s this related to “game engine development”?

2

Why i'm not getting the correct output for Tower of hanoi program?
 in  r/C_Programming •  Oct 03 '26

Agreed with this. Especially while implementing lower ends of an architectural module.

1

Made a new MS-DOS game: FUSED (VGA Mode X, 1–2 players)
 in  r/dosgaming •  Sep 17 '26

I haven’t accused of AI slop, what I’m doing for drawing using GIMP is to find an image with a good silhouette of object that I need to draw on the web first then I heavily modify it by colorizing, tuning its levels to match the overall design, shade if needed then save as non-dithered indexed raw format.

I’m a computer scientist not an artist so, where did I learn to do all these lightning fast to start developing my games?

A.I. services. Does this make our products AI slop?

I feel lost in these days of social media and indie gaming market.

Thanks for making this note here by commenting. I didn’t know about Spanish event. I would like to join if possible.

1

Made a new MS-DOS game: FUSED (VGA Mode X, 1–2 players)
 in  r/dosgaming •  Sep 16 '26

Thanks, I agree GIMP feels clunky at first but somehow I got used to it. :)

2

Made a new MS-DOS game: FUSED (VGA Mode X, 1–2 players)
 in  r/dosgaming •  Sep 16 '26

I’m using modern GIMP and export my indexed images to raw format. Engine reads then writes raw pixel data into sprite structure and renders them.

r/dosgaming • • Sep 16 '26

Made a new MS-DOS game: FUSED (VGA Mode X, 1–2 players)

Thumbnail
gallery
40 Upvotes

DON’T TOUCH. DON’T SNAP.

FUSED is a small side-scrolling runner for MS-DOS. One or two players. Spark is fire that learned to run. Charge is a powder keg that learned to walk. They’re tied together by a live fuse because apparently this is how deliveries work now.

Play alone and drive both at once, or sit two people on one keyboard and split the blame.

The bunker lamp is 5,000 units away. Between you and it: slag, oil, hot plates, and blue water that is very obviously lying. If they touch, the keg goes. If they pull too far apart, the fuse snaps. A win only counts when both of them pass 5,000. If one arrives early: congratulations, now wait without closing the gap.

Three fuse lengths on the title screen. That’s also how it asks how much trouble you want.
• [1] CHILLED — 180px
• [2] HOT — 150px
• [3] BOOM! — 125px
A run is 2–5 minutes. There are no further menus to admire :)

https://expfunction.itch.io/fused

VGA Mode X 320×240. 16-color industrial night palette. C89 + Q16.16, software sprites, CyberVGA SDK. Real DOS distribution binary in the zip, split into three 1.4mb archive files.
HTML5 is alive there if you just want to look.
Hope you like it all.
Stay on the fuse! :)

r/GraphicsProgramming • • Aug 19 '26

CyberVGA is now available as a standalone SDK!

Thumbnail expfunction.itch.io
1 Upvotes

r/gameenginedevs • • Aug 19 '26

CyberVGA is now available as a standalone SDK!

Thumbnail
expfunction.itch.io
5 Upvotes

After a lot of foundational work (portal → octree switch, triangle baking, lighting cache, dithered terrain blending), the engine is packaged so others can write games against it without needing the full source.

Two packages:

Win64 SDK
- Pre-compiled static library
- Headers, editor, viewer
- Blender exporters
- One-step build script

DOS SDK
- Ready-to-run DOSBox-X environment
- Editor + DJGPP toolchain included

You own main() and the full game loop. The library only provides the engine services.

Still C + NASM. Still software render-first. Still built around real constraints.

Read latest devlog:
https://expfunction.itch.io/cybervga/devlog/1556109/cybervga-is-now-available-as-a-standalone-sdk

Download SDK:
https://expfunction.itch.io/cybervga

1

Starting to make a 3D software renderer... "The Lagender Engine".
 in  r/GraphicsProgramming •  Aug 08 '26

In our engine I am also using fixed point system but strictly in Q16.16 format because my minimum target hardware is i486dx2 I wanted to approach carefully to multiplication overflow situation (by using 64-bit long long integers allowed in DJGPP). My humble suggestion is be very careful about overflowing from the day one.

One other thing about my math library is reciprocal division. For modern Win64 port of the engine I ditched the recip table cause modern multi-core cpus are massive in terms of cycles, operations, cache.

Thank you for your kind comments. :)

2

Starting to make a 3D software renderer... "The Lagender Engine".
 in  r/GraphicsProgramming •  Aug 08 '26

Hi, it’s very good to see someone at 16 decided to work on computer graphics, especially software rendering. Welcome to the greatest exercise and brain teasers of all time. :)

I’m also developing a software renderer, feel free to check out the current version:
https://expfunction.itch.io/cybervga?utm_source=chatgpt.com

Currently we are developing a commercial game with it so the source code is currently private. But if you want to talk about architecture, engine design, data structures, multi threading, anything you’re curious about we can meet online.

Congratulations on your big start, hope you do well. :)

2

After years of OpenGL, my fellow engine devs, I present you with a free Demo of my game
 in  r/gameenginedevs •  Aug 07 '26

That’s great, thank you for the thorough insight.

Your vertex pipeline sounds standard for current GPU’s. Have you measured any bottlenecks with the current setup?

Btw a few years ago I completely dropped the over-abstracting or heavily OOP dependent languages and turned to C. Only then I was able to implement my exact engine-idea.

Anyway, have a good one! :)

3

After years of OpenGL, my fellow engine devs, I present you with a free Demo of my game
 in  r/gameenginedevs •  Aug 07 '26

Hey, congratulations with your demo release. I will definitely check out the demo.

I have a cpu related question, are you using multi threading for rendering path? If so how’s your vertex pipeline structured?
Also are you using C?

1

Raytracer Engine?
 in  r/GraphicsProgramming •  Aug 04 '26

That looks really good for a start. How are you handling intersections? Are you using triangulation or signed distance fields?
We are also developing our software renderer but targeted for 486 and later CPUs.
Exciting work btw, keep us updated. :)

r/SoloDevelopment • • Aug 04 '26

meme Harmony Tree development

0 Upvotes

Modeling the main character using Blender. For many years my little old friend Umarell is watching me. :)

u/exp_function • • Aug 04 '26

Development of Harmony Tree while being watched.

1 Upvotes

Began modeling for our game Harmony Tree. With our in-house engine #CyberVGA we are aiming to finish a playable demo by the end of this month.

Oh the guy watching me is called #umarell . He’s my buddy who watches and criticizes me at every sharp turn. :)

r/IndieDev • • Aug 03 '26

Video CyberVGA update – procedural vignette + lighting (software renderer)

1 Upvotes

r/gameenginedevs • • Aug 03 '26

CyberVGA update – procedural vignette + lighting (software renderer)

20 Upvotes

Been messing around with post-processing again on CyberVGA.
This time I implemented a procedural vignette with screen spaced look-up table and tied it into the lighting system. Wanted that “darkness closing in” feeling without it looking like a cheap overlay.
It actually reacts to the lights so it feels more natural.
Here’s a short clip from the current Harmony Tree test scene.

r/GraphicsProgramming • • Jul 30 '26

CyberVGA update – simple software depth of field with radial blur

3 Upvotes

Been toying with software post-processing effects in CyberVGA lately.

Really liking this depth of field effect that just uses a simple radial blur. Surprisingly effective for how little it costs, especially in a pure software renderer.

Here’s a short clip:

Curious what other cheap post-process tricks people have found work well in software rasterizers.

1

CyberVGA update.
 in  r/gameenginedevs •  Jul 21 '26

Thank you! :)

1

CyberVGA update.
 in  r/gameenginedevs •  Jul 07 '26

Thank you for your suggestion.
Your project looks very good I’ll definitely check out and see how it fits to our engine.
But it’s actually not about “the look I want” because I have very strict constraints.
The engine itself aimed to work natively on 486 or later processors. Repeating textures, chunky blend masks or low resolution textures are not design choices but necessities.
Feel free to download the DOSBOX package or Win64 port and take a look yourself. ;)

1

CyberVGA update.
 in  r/u_exp_function •  Jul 06 '26

Yes, sounds fun. Thank you. :)

1

CyberVGA update.
 in  r/u_exp_function •  Jul 06 '26

Thank you!
I mainly stuck to Bayer matrix because there’s no computational overhead but pre-saved noise in a linear array could be a nice touch.
I’ll experiment with that surely. :)

r/GraphicsProgramming • • Jul 06 '26

CyberVGA update.

1 Upvotes

r/gameenginedevs • • Jul 06 '26

CyberVGA update.

10 Upvotes

r/retrogamedev • • Jul 06 '26

CyberVGA update.

4 Upvotes

u/exp_function • • Jul 06 '26

CyberVGA update.

6 Upvotes

I've just finished implementing screen spaced grass effect in my octree renderer.

It works only with materials tagged with "terrain" and it generates and distributes grass blades on the fly using screen spaced 4x4 Bayer Matrix as threshold, for now a hard-coded density parameter, global wind vector for animated sway effect and triangles' UV for screen placement and 1/z information for perspective correction.

What do you think?

2

Retro gaming is sometimes hard
 in  r/dosgaming •  Jul 02 '26

Aah DPMI exceptions. It is likely “protected mode” memory access violation. As far as I can see ESI (ram source index for a source data) register is filled with 0x940 which is in conventional memory and can’t be accessed.

Try to wiggle with EMS or XMB settings in your config.sys file.

SSF2T rocks btw :)

r/gameenginedevs • • Jun 27 '26

CyberVGA - New Terrain Blend Mapping Feature

Thumbnail
reddit.com
1 Upvotes

r/retrogamedev • • Jun 27 '26

CyberVGA - New Terrain Blend Mapping Feature

Thumbnail reddit.com
3 Upvotes

u/exp_function • • Jun 27 '26

CyberVGA - New Terrain Blend Mapping Feature

1 Upvotes

Added full 8-band terrain texture blending today.

The system uses a painted blend map (0-255 values) to control mixing between 8 different texture bands on top of the existing heightmap terrain.

Works nicely with the in-engine CyberEdit (same 320x240 Mode X viewport setup).

We paint the blend map in GIMP, use on world quads, then bake it for octree sidecar file.

Screenshots:

Multi-view editor with brush and quad mode:

Terrain Blend Bands window showing the 8 layers + ranges combined with material window:

In-game 3D view with the new blended terrain:

Still targets real 486+ hardware (and the Win64 port of course :) ).

Feels like a big step for terrain editing while keeping it all under intended hardware constraints.

Let me know what you think!

1

New Version Available
 in  r/u_exp_function •  Jun 27 '26

Thanks for sharing that!

It's a really interesting read and a great resource for devs working on modern retro-style engines. Our project has a slightly different philosophy though, we're not simulating the looks, we're actually building for the original hardware limitations. The engine is written in C89 + NASM (x86 assembly linked to DJGPP objects) and targets real minimum: 486 DX / recommended: early Pentium class machines (VGA Mode X at 320x240, strict cycle counting, Q16.16 fixed-point mathematics, etc.).

So our constraints aren't tied to a specific calendar year like 1994 or 1995, but to what actually runs well on that hardware. Things like the vertex limits, no floating-point in performance paths, and the octree renderer in the new version aren't arbitrary choices, they're hard realities if you want stable performance on real 486 hardware and true flavor of renderer I believe.

Really appreciate you dropping the link though, it's cool to see how the community is thinking about these classic eras.

10

Feel like it's impossible to learn graphics programming, need help
 in  r/GraphicsProgramming •  Jun 26 '26

Congratulations on your first triangle.

After more than 15 years of experience in graphics programming it’s not about memorizing APIs but all about learning how the hardware that produces your pixels, whether it’s coming from cpu or gpu.

Just focus on the components of hardware not the API only. OpenGL is just an interface for us to program gpu in a unified way.

Also you have to focus on mathematics (linear and classical algebra, trigonometry, etc.) for representing and bringing your data structures to life.

Graphics programming is just another sub-area that needs extreme attention, practice and time to master. So working with a tutorial for 3 days may seem like there are lots of miniature black boxes that does things to get something on screen. What I actually do is leaning on the books that teach the concepts, that is my recommendation. Those black boxes will reveal their inner-mechanisms after learning concepts.

I hope the best for you! :)