Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Bug Reporting => [Max] Resolved Bugs => Topic started by: aaouviz on 2022-11-11, 15:59:40

Title: Tonemap control in direct visibility override NaN
Post by: aaouviz on 2022-11-11, 15:59:40
Hi,

We discussed this problem in the dailies of V9 but it was never resolved.

Please see the attached video; if I plug in a tonemapcontrol (and untick the lut and tonemapping - unticking exposure doesn't cause the NaN) into direct visibility override I get the Nan error.

Hope this is clear, reproduceable and fixable :)
Title: Re: Tonemap control in direct visibility override NaN
Post by: Aram Avetisyan on 2022-11-14, 16:11:20
Hi,

I was not able to reproduce this on a simple scene, using different HDRI maps and doing the steps you mentioned.
This is probably scene and maybe tone mapping) specific.

Please, if possible, attach a simplified scene with the models/textures/maps causing the issue.
Title: Re: Tonemap control in direct visibility override NaN
Post by: aaouviz on 2022-11-14, 19:34:32
Hi,

Thanks for following up on this.

I tested on a blank scene. I did exactly the same process and still get the NaN.

More info; the environment mode is set to screen as I'm not using a HDRi spherical environment map/image.

I checked the image in photoshop, its RGB 8bit. So nothing special/curious there. I tried with a different completely chosen at random jpeg and the problem did not persist! So it must be my image?

I re-sized, re-saved the image multiple times in multiple formats. Still happening. I edited the levels, still happening. Tried with native bitmap texture node. I even took a screenshot of the image and pasted it into a new file... all still gives me the error!

The only luck I had was to change the levels in Photoshop insanely, so it was almost a grey image. No error then. So what's causing this?

The image came from dji drone and happens for all the images in this set.

I'll upload the original image into the private upload area.

Thanks :)
Title: Re: Tonemap control in direct visibility override NaN
Post by: Aram Avetisyan on 2022-11-15, 13:15:09
This has been reproduced with few random images, and has been reported.

If there is:

• Direct Visibility override enabled, which has CoronaTonemapControl map with any bitmap
• "Punchy filmic" preset applied in tone mapping settings (building up the same preset one by one with operators did not lead to NaN in my tests)
• Toggling "Tone mapping" option in CoronaTonemapControl map will lead to an NaN error
• Scene can be absolutely empty

The error won't go away and there will be artifact in the render even if the option is enabled/disabled back, nor when resetting tone mapping setting, not after Resetting settings (Render Settings > Scene > Reset settings).
The scene has to be reopened or 3ds Max reopened.

Thanks for reporting this.

(Internal ID=1006431002)

Title: Re: Tonemap control in direct visibility override NaN
Post by: aaouviz on 2022-11-15, 13:40:19
Thanks again Aram, you've been very persistent and helpful.
Title: Re: Tonemap control in direct visibility override NaN
Post by: DPS on 2023-04-03, 02:15:13
Same problem here.
Title: Re: Tonemap control in direct visibility override NaN
Post by: rowmanns on 2023-04-20, 16:13:04
Hi,

This has been fixed in the v10 daily builds.
 
Please make sure you are using the latest daily and let me know if you still get the problem.

Cheers!