3dickulus
|
|
« on: August 01, 2015, 11:10:22 PM » |
|
OpenEXR RGBA16F output is now available in Fragmentarium v1.0.10 enabled by using ".exr" filename extension in the output dialog Source code.Requirements The (E)xtra (C)Make (M)odules package contains FindOpenEXR.cmake Home page Git repository OpenEXR 2.1 libraries and SDKNot tested for Win or OSX, compiles using Cmake or QtCreator on linux. For linux install/use the packages provided by your dist, search for "ECM" or "Extra CMake Modules" and "OpenEXR" + "OpenEXR-dev" in the package repositories. Now reports like this... Created front and back buffers as RGBA16F NVIDIA Corporation GeForce GTX 760/PCIe/SSE2 This video card supports: OpenGL , 1.1, 1.2, 1.3, 1.4, 1.5, 2.0, 2.1, 3.0, 3.2, 3.3, 4.0, 4.1, 4.2, 4.3 Available output formats: bmp, cur, dds, icns, ico, jp2, jpeg, jpg, pbm, pgm, png, ppm, tif, tiff, wbmp, webp, xbm, xpm, exr ...at startup. EXR output is also available when fragments request RGBA32F buffers but the file format is still RGBA16F.
|
|
« Last Edit: June 04, 2016, 01:26:44 AM by 3dickulus, Reason: link »
|
Logged
|
|
|
|
Patryk Kizny
|
|
« Reply #1 on: August 02, 2015, 12:36:21 AM » |
|
So cool! I'll wait for the build.
|
|
|
Logged
|
Visual Artist, Director & Cinematographer specialized in emerging imaging techniques.
|
|
|
3dickulus
|
|
« Reply #2 on: August 09, 2015, 08:26:52 PM » |
|
just a heads up for anyone compiling from source... the ECM package is only needed if you use cmakeif you use QtCreator... LIBS += IlmImf Imath Half Iex IexMath IlmThread ...has been added to the .pro file, all you need to do is to install the OpenEXR libs+dev package for your OS. EDIT: you may have to add the OpenEXR includes folder to INCLUDEPATH in the .pro file but works on my box without it edit2: loads EXR images as Sampler2D textures too
|
|
« Last Edit: August 10, 2015, 08:48:02 AM by 3dickulus, Reason: modes »
|
Logged
|
|
|
|
Patryk Kizny
|
|
« Reply #3 on: August 10, 2015, 09:57:55 AM » |
|
Any ideas when this will be avail in the build?
|
|
|
Logged
|
Visual Artist, Director & Cinematographer specialized in emerging imaging techniques.
|
|
|
3dickulus
|
|
« Reply #4 on: August 10, 2015, 03:18:17 PM » |
|
no idea, I haven't got OpenEXR installed on my win box and don't have a mac the source is available that's the best I can do right now.
|
|
« Last Edit: August 11, 2015, 03:19:27 AM by 3dickulus »
|
Logged
|
|
|
|
3dickulus
|
|
« Reply #5 on: August 28, 2015, 07:47:43 AM » |
|
YAY! halfway there, I have compiled IlmBase as a static .lib on windows7 and will try to get OpenEXR compiled as a static .lib too, hopefully, if I've done it right I will be able to link with Fragmentarium and the Win version will have EXR file I/O for images and textures once that is done it might be possible to save RGBZ files, I found this link https://www.opengl.org/wiki/Common_Mistakes#Depth_Testing_Doesn.27t_WorkWhen you select a pixelformat for your window, and you ask for a Depth Buffer, the depth buffer is typically stored as a Normalized Integer with a bitdepth of 16, 24, or 32 bits. Note: You can create images with true floating-point depth formats. But these can only be used with Framebuffer Objects, not the Default Framebuffer.
In OpenGL, all depth values lie in the range [0, 1]. The integer normalization process simply converts this floating-point range into integer values of the appropriate precision. It is the integer value that is stored in the depth buffer.
Typically, 24-bit depth buffers will pad each depth value out to 32-bits, so 8-bits per pixel will go unused. However, if you ask for an 8-bit Stencil Buffer along with the depth buffer, the two separate images will generally be combined into a single depth/stencil image. 24-bits will be used for depth, and the remaining 8-bits for stencil.
if I am going through the trouble to make Fragmentarium save a depth layer I might as well consider saving other layers too, this should also open up the possibility for environment luminance layer, equirectangular IBL maps? I think the only problem will be the accumulation phase, note that the spline path occlusion works on a single pass but I am not sure if the depth buffer is valid after n frames of progressive rendering, it may only contain the values of the last subframe...
|
|
|
Logged
|
|
|
|
3dickulus
|
|
« Reply #6 on: September 02, 2015, 03:16:50 AM » |
|
EXR works perfectly on linux and I have almost got it to compile on windows except for 4 thread functions that exist in the library but don't compile, so so close.
it would be nice if a Windows brainiac could help out... anyone?
|
|
|
Logged
|
|
|
|
3dickulus
|
|
« Reply #7 on: September 05, 2015, 07:32:53 AM » |
|
For anyone that wants to try compiling the v1.0.10 source on windows with OpenEXR, this is where I'm at... IT'S DONE now all it needs is a few tests... and maybe some docs. Replace your current Fragmentarium exe with OpenEXR win exe + zlib1.dll this uses the same Qt-5.3.2 DLLs as before, no need to DL the big zip file.
|
|
« Last Edit: June 18, 2016, 04:13:49 AM by 3dickulus, Reason: link »
|
Logged
|
|
|
|
Patryk Kizny
|
|
« Reply #8 on: September 07, 2015, 05:12:05 PM » |
|
Dick,
- I downloaded the files /win exe + libs/ and added to the program folder - Frag shows me on startup that it does support EXR "Available output formats: bmp, jp2, jpeg, jpg, pbm, pgm, png, ppm, tif, tiff, wbmp, xbm, xpm, exr" - while trying to do a hires render, in the file dialog there's no .exr extension on the lit. When I type it it does not recognize it and adds .bmp so I get myfile.exr.bmp - if I delete .bmp in the hires anim window it accepts it, but upon render start (I guess right after rendering the first time) the program crashes with an unknown exception - saving via 'save screenshot' option does not show .exr option there and also defaults to .bmp
So wasn't able to run it.
|
|
|
Logged
|
Visual Artist, Director & Cinematographer specialized in emerging imaging techniques.
|
|
|
3dickulus
|
|
« Reply #9 on: September 07, 2015, 08:38:54 PM » |
|
ouch I ran and tested on Win7... works I ran and tested on Wine... works (looking at exr image from win ver as I type) "Save screen shot:" works with QImage/QWidget so no EXR there do you have zlib1.dll in the same folder as the Fragmentarium executable? EXR format requires zlib, the dll is bundled in the exe-only file, perhaps I should rename this file to "update" or something. I'll try to reproduce the error you get when I go over it later today but on initial tests it works fine here edit: no longer requires zlib1.dll, compiled with static libz.a with MinGW
|
|
« Last Edit: June 18, 2016, 09:59:05 PM by 3dickulus, Reason: link »
|
Logged
|
|
|
|
Patryk Kizny
|
|
« Reply #10 on: September 07, 2015, 10:17:03 PM » |
|
Yes, I do have it. Can I gather some info usable for you for debugging? How?
|
|
|
Logged
|
Visual Artist, Director & Cinematographer specialized in emerging imaging techniques.
|
|
|
3dickulus
|
|
« Reply #11 on: September 07, 2015, 10:44:42 PM » |
|
ok, I just re'n're'd and uploaded the sources and exe pkgs I have tested EXR on both Win7 and Wine, it does work as expected before and after this latest tweek I did not find anything wrong... the only difference is the tweek for EXR image size vs ram consumption, the largest exr image I have rendered is 64000x36000 and ram usage stays flat! grab the exe-only file and test like... 1. first test preview, this should always work as not saving file 2. simple scenario, just render a test.exr, with no boxes checked in the hires output dialog and no path just filename only 3. then step it up, check Autosave, render, check unique name, render if these work then animation should be fine but a quick test would be good, when doing this just use the default mandelbulb.frag
|
|
« Last Edit: September 13, 2015, 08:34:59 PM by 3dickulus, Reason: link »
|
Logged
|
|
|
|
Patryk Kizny
|
|
« Reply #12 on: September 08, 2015, 03:58:12 PM » |
|
Now .exr shows up in the dialog and I can start a render. Preview window works fine. When I do the actual render (even all checkboxes off) it fails at the first save attempt at the end of tile1.
|
|
|
Logged
|
Visual Artist, Director & Cinematographer specialized in emerging imaging techniques.
|
|
|
Patryk Kizny
|
|
« Reply #13 on: September 08, 2015, 04:48:24 PM » |
|
Sometimes it seems to work. I need to do more testing to confirm why and when it fails.
|
|
|
Logged
|
Visual Artist, Director & Cinematographer specialized in emerging imaging techniques.
|
|
|
3dickulus
|
|
« Reply #14 on: September 13, 2015, 08:34:27 PM » |
|
v1.0.11 is up and EXR i/o has been tested on linux, wine and windows 7/8, seems to work as intended. Moving on to special layers, Z, A, H (depth, alpha, histogram)
|
|
|
Logged
|
|
|
|
|