Re: Misc: Applications of small floating point formats.

Liste des GroupesRevenir à c arch 
Sujet : Re: Misc: Applications of small floating point formats.
De : chris.m.thomasson.1 (at) *nospam* gmail.com (Chris M. Thomasson)
Groupes : comp.arch
Date : 03. Aug 2024, 22:33:01
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v8m7me$3k5d7$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
User-Agent : Mozilla Thunderbird
On 8/3/2024 1:29 PM, BGB wrote:
On 8/3/2024 1:44 PM, Chris M. Thomasson wrote:
On 8/2/2024 10:33 PM, Lawrence D'Oliveiro wrote:
On Fri, 2 Aug 2024 21:14:33 -0500, BGB wrote:
>
On 8/2/2024 8:35 PM, Lawrence D'Oliveiro wrote:
>
On Fri, 2 Aug 2024 17:18:17 -0700, Chris M. Thomasson wrote:
>
Taking a screen shot? glReadPixels is okay, right?
>
That means grabbing the whole screen, regardless of what else it might
be showing, assuming your window it not occluded, and it further
assumes you have a screen to grab from. This kind of precludes running
the renderer as a batch, background process.
>
The glReadPixels call doesn't grab an image from the OS desktop, but
rather from one of the internal framebuffers associated with the OpenGL
context.
>
Still lousy performance, though. That is simply not considered a serious
usage scenario for OpenGL. And not for any other on-screen 3D API, as far
as I’m aware.
>
Afaict, it's fine for taking a snapshot. I used it to create the following animation as a series of frames:
>
Fractal Boom Box:
>
https://youtu.be/n13GHyYEfLA
 Yeah.
 If you want it for a screenshot or final rendered output, it is fine.
 If you want to fetch images to feed back into textures, maybe not so great performance-wise, but if offline rendering and one doesn't have FBOs, it is fine...
 Like, one doesn't need to try to hold 60 fps for their batch renderer or something.
:^) Iirc, taking the screenshots per frame to create an image stack, well, it reduced the fps for my scene...

Only obvious drawbacks I see is mostly:
One needs an OpenGL implementation (that works to some acceptable level);
It is not a raytracer, if one wants/cares about raytracing.
One can implement a raytracer in OpenGL for sure, not easy, but doable. I think DirectX 12 has support for it directly... Anyway, a fun part is using a fragment shader to do some distance estimated ray marching in the GPU. I remember that the PlayStation 3 had a "special version" of OpenGL. PS5 has something called GNMX. Never used it before.

But, as I see it, which is "better" more depends on desired use-case:
   Want "photorealism" or a "realistic" look,
     use a raytracer/path-tracer;
   Want something cartoon like, rasterization makes sense.
     And, as I see it, may actually be preferable in terms of aesthetics.
 If you want bright, brightly colored, and glossy, rasterization gives this effect easily. If you want something dimly lit and "grungy", then raytracing is a good fit.
  But, if one wants stylized cartoon-like humanoid characters in a raytraced setting, it looks a bit, off.
  And, likewise, if one wants rasterization, OpenGL serves this use case well.
 And, if you want a raytracer, look elsewhere.
I think compute shaders can be used for some raytracing...
:^)

Date Sujet#  Auteur
1 Aug 24 * Misc: Applications of small floating point formats.47BGB
1 Aug 24 +* Re: Misc: Applications of small floating point formats.12MitchAlsup1
1 Aug 24 i+- Re: Misc: Applications of small floating point formats.1BGB
2 Aug 24 i+- Re: Misc: Applications of small floating point formats.1MitchAlsup1
2 Aug 24 i+* Re: Misc: Applications of small floating point formats.2Thomas Koenig
2 Aug 24 ii`- Re: Misc: Applications of small floating point formats.1BGB
3 Aug 24 i`* Re: Misc: Applications of small floating point formats.7Terje Mathisen
3 Aug 24 i +- Re: Misc: Applications of small floating point formats.1BGB
3 Aug 24 i `* Re: Misc: Applications of small floating point formats.5Lawrence D'Oliveiro
5 Aug 24 i  `* Re: Misc: Applications of small floating point formats.4George Neuner
6 Aug 24 i   `* Re: Misc: Applications of small floating point formats.3BGB-Alt
6 Aug 24 i    `* Re: Misc: Applications of small floating point formats.2George Neuner
6 Aug 24 i     `- Re: Misc: Applications of small floating point formats.1BGB
1 Aug 24 `* Re: Misc: Applications of small floating point formats.34Lawrence D'Oliveiro
1 Aug 24  +* Re: Misc: Applications of small floating point formats.31BGB
2 Aug 24  i`* Re: Misc: Applications of small floating point formats.30Lawrence D'Oliveiro
2 Aug 24  i `* Re: Misc: Applications of small floating point formats.29BGB
2 Aug 24  i  `* Re: Misc: Applications of small floating point formats.28Lawrence D'Oliveiro
2 Aug 24  i   `* Re: Misc: Applications of small floating point formats.27BGB
2 Aug 24  i    `* Re: Misc: Applications of small floating point formats.26BGB
2 Aug 24  i     `* Re: Misc: Applications of small floating point formats.25Lawrence D'Oliveiro
2 Aug 24  i      `* Re: Misc: Applications of small floating point formats.24BGB
3 Aug 24  i       `* Re: Misc: Applications of small floating point formats.23Lawrence D'Oliveiro
3 Aug 24  i        +* Re: Misc: Applications of small floating point formats.11Chris M. Thomasson
3 Aug 24  i        i+* Re: Misc: Applications of small floating point formats.7Lawrence D'Oliveiro
3 Aug 24  i        ii`* Re: Misc: Applications of small floating point formats.6BGB
3 Aug 24  i        ii `* Re: Misc: Applications of small floating point formats.5Lawrence D'Oliveiro
3 Aug 24  i        ii  `* Re: Misc: Applications of small floating point formats.4Chris M. Thomasson
3 Aug 24  i        ii   `* Re: Misc: Applications of small floating point formats.3BGB
3 Aug 24  i        ii    `* Re: Misc: Applications of small floating point formats.2Chris M. Thomasson
4 Aug 24  i        ii     `- Re: Misc: Applications of small floating point formats.1Lawrence D'Oliveiro
3 Aug 24  i        i`* Re: Misc: Applications of small floating point formats.3BGB
3 Aug 24  i        i `* Re: Misc: Applications of small floating point formats.2Lawrence D'Oliveiro
3 Aug 24  i        i  `- Re: Misc: Applications of small floating point formats.1BGB
3 Aug 24  i        `* Re: Misc: Applications of small floating point formats.11BGB
3 Aug 24  i         `* Re: Misc: Applications of small floating point formats.10Lawrence D'Oliveiro
3 Aug 24  i          `* Re: Misc: Applications of small floating point formats.9BGB
3 Aug 24  i           `* Re: Misc: Applications of small floating point formats.8Lawrence D'Oliveiro
3 Aug 24  i            `* Re: Misc: Applications of small floating point formats.7Chris M. Thomasson
4 Aug 24  i             `* Re: Misc: Applications of small floating point formats.6Lawrence D'Oliveiro
4 Aug 24  i              `* Re: Misc: Applications of small floating point formats.5Chris M. Thomasson
4 Aug 24  i               `* Re: Misc: Applications of small floating point formats.4BGB
5 Aug 24  i                +* Re: Misc: Applications of small floating point formats.2Chris M. Thomasson
5 Aug 24  i                i`- Re: Misc: Applications of small floating point formats.1Chris M. Thomasson
5 Aug 24  i                `- Re: Misc: Applications of small floating point formats.1Lawrence D'Oliveiro
3 Aug 24  `* Re: Misc: Applications of small floating point formats.2Terje Mathisen
3 Aug 24   `- Re: Misc: Applications of small floating point formats.1BGB

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal