285
submitted 1 year ago by tibor@pawb.social to c/memes@lemmy.ml
top 7 comments
sorted by: hot top controversial new old
[-] wallmenis@lemmy.one 11 points 1 year ago

Actually there is no rendering at all!

[-] Simplesyrup@lemmy.ml 5 points 1 year ago

I always wounderd what games do now? Thought they just render the entire play space that you are in cuz the developers are too lazy to make games optimized

[-] Aceticon@lemmy.world 5 points 1 year ago* (last edited 1 year ago)

At least frameworks like Unity and Unreal will just, automatically if a model is entirelly outside the camera view frostum, not at all send those vertices to the Graphics Card to be rendered. If I remember it correctly a set of bounds is calculated (which can be pretty simple: look at all 3D model vertices and get the max X, max Y and max Z) and used to determine if the model is visible or not visible, a method that can only produce mistakes in the too pessimistic direction (i.e. treat as visible something which in practice is not) than optimistic, a technique which goes all the way back to the engine ID Software made and used for Doom.

So if using a framework there really is no "developers work" involved as its done at the level of the framework itself (i.e. the libraries used) - in Unity, for example, it's literally checking or unchecking an option.

Further, at the graphics shader level itself you can further discard triangles (so, elements of a 3D model rather than the whole model) if they are outside the camera view frostum.

Last but not least the GPU itself won't even try to run the fragments step (the last part of processing were the color for each pixel is calculated) outside the camera rendering plane (which is typically the screen, but virtual "cameras" are also used for other stuff, like shadow casting).

[-] Simplesyrup@lemmy.ml 1 points 1 year ago

Would like to see it been done with another camera that looks at the ther one, while the world is unloading around them as the cam looks around, also my brain is fried from reading all of that 💀

[-] Aceticon@lemmy.world 2 points 1 year ago

It's all just Maths, specifically, trignometry.

Here is a video example of somebody configuring it in Unity which also shows the results.

And here is a tutorial about it for Unreal. The pictures themselves illustrate the whole thing pretty well.

[-] Silviecat44@aussie.zone 6 points 1 year ago

This happens even in mario 64

[-] bjoern_tantau@swg-empire.de 5 points 1 year ago

Something something quantum physics.

load more comments
view more: next ›
this post was submitted on 11 Jul 2023
285 points (97.0% liked)

Memes

45656 readers
716 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS