r/computergraphics • • 17h ago

Custom Engine. Heightmap terrain, sane mesh sizes and GPU friendly coding.

Post image
8 Upvotes

I love graphics dev and the raw level of what's going on and I've been developing my Early Access game using an Intel GPU even though Nvidia and AMD have more market share.

I don't know what happen to games and graphics industry but it looks like custom engines and actual graphics optimization have gone the way of the dodo or considered boomer talk.

So let's talk about this screenshot that has been regarded as everything from AI SLOP to respectable solo dev.

What you are looking at?
Well it's Windows, C++ / OpenGL game / code base / not really engine coded from scratch.

First Terrain:
I'm currently using instanced 17x17 vertex patch with VTF(Vertex Texture Fetch)
Height Values are pulled using VTF in the vertex shader. Normal is approximated.
16x16 sized patches with little over 300 verts seem very friendly across most gpus.
The patches are culled using a fast sphere frustum check
if the camera moves enough culling and frustum check is updated.

Next: The Objects. For now my game objects cost 1 draw call each which isnt as expensive as some think because Modern OpenGL made improvements before the Vulkan exodus.
The ore / resources are practical geometry count without LOD at the moment. I've been tempted to replace with imposters or sprites after a certain distance.

Next: The Shader or rendering model
Nothing fancy here. Just good old fashion forward rendering with moment of fancy BRDF / GGX slop
Textures are DXT5 Diffuse, normal, and RMO. Just good old block compression for simplicity and development because it's much easier for me as a solo developer to load my materials into simple, stable and reliable texture array. YES I COULD use 2 channel compression for normal but I wont for now.
We are gonna do some Leroy Jankins good old dirty DXT5 channel packing where Normal R+G, Roughness, and Metalic get packed into a single DXT5 texture.
Why? Because I respect the fact GPU bandwidth can be an issue and I don't quite have my brain wrapped around modern compression methods.

Next: The GUI
UI is live mode gui. All text, meters, icons, etc are submitted per frame every frame.

Well I'll copy past my description from a previous post and steam page.
Not sure what else to say or what to do next other than finish my refactor and get back to the basic gameplay I had.

After a recent refactor, my game is back in a proof of concept Tech Demo stage.
#Startup, Company Logo, Game Start Menu.
#Direct load into the working map when player hits start.
#First person camera when walking.
#Third person camera when in a vehicle.
#Player can walk, run, jump, strafe, build bases and smash rocks.
#Hotkey driven interface with intuitive control. i for inventory, b for build. etc.
#Day Cycle, Survival Stats, and coarse Survival Game foundation.
#Player can collect dirt from the terrain any where any time.
#65k x 65k (about 20x20km or 12x12miles) terrain area with recent update.
#Stackable items and basic rough UI inventory system.

Medusa Frontier Engine / Framework / code
Small codebase, lean windows/ C++ OpenGL code framework that compiles in seconds.
Efficient height map terrain that can now go out to 65,000 units without precision loss.
No nonsense C++ game loop and Forward rendering system.
Mesh loading and direct export from blender to a working file my game can load.
Lean GLSL shaders that stay optimized or clean and simple as possible.
PBR and GGX quality surface materials.
Texture Arrays to make selecting textures per object simple.
Almost no external Libraries or dependencies.
I use one external library thing for Sound.


r/computergraphics • • 19h ago

Flatfold - custom renderer with AO / GI / Reflections / Refraction

4 Upvotes

Flatfold is a custom renderer I've created with some AI assistance for boilerplate and testing. Video is running with WebGL 2 inside Chrome.

Some features:

  • Lighting: directional, spot and point lights, emissive materials
  • Shadows: pixel perfect sharp shadows, coloured shadows
  • Reflections: infinite reflections, including light
  • Refraction: index of refraction, caustics, Snell's law
  • Portals: see another part of the scene through, supports all features including lighting, reflection, refraction, etc.
  • Baked AO: static lightmap using raycasting built on load
  • Baked GI: static lightmap relightable in realtime, including emissive materials

Future extensions:

  • Specular
  • Volumetric lighting
  • Frosted/glossy surfaces

r/computergraphics • • 19h ago

Can Information-Dense Pixel Sequences Improve Neural Image Reconstruction? — A PerfectEngine Research Proposal

Thumbnail
zenodo.org
1 Upvotes

Article: https://zenodo.org/records/24714855 GitHub: https://github.com/babakkarimib/perfectengine

Neural reconstruction systems use rendered images together with temporal and geometric signals to synthesize higher-resolution images and intermediate frames. This paper proposes a research direction for PerfectEngine, an experimental non-polygon-based graphics engine implemented in Rust using WGPU and SDL2.

The project's public README describes a two-dimensional pixel concept with three-dimensional properties, overlap-based rendering described as being akin to splatting, and a ray-tracing layer.

We investigate whether an explicitly represented, time-indexed sequence of renderer samples could preserve or expose additional information useful to neural super-resolution and frame generation. We distinguish this proposed abstraction from capabilities documented in the current repository and from established point-based and splatting methods.

We define incremental task-conditioned information density, formulate separate spatial and temporal hypotheses, describe a compatibility mapping to conventional image-space resources, and specify a falsifiable evaluation protocol.

This is a research proposal: it reports no measured improvement, no DLSS integration, and no hardware results. Its immediate contribution is a formal research question, a candidate data model, and an evaluation plan for subsequent implementation.

Acknowledgment of AI-assisted writing: A generative AI assistant was used to help prepare and edit the manuscript text. The author is responsible for reviewing the manuscript, verifying its technical claims and references, and approving the final version.

I'd appreciate technical feedback, particularly on the proposed sample representation, its potential usefulness for neural reconstruction, and the evaluation methodology.


r/computergraphics • • 21h ago

We're open-sourcing BROOM, a Python toolkit for skeletal animation and motion optimization

4 Upvotes

Hey everyone!

At AvaCapo, we've been developing BROOM, an internal Python library for working with skeletal motion data.

We're now open-sourcing it.

BROOM brings together several motion processing capabilities:

  • BVH parsing and editing
  • Forward and inverse kinematics (FK/IK)
  • Motion interpolation, blending, and resampling
  • Animation retargeting between skeletons
  • Space-time optimization with multiple constraints
  • Root motion manipulation
  • Interactive 3D visualization

The goal is to make experimenting with skeletal animation and motion processing algorithms easier directly in Python.

GitHub: https://github.com/AvaCapo/broom

The project is under active development. We'd love to hear your thoughts and suggestions!