Author Topic: CXR File Save  (Read 20299 times)

2017-04-27, 18:38:54

HTKsean

  • Active Users
  • **
  • Posts: 15
    • View Profile
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

2017-05-02, 23:27:05
Reply #1

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
.cxr saves all elements into single file, so you dont need to worry about it - just one .cxr is enough
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2017-05-05, 04:15:41
Reply #2

ihabkal

  • Active Users
  • **
  • Posts: 253
    • View Profile
is there a plugin to allow photoshop to open CXR?

2017-05-05, 08:54:32
Reply #3

Frood

  • Active Users
  • **
  • Posts: 1922
    • View Profile
    • Rakete GmbH
CXR is "just" EXR and uses EXR specifications to store additional information. So you can use for example ProEXR (free now) for CXR as for all other EXRs.


Good Luck



Never underestimate the power of a well placed level one spell.

2017-05-07, 08:46:57
Reply #4

Flavius

  • Active Users
  • **
  • Posts: 167
    • View Profile
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!
« Last Edit: 2017-05-07, 21:22:34 by Flavius »

2017-05-08, 20:13:59
Reply #5

HTKsean

  • Active Users
  • **
  • Posts: 15
    • View Profile
.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??
« Last Edit: 2017-05-08, 20:26:18 by HTKsean »

2017-05-08, 21:13:49
Reply #6

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5478
    • View Profile
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
Tom Grimes | chaos-corona.com
Product Manager | contact us

2017-05-08, 21:16:59
Reply #7

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
the render element saving is handled by 3ds Max, we cannot influence it (well, we cannot without some serious side-effects) :/
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2017-05-09, 14:51:22
Reply #8

HTKsean

  • Active Users
  • **
  • Posts: 15
    • View Profile
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

2017-07-27, 16:47:49
Reply #9

kent512

  • Active Users
  • **
  • Posts: 5
    • View Profile
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!!!

2017-07-27, 17:45:43
Reply #10

mike288

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 353
  • Michal 'Mike' Wirth
    • View Profile
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?
Chaos Scatter developer | In case of crash, please send minidump | Private uploader: https://corona-renderer.com/upload

2017-07-28, 11:50:23
Reply #11

Dionysios.TS

  • Active Users
  • **
  • Posts: 766
    • View Profile
    • Evolvia Imaging
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 -

2017-07-28, 12:02:53
Reply #12

mike288

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 353
  • Michal 'Mike' Wirth
    • View Profile
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.
Chaos Scatter developer | In case of crash, please send minidump | Private uploader: https://corona-renderer.com/upload

2017-07-28, 12:41:28
Reply #13

Dionysios.TS

  • Active Users
  • **
  • Posts: 766
    • View Profile
    • Evolvia Imaging
Yes I was reffered to CIE, thanks for your answer...

2017-07-29, 16:54:49
Reply #14

kent512

  • Active Users
  • **
  • Posts: 5
    • View Profile
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.

2017-07-31, 10:59:01
Reply #15

mike288

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 353
  • Michal 'Mike' Wirth
    • View Profile
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. ;-)
Chaos Scatter developer | In case of crash, please send minidump | Private uploader: https://corona-renderer.com/upload

2018-12-03, 19:25:54
Reply #16

Lacapra3D

  • Users
  • *
  • Posts: 4
    • View Profile
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.

2019-07-15, 02:23:51
Reply #17

GeorgeR

  • Active Users
  • **
  • Posts: 10
    • View Profile
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?

2019-07-15, 14:14:29
Reply #18

TomG

  • Administrator
  • Active Users
  • *****
  • Posts: 5478
    • View Profile
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).
Tom Grimes | chaos-corona.com
Product Manager | contact us

2019-09-11, 10:31:31
Reply #19

3dboomerang

  • Active Users
  • **
  • Posts: 214
  • Head of 3D
    • View Profile
    • 3DFLOW
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...

2019-11-27, 14:23:59
Reply #20

JakubCech

  • Active Users
  • **
  • Posts: 126
  • jakubcech.net
    • View Profile
    • jakubcech
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!

2019-11-28, 15:08:44
Reply #21

LorenzoS

  • Active Users
  • **
  • Posts: 291
    • View Profile
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?

2019-11-28, 15:31:57
Reply #22

LorenzoS

  • Active Users
  • **
  • Posts: 291
    • View Profile
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