r/computergraphics • • Jan 04 '15

New to r/CG? Graphics cards or other PC hardware questions?

22 Upvotes

Unless it's specifically related to CG, /r/buildapc might be a better bet if you're curious as to which GPU to get and other build-related questions.

Keep a lookout for an update to the FAQ soon. Thanks!

  • Hydeout

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 • • 1d ago

General realtime ray tracing on Intel HD Graphics 5000.

21 Upvotes

Fireflies sure are ugly.

Running at 512x288 reconstructed to 800x450 (5x faster without temporal upsampling)

GPU: Intel HD Graphics 5000

CPU: i5-4260U

8GB of shared DDR3 memory.

Same renderer I personally adapted to Quake.


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!


r/computergraphics • • 1d ago

Core Memory, 4K seamless

17 Upvotes

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 • • 1d ago

Tree growing studies

17 Upvotes

I do landscape photography and started thinking how to simulated tree growing dynamics from some of my pictures. Started by recognizing the tree from one fork in its trunk, but I didnt know what that fork should look like when the tree was knee high. I ended up building a little tree lab to work backwards from there.

The basic growth solver does two passes each season. First, every bud checks how much light it can reach in a 3D grid. I add those numbers up from the tips back to the trunk. Then I go the other way and divide up the growth at each fork. Say the main shoot and a side bud get equal light. With the bias at 0.55 the main shoot gets 55% and the side gets 45%. That sounds like a tiny preference until you repeat it at every fork for 20 seasons. You start to see it in the outline of the whole tree.

Wind took a seperate solver. At one point a little twig and a bough thicker than my leg both bent about 14 degrees in the same gustt. The tree looked a bit like rubber. I made each joint acts like a damped spring instead where a long thin branch gives more, and when it bends it carries all the twigs growing off it.

These run live (not prerendered) in Metal for TideGlass, the Mac app I make for my second monitor. Music sets the pace of growth and stirs up the wind, and the entire world follows.

Happy to answer any questions about the tech and what not.


r/computergraphics • • 1d ago

Fully neurally rendered 3D scene, 50+ FPS at 690 scattered assets while moving and rotating

12 Upvotes

I built a 3D scene with all assets being entirely neurally rendered using my model architecture for Model 1 of my project (Ik it looks crap, and that is my next target to fix). At 1182*982 viewport resolution and 690 assets scattered across 4 bands, it sustained 50+ FPS.

Each individual sprite is difficult to render, and if I were to render each one in front of the camera at each frame, it would be like 5 FPS. So, I do two things:

  1. Rendering only when required: each asset is rendered again strictly when it needs to, so almost no re-renders while rotating or still. Moving still creates re-renders, and that was targeted in point 2.
  2. Rendering queues: There is a fixed frame time in which the max possible sprites are rendered. It is not a fixed sprite number, as that doesn't take into account sprite resolution.

It scales with visible sprite count * visible sprite resolution.

For more details, you can check out this repo.

My next priority is to get it looking visually good, and I am thinking of first trying to make the edges crisp and texture crisp using DLSS SR to upscale individual sprites. What do you guys think of that? Any techniques I can try to make the edges better?

AI Disclosure: AI was used to create the GUI on the left side of the video.


r/computergraphics • • 1d ago

My modified version of CryEngine.Enhanced asset export tool.

Thumbnail
youtube.com
1 Upvotes

I recently got completely fed up with other game engines, so I decided to create my own. I requested authorization from Crytek to download their engine's source code, which I’m now modifying to serve as my primary engine.

This is the first tool I’ve developed—currently in the beta phase—designed to resolve a major headache: exporting assets into CryEngine. I timed my own workflow and analyzed various videos to determine the average time required to export different types of assets.

These include standard materials, general assets, assets with alpha channels, vegetation (with LODs and billboards), and specialized assets (such as fabric with alpha and vertex paint). I found that the process takes anywhere from 5 to 120 minutes—and that’s assuming the assets, textures, and LODs are already prepared; this timeframe accounts solely for the setup process.

With this in mind, I decided to leverage the Quixel asset library. Each asset there comes with a JSON file containing valuable data—such as color, roughness values, and LOD information—which I’ve used to build this tool. It’s still quite slow; in four minutes, I only managed to export nine assets (eight plants, each with three LODs, and one rock).

The compilation time is currently too long; my goal is to reduce it to a maximum of 15 seconds, all without needing to manually navigate through folders.

Another issue, visible at the end of the video, concerns Quixel’s plant assets. They include billboards as LODs, which require a different material. Since these billboards use a different mesh and distinct UV mapping, it leads to the problem mentioned earlier: applying the same texture to an asset that has different UV coordinates.

Still, this is a significant achievement—especially the ability to simply select a folder rather than having to manually pick out individual assets.

There is still plenty of work to be done to refine everything. ...and to find more pleasant solutions—even just for faster compilation, or at least having a progress bar instead of that horrible spinning circle that prevents you from clicking on anything for fear of disrupting the program. It’s a major achievement for me, having spent years suffering through incompetent engines and lousy software.

I also ported CryEngine from VS19 to VS22 to take advantage of more modern solutions; that was the most labor-intensive part.


r/computergraphics • • 1d ago

Procedural foliage growth with MilES, the FX tool we're building for Blender

2 Upvotes

Simulated with MilES, a node-based, GPU-accelerated FX multi-solver we're building for Blender. Breakdown in the comments.


r/computergraphics • • 2d ago

Fragmentshader-raycaster renders from quite a few years ago

Thumbnail
gallery
17 Upvotes

Heyo!

Searched through my USB-sticks to find a fragmentshader-raycaster I made like at the end of the 2010s. The actual version, I was looking for, is nowhere to be found though, which likely means, it is (or was) on that one SSD, that seems bricked and refuses to boot, or do anything at all. ..Apparently SSDs can get damaged by laying around..

But not much is lost, iirc.

Those images are from different earlier versions, rendered just yesterday.

Those are mostly tests of different techniques - the usual suspects, like texture-materials, bump-maps, reflections (ofc), different shadows, fog, or blur.

And it was a whole lot of fun programming this by hand!

Lastly I'd like to ask: Which image causes brain-tickling the most to you?

Cheers


r/computergraphics • • 2d ago

P0WER - A world I built because I couldn't film it.

Thumbnail
youtu.be
0 Upvotes

An experiment in 3D, VFX and sound. Shot on a BMPCC 6K and manipulated into something that doesn't quite exist in real life.


r/computergraphics • • 3d ago

Fully Neurally Rendered object - ~2.7 ms average GPU frame time (256*256)

37 Upvotes

Fully neurally rendered asset (RGB, Normals, and Depth) rendered at an average of ~2.7 ms frame time on 8 GB RTX 5070 Laptop GPU by a custom model architecture in custom inference engine made with Rust, TensorRT, and CUDA kernels. Check out the README in this repo
for details. I spent months working on it, the main bottleneck being compute for training, which I solved by making a custom data flow pipeline (the details of which can also be found in the repo) that allowed me to train these models locally. Do you think such tech would be able to make it to mainstream game dev?


r/computergraphics • • 4d ago

Made a seamless loop called Conductive, would love some feedback on the lighting

10 Upvotes

r/computergraphics • • 3d ago

Who said 8GB VRAM isn't enough? Thoughts? 4.7 billion triangles in 4K on an 8GB RTX 2060 Super. Thoughts?

Post image
0 Upvotes

r/computergraphics • • 4d ago

New Planetary Motion Graphics Tool - terrix.earth

Post image
2 Upvotes

r/computergraphics • • 5d ago

I made a video on how 3D Rendering actually works

Thumbnail
youtu.be
6 Upvotes

r/computergraphics • • 5d ago

How should I prepare concept art so AI turns it into a clean 3D model?

0 Upvotes

I've been exploring AI-assisted 3D modeling and I'm curious about how the quality of concept art affects the final 3D output.

One tool I've come across is tripo Studio, which can generate 3D models from images. It got me thinking about how much preparation is needed before using concept art as a reference.

Things like clear silhouettes, consistent proportions, visible details and multiple reference angles seem important when trying to get a usable model.

I'm particularly interested in a few things:

- Does a clean, simple sketch usually produce better geometry than highly detailed artwork?

- How important are front, side and back views when generating a 3D model?

- What kind of manual cleanup is usually needed after generation?

- Are there common issues with topology or missing details that need fixing?

I'd be interested in hearing how other artists approach this workflow and what techniques give them better results.

Disclosure: I'm affiliated with tripo Studio.


r/computergraphics • • 6d ago

Jungle Temple

1 Upvotes

r/computergraphics • • 6d ago

Metal PathTracer v4.0.0 public release

Thumbnail gallery
2 Upvotes

r/computergraphics • • 7d ago

How do I effectively get rid of fireflies?

15 Upvotes

Graphics hardware's Intel HD Graphics 5000, provided as context for an appropriate solution. Thanks