r/computergraphics • • 19d ago

A raytracer made in Scratch, with refraction, reflections, and soft shadows

Post image
54 Upvotes

I've been working on this 3D raytracer using Scratch blocks. The scene has refracting glass, chrome and gold reflections, soft shadows, and fog. Moving the camera starts a coarse render that progressively sharpens.

The stage is 480 x 360. The anti-aliasing mode uses four rays per pixel; the screenshot is from that mode.

You can try it and inspect the blocks here: https://scratch.mit.edu/projects/1437715094/

I'm trying to make it faster. What would you profile or simplify first in a renderer running in an environment like Scratch? Feedback on the materials is welcome too.


r/computergraphics • • 19d ago

Memory Decay

4 Upvotes

made with TouchDesigner + Hex Composer


r/computergraphics • • 18d ago

What’s the best use of 3D you’ve seen on a real website, not a portfolio or tech demo?

Thumbnail reddit.com
0 Upvotes

r/computergraphics • • 19d ago

420 Bulb: a Mandelbulb folded into a kaleidoscope, raymarched live in WebGL2

Post image
0 Upvotes

This is one Mandelbulb layer, raymarched live in a WebGL2 shader. There are no videos or pre-rendered frames. Everything is computed per pixel on your GPU.

**What it's made of**

- **Effect:** Mandelbulb, with the power set to about 5.0 (the classic bulb is 8) and a detail level of 5.

- **Motion:** the spin wanders between 0.11 and 0.35, so it doesn't loop. With audio on, each bass hit kicks it to the top of that range and it falls back.

- **Colour:** palette cycling is on, so it morphs to a new random palette every second or two. The colours change fast.

- **Filter chain:** Wedge fold (mirrors the bulb into 7 kaleidoscope segments, at a wandering angle), then Chromatic aberration (the colour fringing), then Bloom for the glow.

Open it here: https://kicktro.com/#c=Dp0RwrU9VNB0EfgxrPAq

Every value in the scene is a slider you can change, and you can arm any slider to react to the beat from your mic or system audio. It runs in the browser, with nothing to install. A few seconds in it asks for an audio source, which you can skip; the audio is only analysed in your browser, nothing is recorded or uploaded.


r/computergraphics • • 20d ago

If you could wish for anything in a render engine – what would it be?

Post image
16 Upvotes

Hi everyone!

I’m building my own render/simulation engine (a path tracer called PrismForge), and before I decide what to work on next, I’d love to hear what you would wish for.

It can be anything:

  • a big feature you’ve always wanted
  • a tiny thing that annoys you every single time
  • something very specific, like “I want fog that reacts to my car’s headlights”
  • a workflow or a feeling, like “I just want to press one button and get a nice result without too much complicated jibberish”
  • a simple, but nice conveniece feature

No wish is too small, too weird or too niche. Feel free to be as oddly specific as you want!

Thanks!


r/computergraphics • • 19d ago

Bloom Sketches - Impasto oil painting demo - art by me

1 Upvotes

r/computergraphics • • 21d ago

Our Home.

Thumbnail
gallery
34 Upvotes

Home. Made in Blender


r/computergraphics • • 21d ago

Apollo, a 4K seamless loop I made

9 Upvotes

r/computergraphics • • 22d ago

I simulated glass across desktop, iOS and smart glasses, and documented this journey.

Post image
2 Upvotes

r/computergraphics • • 22d ago

R&D / Vellum + Rendered in Houdini Cycles

7 Upvotes

r/computergraphics • • 22d ago

I designed my own Lego set. (Blender) Does it look realistic?

Post image
6 Upvotes

r/computergraphics • • 23d ago

Visitation, a 4K seamless loop I made

3 Upvotes

r/computergraphics • • 23d ago

Naughty Dog Style FrameParams

3 Upvotes

r/computergraphics • • 23d ago

Is 3D on websites actually worth it, or is it mostly a gimmick?

3 Upvotes

I keep seeing more sites with 3D product viewers, interactive hero sections and scroll animations built with three.js and similar.

Some of them feel amazing. Others just make the page slow and annoying on my phone.

For those who’ve built or used them:

  • Where has 3D actually helped (sales, engagement, understanding a product)?
  • Where did it feel like a waste of effort?
  • What’s the one thing that separates a good 3D site from a bad one?

Curious where people land on this.


r/computergraphics • • 23d ago

What if Graphify was displayed as an anatomically accurate brain?

Thumbnail gallery
0 Upvotes

r/computergraphics • • 24d ago

I turned my desktop into a head-tracked window onto a 3D world

47 Upvotes

Built in Unity: your webcam tracks your head and shifts the scene’s perspective as you move. I’m building it as Holoscape wishlist on Steam.


r/computergraphics • • 23d ago

Bloom Sketches - Oil painting demo

3 Upvotes

Made with Bloom Sketches - Oil and watercolor painting app that I have been working on for some time.


r/computergraphics • • 24d ago

Building and Rendering a Space Station in Scheme..

Thumbnail
youtu.be
1 Upvotes

r/computergraphics • • 24d ago

Did Gary Huber and I invent screen-space reflections in 1995?

Thumbnail
alphapixeldev.com
1 Upvotes

I recently realized that while I knew we had invented something new in the 90s, and kept it close to our chest, it was actually probably a VERY long time before anyone else ever reinvented screen-space reflections.

LONG article, with source code and graphics references.

Disclosure: Yes, I did use AI tools to help me write this, especially to author the diagrams and to explain some things and find references that frankly, it did a better job than I could on. The content is mine and human, just like the original algorithms. This article is the product of several weeks of research, digging and writing work on and off, so it's not a one-shot "slop" product.


r/computergraphics • • 26d ago

I replaced the in-scattering in a cloud raymarch with a tiny neural network, then checked it against a path tracer

108 Upvotes

Light inside a cloud is expensive to get right, so games use a few simple formulas tuned until it looks good. I wanted to see how far off that really is, and whether a small network could do better.

I wrote a path tracer as the reference, trained a network on it in Python, and ran it in plain HLSL in Unity 6. It replaces one thing, the light scattered toward the camera at each step. Everything else in the raymarch stays the same.

Then I moved the sun from behind the camera to behind the cloud and scored both against the path tracer, where 1.00 is correct. The classic lighting goes from 0.21 to 2.17. The network stays between 0.90 and 1.01 until you look straight into the sun, where it reaches 1.20. It costs about 20% more GPU time.

I had a great time building this, and I think we've barely started finding out what tiny networks can do inside a shader. If you try one yourself, I'd love to see what you make!

https://charlesgrassi.dev/blog/neural-volumetric-clouds/


r/computergraphics • • 25d ago

The Forest | Cover Art (3ds Max + V-Ray)

Thumbnail gallery
1 Upvotes

r/computergraphics • • 25d ago

How to optimize high dimensional axis aligned box slicing?

1 Upvotes

So the basic starting point is a ray, find minimum and maximum and then maximum of minimums and minimum of maximums in travel, that finds one pixel. I might be able to go line of pixels by line, measuring how far it needs to move on the line from the two edges then going directly to the start of shape, finding the outline. So how is this defined? Euclidean higher dimensions with slicing, so we have a view point and a view plane, if an object is past the view plane and a ray to the view point exactly passes the view plane, then it is viewed, otherwise it is not viewed.

I want triangles of this and the full representation of higher dimensional boxes requires about the number of dimensions factorial or 2 to the power of number of dimensions, both huge. With this at least each ray can be like the number of dimensions, no power or factorial. I am trying to do it with opacity. If it were a solid color I could triangulate the bounding lines and be done. I can also do like on a line edge of the box where a line found starts and ends, like get an initial point, get another point, use those to get ends of validity. I would have to do this kind of thing per box and one dimension can function like a normal z dimension.

So far the algorithm is basically per line of pixels, go from one end to the first valid, get second point, determine line ends, from far end, get second point, continue until far end of shape or meet in the middle. After that, connect the bounds and ends to form lines and triangulate based on lines. Note that the boxes are axis aligned but the view may not be. Still not sure if this can be improved and linear algebra on 1000d becomes bad for performance, thoughts? All this parallel on the GPU, like per dimension mostly and per thing that can be separated. I can also chunk minimums and maximums for parallelism. I also may have to use the maximum of the travel to the object or travel to the pixel. I am just asking about what can be optimized. X E.


r/computergraphics • • 26d ago

Fallingwater Work-in-Progress #2

Post image
7 Upvotes

r/computergraphics • • 26d ago

[OptiX 9 / CUDA] Real-Time Path Tracing on a 4060 Laptop: 2.2 Gigarays/s, 256 SPP & Solving the Crevice Noise Trap

Thumbnail
reddit.com
0 Upvotes