• August 02, 2021, 08:51:52 AM

Login with username, password and session length

Author Topic:  EXR Cube Viewer  (Read 336 times)

0 Members and 1 Guest are viewing this topic.

Offline 3DickUlus

  • Administrator
  • *******
  • Posts: 2348
    • Digilantism
EXR Cube Viewer
« on: June 28, 2021, 05:43:08 AM »
EXR Cube Viewer a support program for Fragmentarium in the Downloads section.

Source code also here https://github.com/3Dickulus/EXRCubeViewer#exrcubeviewer

This is a source only distribution, for now, until I can find time to compile and test on Windows.

Linkback: https://fractalforums.org/index.php?topic=4302.0
« Last Edit: July 03, 2021, 10:12:45 AM by 3DickUlus, Reason: details »

Offline 3DickUlus

  • Administrator
  • *******
  • Posts: 2348
    • Digilantism
Re: EXR Cube Viewer
« Reply #1 on: July 02, 2021, 03:25:47 AM »
Generating files for use with EXRCubeViewer
  • copy the frag files to a folder of their own (only work on copies)
  • run Fragmentarium-2.5.5
  • drag the copy of slice-test.frag onto the Fragmentarium window to load
  • ensure that the animation runtime length is at least 256 frames ie: 11 seconds @ 25fps or 9 seconds @ 30fps
  • from the "Render" menu select "High Resolution and Animation Render"
  • set "Render Tiles" to 1x1
  • Set "Padding" to 0.0%
  • set "Tile Width" to 256
  • set "Tile Height" to 256
  • set "Number of Subframes" to any number you like but for some fast results setting it to 1 (one) will do
  • select the "Animation" checkbox and set "Start Frame" and "End Frame" to 1 and 256 respectively.
  • set the "Filename" to "TestCube.exr"
  • unset "Add unique ID to filename" OFF
  • set "Autosave fragments and settings" ON
  • unset "Save texture files" OFF
  • select "OK"
  • this will generate 256 images in a folder named TestCube_Files/images

slice-test.frag uses a Linear Easing Curve to adjust the uniform named "XLevel".
You can edit the easing curve settings by selecting the XLevel slider located in the Floor tab and pressing the "F7" key.
« Last Edit: July 02, 2021, 04:58:16 AM by 3DickUlus »

Offline 3DickUlus

  • Administrator
  • *******
  • Posts: 2348
    • Digilantism
Re: EXR Cube Viewer
« Reply #2 on: July 02, 2021, 04:55:36 AM »
Putting the images together

The images created above can be used to generate a multipart file with the OpenEXR tool called exrmultipart
This will work for any set of EXR files named in sequence.

Code: [Select]
Usage: exrmultipart -combine -i input.exr[:partnum][::partname] [input2.exr[:partnum]][::partname] [...] -o outfile.exr [options]
or: exrmultipart -separate -i infile.exr -o outfileBaseName [options]
or: exrmultipart -convert -i infile.exr -o outfile.exr [options]

I use a small bash script called mkcombined.sh to get the job done (on linux systems)... it lives in the Fragmentarium Misc folder, this script assumes that the bin folder is populated with tools from the OpenEXR package and your console is cd'd to the FragM working folder, you may have to edit the script to suit your needs.

Code: [Select]
#!/bin/bash
# usage: mkcombined.sh <basename> <resolution>
#    eg: ./sh mkcombined.sh myimgfiles 256x256x256
# creates a file named myimgfiles-combined-256x256x256.exr that contains all exr files with basename

bin/exrmultipart -combine -i `ls $1.*.exr` -o $1-combined-$2.exr `

run the script like...
Code: [Select]
sh ./Misc/mkcombined.sh TestCube_Files/images/TestCube 256x256x256that should create a file named TestCube_Files/images/TestCube-combined-256x256x256.exr, this is your cube file.

After generating the EXR cube file you can load it with EXRCubeViewer to see something like the attached animation, once loaded in EXRCubeViewer you can save the voxel field as a wavefront .obj file or a pointcloud .pcd file

Offline SCORPION

  • Strange Attractor
  • ******
  • Posts: 80
Re: EXR Cube Viewer
« Reply #3 on: July 03, 2021, 07:58:07 AM »

I use a small bash script called mkcombined.sh to get the job done (on linux systems)... it lives in the Fragmentarium Misc folder, this script assumes that the bin folder is populated with tools from the OpenEXR package and your console is cd'd to the FragM working folder, you may have to edit the script to suit your needs.


Ok, I got 256 images.
What to do next in the Windows 10 system?

Offline 3DickUlus

  • Administrator
  • *******
  • Posts: 2348
    • Digilantism
Re: EXR Cube Viewer
« Reply #4 on: July 03, 2021, 10:03:57 AM »
Adapt the instructions in post #2 to create a multipart exr file using the program exrmultipart ,it should be in the bin folder.
The multipart exr file can then be loaded with EXRCubeViewer program.

There are 2 problems you will have to fix yourself (for now)
 1. I haven't made an execute able release package so you have to compile EXRCubeViewer from source.
 2. I haven't compiled or tested it on windows yet.
« Last Edit: July 03, 2021, 10:14:10 AM by 3DickUlus »

Offline SCORPION

  • Strange Attractor
  • ******
  • Posts: 80
Re: EXR Cube Viewer
« Reply #5 on: July 03, 2021, 05:47:21 PM »
No, I do not know how to do this. I will wait until the Windows interface appears, for example, as when working with the ffmpeg encoder.
But I tried to output voxels in the format of 512x512 and 512 frames, loaded the sequence into Fiji, then OBJ into Meshlab and got a pretty good result.
Here is an image from Cinema 4D (render Arnold)

Offline 3DickUlus

  • Administrator
  • *******
  • Posts: 2348
    • Digilantism
Re: EXR Cube Viewer
« Reply #6 on: July 03, 2021, 09:03:36 PM »
...yes, I should add the ability to load the image sequence in EXRCubeViewer, or at least be able to call exrmultipart program to build the cube.


xx
Balls to the cube

Started by 1bryan1 on Fractal Image Gallery

0 Replies
182 Views
Last post April 13, 2018, 12:23:23 PM
by 1bryan1
clip
Inverted Menger Cube

Started by chronologicaldot on Fractal Image Gallery

0 Replies
274 Views
Last post July 29, 2019, 10:35:43 PM
by chronologicaldot
xx
Stacking bitmaps to form a 3D cube of pixels

Started by marcm200 on Programming

16 Replies
964 Views
Last post August 06, 2019, 08:41:51 AM
by marcm200
xx
Homemade MB Viewer

Started by DanKje on Noob's Corner

11 Replies
369 Views
Last post July 18, 2021, 06:01:15 PM
by hobold
xx
Which Mandelbrot Viewer Uses .ifp Files?

Started by Byte11 on Fractal Programs Discussion, Help, & Support

1 Replies
351 Views
Last post April 22, 2019, 09:25:18 PM
by claude