Luxcore To Aces Study

Discussion related to the LuxCore functionality, implementations and API.
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Luxcore To Aces Study

Post by Sharlybg »

Super Luximage that is awesome Tips.
Ok I have a gift for you Just choose one package here with your mail address by mp and it is yours ;) :

https://www.cgtrader.com/draviastudio
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Luxcore To Aces Study

Post by Sharlybg »

For some reason Luxcore Look a bit redish (floor texure) after I processe texture in krita :
I turned the diffuse texture gamma to 1 (exr).

Luxcore Aces
Krita_Aces_Luxcore.jpg
Cycles Aces
K_Aces_Cycles.jpg
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
kintuX
Posts: 809
Joined: Wed Jan 10, 2018 2:37 am

Re: Luxcore To Aces Study

Post by kintuX »

@ Sharlybg

Care to share this test scene (as is) so I take it for a spin with my settings & Corona's newly implemented ACES OT?

---------------------------------------------------------------------------------------------------------------------------------------------
@ Luximage

Only diferrence is 1px offset // old bug, iirc :?
SPN aces cyclesVSluxcore_1pixOFF.jpg
Luximage
Posts: 165
Joined: Sun Jan 14, 2018 8:01 pm

Re: Luxcore To Aces Study

Post by Luximage »

Sharlybg thank you for the gift, very nice gesture of you.
The reason for the reddish image is probably because you have enabled the gi cache, even in filmic as you can see in the following example it produces a more color bleeding image.
room filmic cycles filter glossy.jpg
room filmic luxcore 2.61 cache.jpg

But to be sure you need to check first of all if the textures were converted properly(16bit diffuse map and the 32bit hdr map probably used for lighting), to do that you can open in blender's rendering tab a split view like this one:
checker space.jpg

Also you need to check if the settings both in cycles and luxcore are the same, materials , bounces, lighting, clamping, caustics.
Some questions for you, did you use luxcore 2.61, you used the disney material or the glossy, you used only a hdr for the lighting?
There are differences in how the disney shader behaves compared to cycles principledshader especially since luxcore version 2.6, so the results may not be exactly similar.
Test examples:
room aces cycles filter glossy.jpg
room aces luxcore 2.61 cache.jpg
room aces luxcore 2.5cache.jpg
room aces cycles.jpg
room aces luxcore 2.5.jpg
room aces luxcore 2.61.jpg
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Luxcore To Aces Study

Post by Sharlybg »

Hi Luximage you are right The reddish color was due
to the HDRi temperature color default 6500k.
With a simple white color multiplier everything is
normal.
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
Martini
Posts: 125
Joined: Fri Nov 23, 2018 11:36 am
Location: Australia

Re: Luxcore To Aces Study

Post by Martini »

Hi @Sharlybg,

Can I ask exactly how you have setup your environment to use ACES in LuxCore? I am unable to get it working outside of Blender. Some actual examples rather than hypotheticals would be helpful.

Right now, BlendLuxCore has no colourspaces support, so am I right to assume you are using the File Saver, and then by hand editing the render.cfg and scene.scn? If so, could you please provide an example?

I am using the light ACES 1.2 pack you posted in your first post (but I also tried the full one with the same result). I have extracted it to a directory and set my OCIO environment variable to point there. Everything looks fine in Blender, and I can also render in BlendLuxCore, but obviously the image texture colourspaces are wrong when I use an ACES EXR or material with ACES colour values.

When I try running my exported scene with luxcoreui.exe (latest daily) the window opens, and just before it starts rendering the first pixel, I get this error and then it closes immediately:

Code: Select all

[LuxCore][3.703] [MergeSampleBuffersOCL] Compiling Film_MergeBufferInitialize Kernel
[LuxCore][3.703] [MergeSampleBuffersOCL] Compiling Film_MergeRADIANCE_PER_PIXEL_NORMALIZED Kernel
[LuxCore][3.703] [MergeSampleBuffersOCL] Compiling Film_MergeRADIANCE_PER_SCREEN_NORMALIZED Kernel
[LuxCore][3.703] [MergeSampleBuffersOCL] Compiling Film_MergeBufferFinalize Kernel
[LuxCore][3.703] [MergeSampleBuffersOCL] Kernels compilation time: 15ms
[LuxCore][3.828] [NVIDIA GeForce RTX 2080 Ti CUDAIntersect] Memory used for hardware image pipeline: 31893Kbytes
RUNTIME ERROR: OpenColorIO Error in OpenColorIOToneMap::Apply(): Color space 'cie_xyz_d65_interchange' could not be found.
I couldn't find any reference to cie_xyz_d65_interchange in the ACES config.ocio file :(

I'd rather just copy what you have that's already working, but if it helps I'll also try to show what I am using.

Currently I am using some values that I hacked together from digging through Dade's and your various posts, and trying to reconcile those with the equivalent tokens I found in the very large ACES 1.2 config file. However I didn't find a current full example that I can follow.

In the render config: Ideally this would map LuxCore's internal linear FP32 representation to the Rec.709 Display transform to match what I see in Blender. Does that sound right?

Code: Select all

film.imagepipelines.000.0.type = "TONEMAP_OPENCOLORIO"
film.imagepipelines.000.0.mode = "COLORSPACE_CONVERSION"
film.imagepipelines.000.0.config = ""
film.imagepipelines.000.0.src = lin_srgb
film.imagepipelines.000.0.display = rec709_display
film.imagepipelines.000.0.view = sRGB
In the scene: One of the textures is ACES sRGB EXR (it's just mapped on a plane, not as an HDRI environment):

Code: Select all

scene.textures.1828644407304Color.type = "imagemap"
scene.textures.1828644407304Color.file = "imagemap-00001.exr"
scene.textures.1828644407304Color.gain = 1
scene.textures.1828644407304Color.colorspace = "opencolorio"
scene.textures.1828644407304Color.config = ""
scene.textures.1828644407304Color.name = "srgb_texture"
scene.textures.1828644407304Color.storage = "half"
One of the materials is a Glossy node with ACES sRGB colour:

Code: Select all

scene.materials.Material__g1829123584264.type = "glossy2"
scene.materials.Material__g1829123584264.kd = opencolorio "" srgb_texture 0.025715 0.063317 0.012282
It also doesn't make any difference whether I leave the configs empty ("") or specify the full path to the config.ocio file, I still get the same error.
AMD Ryzen Threadripper PRO 5995WX 64-Cores | 2x Gigabyte RTX 4090 Gaming OC
ASUS Pro WS WRX80E-SAGE SE WIFI | 256GB Kingston Server Premier ECC Unbuffered DDR4
User avatar
Sharlybg
Donor
Donor
Posts: 3101
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Luxcore To Aces Study

Post by Sharlybg »

Hi,
You can follow explanation from luximage with krita for texture convertion n page one.
And make sure the hdri color multiplier is full white.
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA
Luximage
Posts: 165
Joined: Sun Jan 14, 2018 8:01 pm

Re: Luxcore To Aces Study

Post by Luximage »

Some tips:
I never use sRGB in the view transform instead i usually use Rec.709(Rec.709 D60 is the same but with a warmer tint), also interesting are P3D65,
P3D65 Rec.709 limited, Rec.2020 and Rec.2020 HLG 1000 nits(increase the exposure in this one).
To make your image textures smaller after the krita conversion you can toss them in blender's image editor, save the simple textures used for objects texturing as exr float half with dwab codec and the environment textures used for lighting as hdr.
Remember greyscale textures and normal maps don't need conversion in krita, just use gamma 1 for the greyscale ones in image node editor(sometimes even leaving them to gamma 2.2 produces more pleasing results to the eye).
kintuX
Posts: 809
Joined: Wed Jan 10, 2018 2:37 am

RenderMan Utility Manager / Re: Luxcore To Aces Study

Post by kintuX »

RenderMan Utility Manager by @Amir

A utility that can speeds up pre-converting tex files, ACEScg colorspace conversion, building RenderManAsset out of PBR Metallic/Roughness texture sets, denoising rendered images via Hyperion Denoise Filtering or Intel Open Image Denoise.

• Pre converting tex files, along with ACEScg colorspace conversion and substance map to renderman material.

• It should be easy to work with but later I will make a short tutorial for how to use it. If you are using linux mint the debian-18.04 is the one you should download. Its been tested on CentOS7.6 and 8, Ubuntu, Pop!_OS, Mint.

Features
Tex: Building RenderManAsset out of PBR Metallic/Roughness texture sets
It will use the incoming texture files to create the PxrSurface-based material. It supports Albedo/BaseColor, Roughness, Metallic, Emissive, Displacement/Height. It will lookup for these keywords in the texture filename to construct the asset.
UDIM supported.

Tex: ACEScg colorspace conversion
It will use ocioconvert utility for converting incoming texture files to ACEScg colorspace.

HyperionDenoise
It uses Hyperion Denoise Filtering (RenderMan denoise tool) to filter incoming rendered images.

OIDenoise
It uses Intel Open Image Denoise example to filter incoming rendered images.

Requirements
This utility require the following softwares to operate:

- RenderMan Pro Server 21.0+
- OpenColorIO-tools
- Intel Open Image Denoise example
- ImageMagick

• Video tutorial: https://vimeo.com/364862427
Image

https://github.com/Amir-Ashkezari/Rende ... ty-Manager

Hopefully you find it useful. ;)
Luximage
Posts: 165
Joined: Sun Jan 14, 2018 8:01 pm

Re: Luxcore To Aces Study

Post by Luximage »

Nice finding kintuX :!: , interesting info.
Post Reply