# Regrain in ACES

**URL:** <https://forum.logik.tv/t/regrain-in-aces/3921>\
**Category:** Flame Questions\
**Created:** [September 29, 2021, 2:05am UTC](https://forum.logik.tv/t/regrain-in-aces/3921 "2021-09-29T02:05:00Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![eversondigital](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/eversondigital/32/474_2.png) [@eversondigital](https://forum.logik.tv/u/eversondigital)\
**Post date:** [September 29, 2021, 2:05am UTC](https://forum.logik.tv/t/regrain-in-aces/3921/1 "2021-09-29T02:05:00Z")

</div>

Sorry if this is easy, but I am not getting it.  
Most (99%) of my work in TVC at REC709. No linear workflow stuff.  
My regular clean up goes like this: Neat video to take the grain/noise out, do the clean up work, and then re-apply the noise via subtract-add comp nodes. Works most of the time no problem.  
Working now on an ACES job, and the adding the grain back this way just does not give me the results I expect. Does this have something to do with the way linear video behaves?  
Any ideas would be helpful, as I am loosing whats left of my hair just trying to add grain back.  
Thanks.

---

<div class="post-metadata">

**Author:** ![PlaceYourBetts](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/placeyourbetts/32/6852_2.png) [@PlaceYourBetts](https://forum.logik.tv/u/PlaceYourBetts)\
**Post date:** [September 29, 2021, 2:12am UTC](https://forum.logik.tv/t/regrain-in-aces/3921/2 "2021-09-29T02:12:49Z")

</div>

I try not to re grain in ACES (linear) but that isn’t a good answer.

Can you denoise, subtract from the orignal plate and then add it back to the denoise plate and make it look the same?  
The order of subtraction is important. Which one is subtracted from the other matters.

I just did a test and it seemed to work for me in ACES. What type of error are you getting?

---

<div class="post-metadata">

**Author:** ![milanesa](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@milanesa](https://forum.logik.tv/u/milanesa)\
**Post date:** [September 29, 2021, 3:55am UTC](https://forum.logik.tv/t/regrain-in-aces/3921/3 "2021-09-29T03:55:16Z")

</div>

For linear workflow, try dividing de the original plate by the degrained one. Then multiply the result by the comp. Depending on the comp work done, the regrain may not be even.

---

<div class="post-metadata">

**Author:** ![randy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/randy/32/6122_2.png) [@randy](https://forum.logik.tv/u/randy)\
**Post date:** [September 29, 2021, 3:57am UTC](https://forum.logik.tv/t/regrain-in-aces/3921/4 "2021-09-29T03:57:37Z")

</div>

Yeah something ain’t right. 2-1 =1 in ACES.

---

<div class="post-metadata">

**Author:** ![andy\_dill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andy_dill/32/15475_2.png) [@andy\_dill](https://forum.logik.tv/u/andy_dill)\
**Post date:** [September 29, 2021, 4:19am UTC](https://forum.logik.tv/t/regrain-in-aces/3921/5 "2021-09-29T04:19:12Z")

</div>

The add/subtract grain trick works best if your footage is log.

My workflow:

1. Convert plate from ACES (or ACEScg, or Scene Linear Alexa Wide Gamut, Etc) to ACEScct via the Input transform of a Color Management node
2. Denoise the plate
3. Subtract the denoised plate from the original plate
4. Convert the denoised plate back to ACEScg with another Input transform (copy the first one and hit the invert button)
5. Comp the shot in linear.
6. Convert the comped shot BACK to ACEScct again
7. Add the grain subtract pass back on
8. Convert the shot to ACEScg one final time and render.

I did a quick test and the attached image shows the difference. In the linear image, the altered area gets mustardy and very little grain is added back in spots. The log image shows the usual artifacts where details were altered, but the grain is more consistent and does not have any color shifts.

 ![DenoiseLogLin000001](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/b/b33df8ea4d039f36b3e2915c4350560c8a1d8c1b.jpeg)

---

<div class="post-metadata">

**Author:** ![johnt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/johnt/32/14040_2.png) [@johnt](https://forum.logik.tv/u/johnt)\
**Post date:** [September 29, 2021, 10:32am UTC](https://forum.logik.tv/t/regrain-in-aces/3921/6 "2021-09-29T10:32:04Z")

</div>

If doing the subtract method - I will subtract and add grain in linear (whatever flavour).

If graining back where you can’t add the original grain, I have used Log to add grain back A LOT am a strong advocate for this. However, my head has been turned recently by Crok Renoise - graining in Linear as it’s got a nice Alexa grain and you can change grain size, amount and there are curves. It’s pretty decent. Haven’t done any Episodic or cinema stuff with it though - just Adverts at 2 to 6k.

---

<div class="post-metadata">

**Author:** ![finnjaeger](https://avatars.discourse-cdn.com/v4/letter/f/e99b99/32.png) [@finnjaeger](https://forum.logik.tv/u/finnjaeger)\
**Post date:** [September 29, 2021, 12:55pm UTC](https://forum.logik.tv/t/regrain-in-aces/3921/7 "2021-09-29T12:55:57Z")

</div>

dasGrain… I just drag the thing though nuke and export a grain plate and then import back into flame … voila 🙂

---

<div class="post-metadata">

**Author:** ![cnoellert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/cnoellert/32/559_2.png) [@cnoellert](https://forum.logik.tv/u/cnoellert)\
**Post date:** [September 29, 2021, 4:02pm UTC](https://forum.logik.tv/t/regrain-in-aces/3921/8 "2021-09-29T16:02:12Z")

</div>

That shit should be pyboxed tout suite.

---

<div class="post-metadata">

**Author:** ![finnjaeger](https://avatars.discourse-cdn.com/v4/letter/f/e99b99/32.png) [@finnjaeger](https://forum.logik.tv/u/finnjaeger)\
**Post date:** [September 29, 2021, 4:26pm UTC](https://forum.logik.tv/t/regrain-in-aces/3921/9 "2021-09-29T16:26:49Z")

</div>

for real!

---

<div class="post-metadata">

**Author:** ![eversondigital](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/eversondigital/32/474_2.png) [@eversondigital](https://forum.logik.tv/u/eversondigital)\
**Post date:** [September 29, 2021, 5:26pm UTC](https://forum.logik.tv/t/regrain-in-aces/3921/10 "2021-09-29T17:26:52Z")

</div>

Tried to follow along here, but when i convert the comp back, but when I switch the color management node to input transform, flame shows no result.

---

<div class="post-metadata">

**Author:** ![andy\_dill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andy_dill/32/15475_2.png) [@andy\_dill](https://forum.logik.tv/u/andy_dill)\
**Post date:** [September 29, 2021, 5:46pm UTC](https://forum.logik.tv/t/regrain-in-aces/3921/11 "2021-09-29T17:46:19Z")

</div>

Hard to say without looking at the setup. The usual culprit is the input transform defaulting to “from rules”. If the comp isn’t tagged correctly (and there are plenty of ways that can occur) those rules don’t know what to do.

Specify what the incoming and outgoing colorspaces are it should work.

---

<div class="post-metadata">

**Author:** ![andy\_dill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/andy_dill/32/15475_2.png) [@andy\_dill](https://forum.logik.tv/u/andy_dill)\
**Post date:** [September 29, 2021, 6:11pm UTC](https://forum.logik.tv/t/regrain-in-aces/3921/12 "2021-09-29T18:11:59Z")

</div>

Given that it’s _just_ (italics to indicate ignorance/sarcasm) a Nuke GIzmo, shouldn’t we be able to open up said Gizmo and re-create the work it’s doing in a flame context? And _if_ we can rebuild it in flame _ **AND** _ the creator is okay with us doing so, couldn’t we have it in flame?

---

<div class="post-metadata">

**Author:** ![finnjaeger](https://avatars.discourse-cdn.com/v4/letter/f/e99b99/32.png) [@finnjaeger](https://forum.logik.tv/u/finnjaeger)\
**Post date:** [September 29, 2021, 6:22pm UTC](https://forum.logik.tv/t/regrain-in-aces/3921/13 "2021-09-29T18:22:49Z")

</div>

Ivar tried to recreate it as a matchbox… it should be doable I mean its all  
open source so … try? 😃 dasGrain rulez.

---

<div class="post-metadata">

**Author:** ![cnoellert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/cnoellert/32/559_2.png) [@cnoellert](https://forum.logik.tv/u/cnoellert)\
**Post date:** [September 30, 2021, 3:40am UTC](https://forum.logik.tv/t/regrain-in-aces/3921/14 "2021-09-30T03:40:16Z")

</div>

Many have tried. None have succeeded.

I may give it a go one day soon.

---

<div class="post-metadata">

**Author:** ![randy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/randy/32/6122_2.png) [@randy](https://forum.logik.tv/u/randy)\
**Post date:** [September 30, 2021, 12:48pm UTC](https://forum.logik.tv/t/regrain-in-aces/3921/15 "2021-09-30T12:48:26Z")

</div>

No result as in black frame? Or no result as in No Result in the brim right corner? If so it’s likely a bit depth error. Neat outputs 32bit.

---

<div class="post-metadata">

**Author:** ![TimC](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/timc/32/11881_2.png) [@TimC](https://forum.logik.tv/u/TimC)\
**Post date:** [September 30, 2021, 1:27pm UTC](https://forum.logik.tv/t/regrain-in-aces/3921/16 "2021-09-30T13:27:27Z")

</div>

@andy_dill - i gave it a half-assed try about 2 years ago while chatting with Ivar about it. He said it was a frequent request. i agree with @finnjaeger it would be amazing to have in flame. Maybe @kyleobley has made some headway here…

> [@Das Grain in Matchbox form?](https://forum.logik.tv/t/das-grain-in-matchbox-form/552/17):
>
> i sort of hit a wall when trying to do my own scatter (what the voronoi function does in Das). i couldn’t randomize it enough in flame with just the off the shelf nodes and it also took a filtering / brightness hit

---

<div class="post-metadata">

**Author:** ![kyleobley](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@kyleobley](https://forum.logik.tv/u/kyleobley)\
**Post date:** [September 30, 2021, 3:51pm UTC](https://forum.logik.tv/t/regrain-in-aces/3921/17 "2021-09-30T15:51:36Z")

</div>

Sorry to disappoint Tim, but I’ve never really put much time into it. If Ivar wasn’t able to crack that nut there’s no chance I’ll be able to do it!
