Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: HTKsean on 2017-04-27, 18:38:54

Title: CXR File Save
Post by: HTKsean on 2017-04-27, 18:38:54
The new Image Editor feature and the ability to save as EXR/CXR is awesome!
However, I was wondering if Corona requires that all Render Elements be saved as a separate CXR file? I have 4 lights in the scene + Environment + Interactive LightMix enabled, and when the render is complete, I end up with 6 files being saved.  The original output file(the one I named for output in the Corona Setup window) contains all the lighting info, so what's the point of saving out these other files? It's easy enough to delete them, but seems like saving all these files should be an option that I could turn off.

Sean
Title: Re: CXR File Save
Post by: Ondra on 2017-05-02, 23:27:05
.cxr saves all elements into single file, so you dont need to worry about it - just one .cxr is enough
Title: Re: CXR File Save
Post by: ihabkal on 2017-05-05, 04:15:41
is there a plugin to allow photoshop to open CXR?
Title: Re: CXR File Save
Post by: Frood on 2017-05-05, 08:54:32
CXR is "just" EXR and uses EXR specifications to store additional information. So you can use for example ProEXR (http://www.fnordware.com/ProEXR/) (free now) for CXR as for all other EXRs.


Good Luck



Title: Re: CXR File Save
Post by: Flavius on 2017-05-07, 08:46:57
Hi all,

I hope I don't make a fool of myself but...how do I make 3ds to only save the .cxr file and not all the element in (EDIT:) SEPARATE ( .cxr  files as well? If I turn them off, they don't show in the master .cxr file and if I turn them on, they are in the master file but they are also separate which eats up hdd space for nothing. I'm pretty sure I am overlooking something.

http://c2n.me/3KcQiX4

Thanks!
Title: Re: CXR File Save
Post by: HTKsean on 2017-05-08, 20:13:59
.cxr saves all elements into single file, so you dont need to worry about it - just one .cxr is enough

Actually I'm asking if there is a way to save only one .cxr file. We only use one cxr file, but Corona insists on saving a cxr file for every lighting object in the scene. It takes time to go back and clean up the render folder by selecting and deleting the unused and unnecessary extra cxr files. Is there a way to prevent Corona from saving these extra files??
Title: Re: CXR File Save
Post by: TomG on 2017-05-08, 21:13:49
Just for clarification on the situation (others can confirm if this is what they experience)

- Save to CXR from the Save option in the VFB, creates only one CXR with all the layers contained in it.

- Saving to CXR using the automatic 3ds Max "Save file" option creates one CXR with everything in it, plus a collection of separate CXRs for each render element as well
Title: Re: CXR File Save
Post by: Ondra on 2017-05-08, 21:16:59
the render element saving is handled by 3ds Max, we cannot influence it (well, we cannot without some serious side-effects) :/
Title: Re: CXR File Save
Post by: HTKsean on 2017-05-09, 14:51:22
Just for clarification on the situation (others can confirm if this is what they experience)

- Save to CXR from the Save option in the VFB, creates only one CXR with all the layers contained in it.

- Saving to CXR using the automatic 3ds Max "Save file" option creates one CXR with everything in it, plus a collection of separate CXRs for each render element as well

This is correct, Tom. I was hoping there was a way to prevent the separate element CXR's from saving with each render, but apparently it is a 3dsMax issue.

thanks
Sean
Title: Re: CXR File Save
Post by: kent512 on 2017-07-27, 16:47:49
Hi,
I have another question regarding CXR.

If I saved CXR through the VFB interface(Save CXR button), the file size is 1.4GB. However, if I saved CXR through Render Scene>Render Output>Save File, the file size is only 102mb.
It means the data is different.
When I'm using render farm, I have to save file through Render Output or Render Element, which means I can't get CXR with full info(such like tone mapping setting) to be used in imaged Editor. Is there a way to save full CXR if the image is rendered in render farm(backburner)?

Thanks!!!
Title: Re: CXR File Save
Post by: mike288 on 2017-07-27, 17:45:43
Hi,
I have another question regarding CXR.

If I saved CXR through the VFB interface(Save CXR button), the file size is 1.4GB. However, if I saved CXR through Render Scene>Render Output>Save File, the file size is only 102mb.
It means the data is different.
When I'm using render farm, I have to save file through Render Output or Render Element, which means I can't get CXR with full info(such like tone mapping setting) to be used in imaged Editor. Is there a way to save full CXR if the image is rendered in render farm(backburner)?

Thanks!!!

Hi, it should be possible to save renders using the CXR format in Render Output setting. Saved results should be the same as using the Save CXR button. Are you using the .cxr file extension in Render Output?
Title: Re: CXR File Save
Post by: Dionysios.TS on 2017-07-28, 11:50:23
Do you think is possible in the future to output in TIFF 16bit?
All the available formats for now are only in 8bit except of EXR and CXR (obviously).

Thanks,

Dionysios -
Title: Re: CXR File Save
Post by: mike288 on 2017-07-28, 12:02:53
Do you think is possible in the future to output in TIFF 16bit?
All the available formats for now are only in 8bit except of EXR and CXR (obviously).

Thanks,

Dionysios -
You mean in CIE? Yes, it is planned.
Title: Re: CXR File Save
Post by: Dionysios.TS on 2017-07-28, 12:41:28
Yes I was reffered to CIE, thanks for your answer...
Title: Re: CXR File Save
Post by: kent512 on 2017-07-29, 16:54:49
Hi,
I have another question regarding CXR.

If I saved CXR through the VFB interface(Save CXR button), the file size is 1.4GB. However, if I saved CXR through Render Scene>Render Output>Save File, the file size is only 102mb.
It means the data is different.
When I'm using render farm, I have to save file through Render Output or Render Element, which means I can't get CXR with full info(such like tone mapping setting) to be used in imaged Editor. Is there a way to save full CXR if the image is rendered in render farm(backburner)?


Thanks!!!

Hi, it should be possible to save renders using the CXR format in Render Output setting. Saved results should be the same as using the Save CXR button. Are you using the .cxr file extension in Render Output?


Hi Mike,
you are totally right. I just did some further test. The CXR from render output is identical to the CXR from CXR button.
Thanks very much.
Title: Re: CXR File Save
Post by: mike288 on 2017-07-31, 10:59:01
Hi Mike,
you are totally right. I just did some further test. The CXR from render output is identical to the CXR from CXR button.
Thanks very much.
You are welcome. ;-)
Title: Re: CXR File Save
Post by: Lacapra3D on 2018-12-03, 19:25:54
Hey,
I could i save the CXR file in automatic? could be possible to save it as a render element
for example if i send different files with Batch Render or Backburner to render overnight at the end i'm not able to find the corrispondent cxr file.
Title: Re: CXR File Save
Post by: GeorgeR on 2019-07-15, 02:23:51
Knowing that CXR will open in Photoshop if treated as an EXR, is there a way to get Photoshop to do this other than File->Open As (as this doesn't work for smart object linking)? Alternatively, can we get Corona to save out with the EXR extension but treat it as a CXR file?
Title: Re: CXR File Save
Post by: TomG on 2019-07-15, 14:14:29
Not sure if it helps, but you can just rename the file from .cxr to .exr, and anything that can load .exrs will load it (rather than doing the File/Open As).
Title: Re: CXR File Save
Post by: 3dboomerang on 2019-09-11, 10:31:31
I want to come back to an earlier statement that the RE-CXR's would also be "dumped" in place, together with the original CXR that already contains those elements.

Isn't it possible, to add a corona-button that allows to force read the render elements if they were turned off, so they are included in the render but not in the max-hemisphere a.k.a. "active".

Is this scriptable?

Reason I'm asking is because I have animations running, and I'm using the batch-process script to create different lighting skeemes from one CXR-file. Which works great for me personally (having trouble with the denoising still but I'm getting there)

With all those render elements attached, the amount of Gb's being eaten on my server is no joke. I'm taking in 200Gb easily after rendering a one minute animation with all it's clips.

That's 200Gb of "junk" I need to manually remove every time clips render out. These are 720p CXR's. I'm currently working on a 1080p animation and I'm holding my breath...
Title: Re: CXR File Save
Post by: JakubCech on 2019-11-27, 14:23:59
Hello guys,

I stumbled upon this issue lately too and believe found a pretty good workaround :)
All that is needed is to set path of every single element on same location and same file. So for example if I have 20 elements I would path them all to C:/pass.jpg - this is going to make saving of excessive elements much faster and in the end there is only one file to delete - as they all replace the same pass.jpg while saving.
Othervise original CXR file working normally with all elements inside.

Cheers!
Title: Re: CXR File Save
Post by: LorenzoS on 2019-11-28, 15:08:44
Code: [Select]
I stumbled upon this issue lately too and believe found a pretty good workaround :)
All that is needed is to set path of every single element on same location and same file. So for example if I have 20 elements I would path them all to C:/pass.jpg - this is going to make saving of excessive elements much faster and in the end there is only one file to delete - as they all replace the same pass.jpg while saving.
Othervise original CXR file working normally with all elements inside.

It works!! thanks,
and there is a simple script that set path of every single element on same location and same file?
Title: Re: CXR File Save
Post by: LorenzoS on 2019-11-28, 15:31:57
Code: [Select]
re = maxOps.GetCurRenderElementMgr()
for i = 0 to re.NumRenderElements()  do re.SetRenderElementFilename i "E:/tempE\cxr\xxx.cxr"

tu put on .ms file