flm file info request

Discussion related to the LuxRender Material system, programming API and Scene file format.

Moderators: jromang, tomb, zcott, coordinators

flm file info request

Postby patro » Thu Aug 12, 2010 7:05 am

hi all,
hope to don't be in the wrong section.. but since I read about: .............. & Scene file format... I suppose to be right!

any way..... well I 'm collecting base info about the flm file format!
I try on wiki, but I didn't find interesting info or details!

so any help is appreciated, and any info is welcome!

at first: could some one explain me how the image info are organized in it?
what I mean is.... camera, objs, light group (also different lights), effect like glare etc., are all this organized and saved like layers?

for example... contain the flm file separated section for all this data kinds?

if yes... which are all the data that compose the flm file?
and also contain the flm file separated info about id obj, shadows, AO etc......?

which is the part of the code responsible for reading and writing flm in LuxRender?
is there a link from where to get this detailed info... I'm not a coder.... but I'm collecting info for an external project!

the goal of the project is to create a plugin/script for the gimp, able to import/open the flm file like a xcf/psd, where all the image components are to be find in separate layers...

why could it be so interesting? POST-PROCESSiNG :)

please give a look to the video about what I'm talking: http://think.maxwellrender.com/photosho ... n_314.html

thank you in advance for time and any help
User avatar
patro
 
Posts: 1798
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna

Re: flm file info request

Postby SATtva » Thu Aug 12, 2010 7:16 am

Lux film is only an image buffer. It contains hdr image data (in XYZ space if I'm not mistaken) separated by lightgroup layers, tonemapping settings, and some integrator stuff. So no, no scene objects data at all -- it belongs to scene definition in {lxs,lxo,lxm,lxv} files.
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5487
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: flm file info request

Postby patro » Thu Aug 12, 2010 7:31 am

hey SATtva,
thank you for the answer...and sorry my bad for the mistaken!

about scene objs I didn't meant geometry data, but more an info like is a mask layer in psd/xcf :)
or for example when I saw Id obj... I meant an image where all scene obj are rendered with a different color, so to make easily a mask for any of the components!

thank you again

edit:
there are some renderers that have the ability to flag in the export option to render also AO, ID, shadows, alpha etc... that will stored in the native image file! but maxwell is the first that create a plugin to manage separately all this data in photoshop!
User avatar
patro
 
Posts: 1798
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna

Re: flm file info request

Postby Lord Crc » Thu Aug 12, 2010 8:00 am

I played with an "object id" idea not long ago. You can see the results of my experiment here viewtopic.php?f=8&t=3925
May contain traces of nuts.
User avatar
Lord Crc
Developer
 
Posts: 4450
Joined: Sat Nov 17, 2007 2:10 pm

Re: flm file info request

Postby jeanphi » Thu Aug 12, 2010 8:06 am

Hi,

Look into core/film.cpp starting at line 898. There's an explanation of the file format (when it says int or u_int it's 32bits).
At line 1063 you have the header and the core of it is in Film::DoTransmitFilm at line 1216.

Two things are really important:
- image color is in XYZ colorspace, it has to be converted to RGB (the later the better) using information provided in the header (LUX_FILM_TORGB_* parameters)
- there are 2 kinds of image buffers: per pixel pixel normalized and per screen normalized, in the first all pixel colors have to be divided by the pixel weight, in the second all pixel colors have to be divided by the buffer number of samples

Then the following applies: each buffer group correspond to a light group. Inside a buffer group, there will usually be 2 buffers if bidirectional was used (one for eye paths and one for light paths), and only one buffer for all other integrators. Once buffer are normalized, they can all be summed to give the final image.

Jeanphi
jeanphi
Developer
 
Posts: 6570
Joined: Mon Jan 14, 2008 7:21 am

Re: flm file info request

Postby patro » Thu Aug 12, 2010 8:18 am

Lord Crc wrote:I played with an "object id" idea not long ago. You can see the results of my experiment here viewtopic.php?f=8&t=3925


hey Lord cool stuff! I meant exactly that!
did you see the video on maxwell site?

join the feature listed in your topic, the just present one... creation of a import plugin for the gimp or ufraw.... would make a great difference and a great jump for LuxRender! :)

this technique is time winning in production rendering... instead to re-render the same scene in different mode to compost all than!
what is missing in your test is a render where there is no light and shadow... but just the objs with the original color layer... so to quick select one of than and make a mask! hope to don't miss nothing! but this can be done in a easy way... just render it with a simple scanline render!
User avatar
patro
 
Posts: 1798
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna

Re: flm file info request

Postby patro » Thu Aug 12, 2010 8:44 am

thank you Jeanphi....

hope... you all find the project interesting and useful for LuxRender!
hope now to find the way to realize the plugin... thank you to all for the info!

and I'm still open for other suggestions :)

please give a look to the video it's funny :o

it's just an example:
the attached image show the ability of 3ds max exporter for maxwell to add/select the effects that can be added as separated layer/image in maxwell!
maxwell rendering setup panel.jpg
User avatar
patro
 
Posts: 1798
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna

Re: flm file info request

Postby patro » Thu Aug 19, 2010 2:22 pm

hi,
is there a way to save in the flm file the used lens effect, vignetting, bloom, glare, tone-mapping, light color etc...?
thank you
User avatar
patro
 
Posts: 1798
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna

Re: flm file info request

Postby SATtva » Fri Aug 20, 2010 6:02 am

Currently it's not possible.
Linux builds packager
聞くのは一時の恥、聞かぬのは一生の恥
User avatar
SATtva
Developer
 
Posts: 5487
Joined: Tue Apr 07, 2009 12:19 pm
Location: from Siberia with love

Re: flm file info request

Postby Lord Crc » Fri Aug 20, 2010 6:29 am

The parameters used, such as the amount of glare, light group temperature setting and such are saved in the flm file, unless I misunderstand what you're asking patro.
May contain traces of nuts.
User avatar
Lord Crc
Developer
 
Posts: 4450
Joined: Sat Nov 17, 2007 2:10 pm

Next

Return to Materials, API & Scene file format

Who is online

Users browsing this forum: No registered users and 0 guests