Giter Site home page Giter Site logo

8K Cubemap about imageviewer HOT 4 CLOSED

kopaka1822 avatar kopaka1822 commented on July 26, 2024
8K Cubemap

from imageviewer.

Comments (4)

kopaka1822 avatar kopaka1822 commented on July 26, 2024

Hello,
is your source equirectangular image an HDR file (.hdr or another float format) or LDR (png, jpg, bmp)?

from imageviewer.

Carandiru0 avatar Carandiru0 commented on July 26, 2024

it's a png, 16bpc greyscale.

from imageviewer.

kopaka1822 avatar kopaka1822 commented on July 26, 2024

Hi,
I investigated the source of the problem.
The problem is that the Image Viewer mainly works with RGBA32 float formats internally (this is easier to handle for me since this format supports all relevant features in DirectX).
The problem is now, that your (and my) hardware cannot create an image with 8k size since it requires too much memory with the RGBA32 float format: 8192x8192x16 (bytes per pixel) x 6 (faces) = 6442450944 = 6GB (Technically, my graphics card has enough memory for this, but it doesn't want to allocate an image this big).
For now, this operation will at least display an error message instead of crashing the application after the latest commit.

However, I do not have plans for now to support 16 bpc formats as internal image viewer formats, since this would require a lot of code changes... I will keep it in mind though

I am sorry that 4k appears to be the biggest resolution for now

from imageviewer.

Carandiru0 avatar Carandiru0 commented on July 26, 2024

6GB? I don't know why I didn't think of this - thanks for looking into the problem - I feel rather dumb now considering that having a single resource on the gpu of that size is so wasteful. Even with BC7/BC6 compression it would probably be too large.
Sorry I forgot about the x6 faces of a cubemap when it comes to memory requirements.
I'm really glad to here that internally 32bpc is used on the images, this allows for all the 16bpc usage I require!
Great application by the way, I love how I can pack multichannel images in a custom way with the command strings eg.) "rgb(red(I0), red(I1), green(I1))"
Cheers!

from imageviewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.