Logo by mclarekin - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 
*
Welcome, Guest. Please login or register. April 23, 2024, 07:53:50 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: I/O for fragmentarium  (Read 1561 times)
0 Members and 1 Guest are viewing this topic.
Patryk Kizny
Global Moderator
Fractal Fertilizer
******
Posts: 372



kizny
WWW
« on: June 14, 2015, 01:17:27 PM »

Hey,

Just a quick question. Not sure if it's easily doable or implementable.
As always looking for integration with VFX pipeline and stuff... That's just me.

I would like to do the following:
- import an external file (ASCII, CSV or a waveform) and get access to the data from fragmentarium to either parametrize animation or animate camera
- export selected parameters of animation per frame - along with saving the sequence of JPGs I wish I could select parameters to be exported and it would save them as a set of files or a single file CSV data (columns would be fields and rows would be frames)

Is that doable?
I guess the latter needs adding options on a C-side, but maybe the first part is already there?

Logged

Visual Artist, Director & Cinematographer specialized in emerging imaging techniques.
Syntopia
Fractal Molossus
**
Posts: 681



syntopiadk
WWW
« Reply #1 on: June 14, 2015, 10:47:07 PM »

The easiest way would be to put your data in an image (.hdr is supported), and load the image as a texture. Then you could read the values in the GLSL script.

Otherwise you'd need to add C-code.
Logged
Patryk Kizny
Global Moderator
Fractal Fertilizer
******
Posts: 372



kizny
WWW
« Reply #2 on: June 15, 2015, 10:46:49 AM »

Thanks!
Actually I found a simple way of working around the input - instead of rendering to bitmaps, I save out to CSV, text-convert to array data type and just include arrays in on the GLSL side.
Pretty usable for smaller amount of data and does what I need.
« Last Edit: June 17, 2015, 04:03:05 PM by Patryk Kizny » Logged

Visual Artist, Director & Cinematographer specialized in emerging imaging techniques.
Patryk Kizny
Global Moderator
Fractal Fertilizer
******
Posts: 372



kizny
WWW
« Reply #3 on: June 17, 2015, 01:18:52 PM »

How about exporting?
Is there any trick to dump parameters for each of frames to the debug text window or an external .frag file?
Logged

Visual Artist, Director & Cinematographer specialized in emerging imaging techniques.
3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #4 on: November 11, 2015, 11:09:39 PM »

With QScript control you can save parameters or frag every frame tick if you want smiley
Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
Patryk Kizny
Global Moderator
Fractal Fertilizer
******
Posts: 372



kizny
WWW
« Reply #5 on: November 12, 2015, 06:55:27 PM »

Gotcha, thanks.
Logged

Visual Artist, Director & Cinematographer specialized in emerging imaging techniques.
3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #6 on: November 13, 2015, 04:02:17 AM »

I added app.saveParameters(fileName) to the script commands, saves parameters like in the "Parameters" menu but without a file dialog, you will have to generate incremental filenames just like when saving images from a script animation. If the save fails it will open a warning dialog and will halt until "Ok" button is clicked, I know, not a great thing for a remote render but at least it won't just continue to render 5000 frames wrong.

app.loadParameters(fileName) is already available in v1.0.14, save will be in the next patch release v1.0.15  A Beer Cup
Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
having fun with fragmentarium Images Showcase (Rate My Fractal) ker2x 5 2361 Last post January 14, 2012, 12:26:39 PM
by ker2x
Fragmentarium 0.9.1 Released Fragmentarium « 1 2 » Syntopia 19 4787 Last post June 10, 2012, 10:27:46 AM
by Syntopia
Fragmentarium v0.9.12 released Fragmentarium Syntopia 6 2884 Last post November 06, 2012, 05:27:35 PM
by Syntopia
Help in Fragmentarium Fragmentarium Tim Emit 2 950 Last post January 15, 2013, 10:05:24 PM
by Tim Emit
Fragmentarium español Leonrott 4 3509 Last post January 09, 2014, 02:07:16 PM
by stereoman

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.22 seconds with 28 queries. (Pretty URLs adds 0.018s, 2q)