r/GraphicsProgramming • • 1h ago

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

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.

0 Upvotes

13 comments sorted by

•

u/AutoModerator 1h ago

Recently updated rules. Please check that your post is in compliance with Rules 1, 4, 5, and 6 on the sidebar. TL;DR:

  • No showcases.
  • Disclose AI usage in post or project.
  • Present a topic to talk about, e.g. how something works.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

5

u/VictoryMotel 1h ago

What do you mean by neurally rendered?

1

u/ConsistentFox567 1h ago

there are no triangles in this scene, unlike normal triangle rasterisation rendering. each individual asset is drawn by a neural network running locally that can generalise to any 3d asset

2

u/VictoryMotel 1h ago

So what is the actual data?

2

u/ConsistentFox567 1h ago

input is 3 pre rendered g buffers out of a set of 118 per object and an angle coordinate and output is the g buffers of the object from that exact angle. you can check out model 1 in the repo for details. thanks for expressing interest

1

u/DuskelAskel 34m ago

So, it's a bunch of angle G Buffer that are generalized to any GBuffer by the model ?

That's a cool idea ! I'm curious of the cost in vram of such model for each object ? Could it be a good solution for imposters or LOD replacement for example ?

1

u/ConsistentFox567 29m ago

yes! i can’t give you an exact number yet for vram for each model, but the model itself is pretty small at 0.42M parameters and it’s per asset data is currently about 5 MB compressed (only the required views are decompressed directly on the gpu via nvcomp). this particular model was originally meant for impostors, but the results were promising so i went on engineering it. compared to runtime impostors of similar quality, it is slightly computationally cheaper. working on benchmarking it fully so i can supply the numbers!

1

u/VictoryMotel 17m ago

How much data does it take for each sprite to do the angle based lookup?

How does lighting work?

1

u/ConsistentFox567 14m ago

118 G-Buffers per asset, ~80 MB uncompressed, ~5 MB compressed (the used format), about 10 seconds to process an asset completely from GLB to usable. Lighting currently isn’t that advanced, so can’t tell rn. working on it though

-1

u/Hollistanner 40m ago

A different way of representing triangles

1

u/ConsistentFox567 28m ago

there are 0 rendered triangles in the scene btw😭 it is a fundamentally different idea

1

u/Macaroon-Guilty 1h ago

Ive never seen anything like seems like something that could take off

1

u/ConsistentFox567 1h ago

thank you so much!!!!