▲ 670 r/GraphicsProgramming+1 crossposts

From Zero to Understanding Rasterization

u/egehancry — 10 days ago
▲ 1.4k r/DefendingAI+4 crossposts

Training an AI to Drive with Natural Selection

I love making hard things intuitive. I hope you enjoy this one!

Let me know if you have any questions.

This technique is called neuroevolution: training a neural network through evolutionary methods like selection and mutation, without gradient descent.

https://en.wikipedia.org/wiki/Neuroevolution

u/egehancry — 5 days ago

From Zero to Understanding Ray Tracing - Part 3 (reflections)

u/egehancry — 14 days ago
▲ 586 r/GraphicsProgramming+1 crossposts

From Zero to Understanding Ray Tracing - Part 2

I posted the part 1 two months ago and got a great reaction!

https://www.reddit.com/r/GraphicsProgramming/comments/1uxpi1o/from_zero_to_understanding_ray_tracing/

Here is the next one. It teaches:

  • What ray tracing fundamentally is.
  • The basic idea behind shading: surfaces are brighter when light hits them more directly, and darker when it hits at a wider angle.
  • Shadows.

Let me know what you think!

u/egehancry — 16 days ago
▲ 0 r/manim+1 crossposts

Long-form Manim lecture videos generated by LLMs

A lot of people have attempted to make Manim lecture videos with AI. It’s a very difficult problem because LLMs cannot write high-quality Manim code.

But if done, we could have high-quality lecture videos for every subject on earth, personalized to each student.

We made something. The results look very promising.

Instead of asking the LLM to write Manim code, we invented a new API and implemented it on top of Manim. The LLM writes against our API, which is then deterministically compiled to Manim.

Every video you see on this website was generated by an LLM in a single shot using this system.

On correctness: LLMs may make mistakes. But these videos are code sitting in our repository, and we can maintain them. Every report and review becomes a fix in the source, and everyone who watches after that gets the corrected lecture.

Every recorded lecture on the internet is stuck with its mistakes. Ours will continuously improve.

Also there is LLM integration for each video! The chat knows everything about the video.

There is a longer write-up at the bottom of the page.

Happy to answer any questions.

academa.ai
u/egehancry — 2 months ago
▲ 0 r/edtech

Generating Long-Form STEM Lecture Videos with AI

Lecture videos are incredibly valuable. Khan Academy, Coursera, Udemy, YouTube, and others have already proven that.

The next natural step is to build AI that can create those videos on any subject, personalized for each learner and available in any language.

But it has to work properly. The videos need to be genuinely high quality, not AI slop. With the capabilities of today’s models, it feels like we’re ready to get there.

What do you think? What’s your take on this idea?

reddit.com
u/egehancry — 2 months ago

From Zero to Understanding Ray Tracing

Do you think a video like this could help someone with no graphics background intuitively understand ray tracing?

My goal is to explain the core idea visually before introducing any math or technical details. I could expand it with reflections, different materials, and arbitrary 3D objects.

Does this feel like it would "click" for a complete beginner? What would you add or change?

u/egehancry — 3 months ago
▲ 476 r/webgpu+3 crossposts

Ported Manim to Rust + WebGPU: runs in browser with real time preview

TL;DR: studio.academa.ai - a Manim editor with real-time preview (free to use, with free video exports) and an AI agent (paid feature).

Manim videos are great, but Manim itself is a real hassle to install. And then polishing the videos is painful too, because setting up real-time preview is hard and rendering takes a long time.

So we reimplemented Manim CE from scratch in Rust, on top of wgpu, with GPU acceleration. It compiles to WebAssembly and runs in the browser over WebGPU. We call it manimx, and the goal is 1:1 API compatibility with Manim CE.

Because it's fast and runs in the browser, we were finally able to build a true live preview: you type code, and the preview updates almost instantly.

The full Manim editor, including video exports at any resolution, is free.

On top of that, there's an AI agent that writes Manim code for you. It can render the video and inspect the result in the background, so it iterates on what it actually sees instead of generating code blindly. Because of this, it spends much longer on each scene, and the output is better than other agents out there.

Happy to answer any questions in the comments.

u/egehancry — 4 months ago
▲ 31 r/manim

Manim CE, rewritten in Rust + WebGPU, running in the browser with live preview

TL;DR: studio.academa.ai, a Manim editor with real-time preview and an AI agent.

Every couple of weeks, someone here asks: "How do I get real-time preview in Manim CE?" The answer is: it's really hard to do with Manim CE.

So we reimplemented Manim CE from scratch in Rust, on top of wgpu, with GPU acceleration. It compiles to WebAssembly and runs in the browser over WebGPU. We call it manimx. The goal is 1:1 API compatibility with Manim CE.

Because it's fast and runs in the browser, we could finally build a true live preview: you type code, and the preview updates very quickly.

You can try it without signing up. Click "Get Started" and edit the Manim code to see the preview change.

On top of that, there's an AI agent that writes Manim code for you. It can render the video and inspect it in the background, so it iterates on what it sees instead of generating code blindly. As a result, it spends much longer on each scene, and the output is better than other agents out there.

Happy to answer anything in the comments, including the hard questions.

u/egehancry — 4 months ago