Scaling and anti-aliasing

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Greg Huson

  • Posts: 212
  • Joined: Mon Oct 01, 2012 10:34 pm
  • Location: Culver City, CA

Scaling and anti-aliasing

PostWed May 02, 2018 2:53 am

So, I'm finishing a series that was shot all 4k, but my timelines are HD for now. However, we may need to re-render in UHD, so I'm doing all the (very simple) title graphics in Photoshop - at UHD frame sizes. When I drop them into Resolve, they scale correctly, and I can cut them right in - but I'm getting a too much aliasing on diagonal edges. I switched the sequence to UHD, and looked at the composites- no aliasing, looks great.

Is there a trick for down scaling without aliasing? In my Project Settings the image scaling is set to smoother - but changing that setting makes no apparent difference at all, regardless.

As a test, I scaled a couple graphics in Photoshop, and cut them in as HD. No apparent aliasing. BUT, don't really want to make two versions of all the graphics if I can avoid it.

Suggestions?
GH
----------------------------------------------------
Greg Huson
Secret Headquarters, Inc
Post Production / Production
Santa Monica, CA
323 677 2092
www.SecretHQ.com
greg (at) SecretHQ.com
Offline

Andrew Kolakowski

  • Posts: 9211
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Scaling and anti-aliasing

PostWed May 02, 2018 10:51 am

Hmmm- smoother setting should work in this case. Maybe something is broken.
Try creating two UHD versions- normal and another where you add small gaussian blur in Photoshop (0.5 for start?). This should behave better after downscaling.

Another question is how do you monitor HD signal? If you do it with BM card on TV over interlaced signal (eg 50i) this will be the reason.
Offline

Greg Huson

  • Posts: 212
  • Joined: Mon Oct 01, 2012 10:34 pm
  • Location: Culver City, CA

Re: Scaling and anti-aliasing

PostWed May 02, 2018 11:32 pm

Thanks for the ideas.

Monitoring is Decklink HD 23.98 psf

Tried switching to 23.98 p (true p) with no change in appearance. The aliasing is visible in the viewer, too, full screen on the computer monitor, 1:1 or any size.

Tried the soft-edge characters, also no significant improvement, and they're a touch, well, soft! This seems to be an issue in the scaler - just not finding a way to solve he problem, short of scaling the text in AE and making two versions of it, or living with the aliasing.

Also, I DON'T see the problem if I generate the text in Resolve, but Resolve (14) doesn't have enough control over aspect changes, mixing fonts, etc. (Actually, I don't know how Resolve generated text would scale, either, since I'm not making the Resolve text in 4k then changing the timeline settings. I assume the text is vector, but that's just an assumption.)

Any additional tips/suggestions appreciated!
GH
----------------------------------------------------
Greg Huson
Secret Headquarters, Inc
Post Production / Production
Santa Monica, CA
323 677 2092
www.SecretHQ.com
greg (at) SecretHQ.com
Offline
User avatar

Sergey Mirontsev

  • Posts: 256
  • Joined: Sun Mar 12, 2017 9:18 am
  • Location: Moscow, Russia

Re: Scaling and anti-aliasing

PostThu May 03, 2018 4:33 am

Greg Huson wrote:
Any additional tips/suggestions appreciated!


Strange question but... what color science do you use? RCM or ACES?
I had similar problem with ACES.
Blackmagic Design Certified Master Trainer

Blackmagic Pocket Cinema Camera (Samyang 12mm Cine, 35mm Cine)
DaVinci Resolve Studio 17.4.4.0007
Speed Editor 1.4.1
Windows 10 Pro 21H1, i7-7700, 32Gb RAM, SSD, GeForce GTX 1080 Ti 11Gb (471.68 Studio)
Offline

Rohit Gupta

Blackmagic Design

  • Posts: 1630
  • Joined: Wed Aug 22, 2012 5:00 am

Re: Scaling and anti-aliasing

PostThu May 03, 2018 8:04 am

Greg Huson wrote:Thanks for the ideas.

Monitoring is Decklink HD 23.98 psf

Tried switching to 23.98 p (true p) with no change in appearance. The aliasing is visible in the viewer, too, full screen on the computer monitor, 1:1 or any size.

Tried the soft-edge characters, also no significant improvement, and they're a touch, well, soft! This seems to be an issue in the scaler - just not finding a way to solve he problem, short of scaling the text in AE and making two versions of it, or living with the aliasing.

Also, I DON'T see the problem if I generate the text in Resolve, but Resolve (14) doesn't have enough control over aspect changes, mixing fonts, etc. (Actually, I don't know how Resolve generated text would scale, either, since I'm not making the Resolve text in 4k then changing the timeline settings. I assume the text is vector, but that's just an assumption.)

Any additional tips/suggestions appreciated!


Are you using 4:4:4 or 4:2:2 SDI monitoring?
Rohit Gupta

DaVinci Resolve Software Development
Blackmagic Design
Offline

Greg Huson

  • Posts: 212
  • Joined: Mon Oct 01, 2012 10:34 pm
  • Location: Culver City, CA

Re: Scaling and anti-aliasing

PostThu May 03, 2018 4:54 pm

Color Science - Resolve

Monitoring 4:2:2, SDI via older decklink extreme to Sony PVM OLED
GH
----------------------------------------------------
Greg Huson
Secret Headquarters, Inc
Post Production / Production
Santa Monica, CA
323 677 2092
www.SecretHQ.com
greg (at) SecretHQ.com
Offline

Andrew Kolakowski

  • Posts: 9211
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Scaling and anti-aliasing

PostThu May 03, 2018 5:36 pm

Yes, seems like scaling is just doing way to much sharpening, so you get aliasing. Sounds like a bug.
Offline
User avatar

Jean Claude

  • Posts: 2973
  • Joined: Sun Jun 28, 2015 4:41 pm
  • Location: France

Re: Scaling and anti-aliasing

PostThu May 03, 2018 5:43 pm

Greg Huson wrote:.../...
As a test, I scaled a couple graphics in Photoshop, and cut them in as HD. No apparent aliasing. BUT, don't really want to make two versions of all the graphics if I can avoid it.

Suggestions?


Can you give a download link to your PSD? It's very interesting.
"Saying it is good, but doing it is better! "
Win10-1809 | Resolve Studio V16.1 | Fusion Studio V16.1 | Decklink 4K Extreme 6G | RTX 2080Ti 431.86 NSD driver! |
Offline
User avatar

Jed Mitchell

  • Posts: 165
  • Joined: Tue Nov 03, 2015 11:04 pm
  • Location: New York, NY

Re: Scaling and anti-aliasing

PostThu May 03, 2018 5:50 pm

Andrew Kolakowski wrote:Yes, seems like scaling is just doing way to much sharpening, so you get aliasing. Sounds like a bug.


This is an issue that has been around since forever. Antialiasing in Resolve is kind of broken, whatever filters they're using are apparently garbage. You can even see this with the built-in text tool (look at the curved and diagonal edges):

Image

This is especially true with alpha channels, which break rather badly in many formats:


Image
White logo on white BG, scaled down 50%, viewed at 100% zoom -- see the terrible edge aliasing where the alpha is being filtered incorrectly, creating a nasty halo?


Image
Same white logo on white BG, NOT scaled (and therefor not filtered), viewed at 100% zoom -- nothing to look at here, because the alpha isn't being filtered and so multiplying it creates no halo.

It's a pretty show-stopping bug, and is the *one* thing left in Resolve that really irks me and keeps me from being able to get away from Adobe products entirely. The fact that it's persisted so long, and isn't fixed even in DR15, kills me. There is no other video app I know of that has such terrible filtering issues.
"It's amazing what you can do when you don't know you can't do it."


Systems:
R16.2.3 | Win10 | i9 7940X | 128GB RAM | 1x RTX Titan | 960Pro cache disk
R16.2.3 | Win10 | i9 7940X | 128GB RAM | 1x 2080 Ti | 660p cache disk
Offline

Andrew Kolakowski

  • Posts: 9211
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Scaling and anti-aliasing

PostThu May 03, 2018 7:40 pm

Yes, it can be related to whole alpha issue. I though it's different problem, but it may not be.
Offline

Greg Huson

  • Posts: 212
  • Joined: Mon Oct 01, 2012 10:34 pm
  • Location: Culver City, CA

Re: Scaling and anti-aliasing

PostFri May 04, 2018 2:51 am

Sadly, I think Jed Mitchell has the answer - alpha scaling.

These graphics are VERY simple - white text writ large, almost full screen. So, if I make UHD-sized white on black cards in PS, no alpha, import them in, and swap that in, then change the transfer mode to say, add, the diagonal edges of the auto-scaled graphic are clean - no obvious aliasing. (bonus, I get more interesting interaction between the background and the title card this way, too.)

While this sucks, since I'll have to go back over 15 episodes and make these changes, it's at least a solution for now. Certainly wouldn't solve the problem if the graphic were anything else.

Fix that alpha problem please!!
GH
----------------------------------------------------
Greg Huson
Secret Headquarters, Inc
Post Production / Production
Santa Monica, CA
323 677 2092
www.SecretHQ.com
greg (at) SecretHQ.com
Offline

Hendrik Proosa

  • Posts: 3037
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: Scaling and anti-aliasing

PostFri May 04, 2018 8:30 am

Has anyone tried forcing linearized timeline to see if problem is also visible there? It sounds like filtering non-linear premultiplied RGB values produces wrong RGB results in relation to alpha and this creeps out as halo/aliasing. It could probably be cured by unpremulting the RGB before transform operation and premulting again after.

EDIT: Dark halo in the white-on-white image suggests double premultiplication. Gamma-corrected RGB values interpolated as is shouldn't produce darker result... If a gamma 2.2 timeline pixel with 1.0 value and 1.0 alpha is interpolated to 0.5 RGB and 0.5 alpha it still produces correct unpremulted value. BG*(1-alpha) also produces 0.5 and combined over will be 1.0 as expected. So something additional is done that skews RGB values. It could be explored by feeding a linear ramp and probing the resulting values.
I do stuff
Offline
User avatar

Frank Glencairn

  • Posts: 1801
  • Joined: Wed Aug 22, 2012 7:07 am
  • Location: Germany

Re: Scaling and anti-aliasing

PostFri May 04, 2018 10:39 am

Run into the same thing a while ago. Can't remember which one it was (maybe TIFF), but using a different file format for text with alpha, fixed the problem with alpha bleeding.
http://frankglencairn.wordpress.com/

I told you so :-)
Offline

Radambe

  • Posts: 5
  • Joined: Fri Apr 13, 2018 1:24 am
  • Location: San Francisco
  • Real Name: R. Adam Berk

Re: Scaling and anti-aliasing

PostSun Jun 17, 2018 9:47 am

We have run into so much trouble with applying graphics inside resolve that it has eventually become policy now that nothing is ever to be finished out of resolve. It's sad and it sucks, but the fact remains that we have not been successful in finding any foolproof way to apply supers to a graded spot using the multilayer timeline inside Resolve.

My most recent experience with this involved set type from the client that originally came in as PNG's with embedded alpha. I was grading in HD, but delivering both HD and UHD. My sources were some type of XAVC Slog3 as well as a few drone shots in H.264, all of which was UHD 3840x2160. The PNG's were different sizes, all of which large enough for UHD output, all of which required scaling and positioning.

Adding those PNG's with embedded alpha looked absolutely horrendous.

Converting those PNG's to TIFF's might have made a slight improvement. I cant remember exactly, but it still looked horrendous.

Converting these graphics from the original PNG's with embedded alpha to ProRes4444's with embedded alphas using After Effects at first appeared to fix the shoddy edges, but upon closer inspection, they were still fairly ugly.

In the end, after wasting a couple hours trying to troubleshoot this again for the Nth time, I output graded flats and sent them to Flame where we could apply the graphics and output the ProResHQ masters without issue.

This has been a problem for us in Resolve for years.
-R. Adam Berk
Colorist | Flame Artist
CT-SF.com
Offline

Peter Chamberlain

Blackmagic Design

  • Posts: 13937
  • Joined: Wed Aug 22, 2012 7:08 am

Re: Scaling and anti-aliasing

PostTue Jun 19, 2018 3:51 am

Have you had a chance to review v15b5 as there was some work there related to this?
In conjunction with the above, see if setting the resize filter to smoother gets what you are looking for.
DaVinci Resolve Product Manager
Offline
User avatar

Igor Riđanović

  • Posts: 1596
  • Joined: Thu Jul 02, 2015 5:11 am
  • Location: Los Angeles, Calif.

Re: Scaling and anti-aliasing

PostTue Jun 19, 2018 7:28 am

I think there is more to it than just a substandard job on alpha scaling. A little while ago I was comparing Resolve scaling options to Fusion scaling filter selections using a zone plate without alpha. Resolve's scaling was worse than Fusion's.

To avoid aliasing I've been scaling all animated out-of-house thin lined graphics in Fusion and then importing to Resolve.
www.metafide.com - DaVinci Resolve™ Apps
Offline
User avatar

Julian van Mil

  • Posts: 44
  • Joined: Sat Mar 26, 2016 12:46 pm

Re: Scaling and anti-aliasing

PostTue Jun 19, 2018 1:10 pm

Discussed before - we can't use resolve for finishing for this very reason. Doesn't pass QC
viewtopic.php?f=21&t=62426

We go to either premier or nuke studio for finals. A lot of studios go to flame. It's such a simple thing too. If iMovie can do it...

I've not tried the beta yet, but I really hope this is fixed. Also simple things like terrible aliasing on non-blurred bezier shapes in the colour tab.

It's a shame.
Studio Feather
www.studiofeather.com
Offline

Peter Chamberlain

Blackmagic Design

  • Posts: 13937
  • Joined: Wed Aug 22, 2012 7:08 am

Re: Scaling and anti-aliasing

PostWed Jun 20, 2018 1:58 am

Once again, have you reviewed version 15b5?
DaVinci Resolve Product Manager
Offline
User avatar

Uli Plank

  • Posts: 21644
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: Scaling and anti-aliasing

PostWed Jun 20, 2018 4:36 am

Just one remark: colorists normally blur shapes in that tab!
It's not really meant for anything like rotoscoping, rather use Fusion for such tasks.
Now that the cat #19 is out of the bag, test it as much as you can and use the subforum.

Studio 18.6.6, MacOS 13.6.6, 2017 iMac, 32 GB, Radeon Pro 580
MacBook M1 Pro, 16 GPU cores, 32 GB RAM and iPhone 15 Pro
Speed Editor, UltraStudio Monitor 3G
Offline
User avatar

Julian van Mil

  • Posts: 44
  • Joined: Sat Mar 26, 2016 12:46 pm

Re: Scaling and anti-aliasing

PostWed Jun 20, 2018 1:33 pm

So I tried the 15v5 beta today and I'm happy to say there's definitely improvement. I took a simple white text png. with straight alpha into a clean timeline and rendered out of resolve to compare with nuke. Scaling set to 'smoother' and anti-aliasing set to 'on'.

All examples are left side resolve, right side nuke. In a lot of cases I actually now prefer the resolve scale - but at 5% zoom it breaks down. Important to note that I'm comparing renders (prores HQ) not the viewer.

100%
Image

60%
Image

20%
Image

5%
Image
Studio Feather
www.studiofeather.com
Offline

Hendrik Proosa

  • Posts: 3037
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: Scaling and anti-aliasing

PostWed Jun 20, 2018 2:23 pm

If Resolve used meaningful names (what does Smoother mean?) for resizing filters, it would be possible to choose the same in Nuke. May come handy in some cases to use identical one.

Which filter did you use in Nuke by the way?
I do stuff
Offline
User avatar

Julian van Mil

  • Posts: 44
  • Joined: Sat Mar 26, 2016 12:46 pm

Re: Scaling and anti-aliasing

PostWed Jun 20, 2018 2:45 pm

Hendrik Proosa wrote:If Resolve used meaningful names (what does Smoother mean?) for resizing filters, it would be possible to choose the same in Nuke. May come handy in some cases to use identical one.

Which filter did you use in Nuke by the way?


To keep comparison 'fair' I used nuke's default 'cubic' filter... but normally I prefer something a little smoother like mitchel.
Studio Feather
www.studiofeather.com
Offline

sermiranda

  • Posts: 2
  • Joined: Tue Dec 24, 2019 1:24 pm
  • Real Name: Sergio Miranda

Re: Scaling and anti-aliasing

PostWed Apr 27, 2022 8:55 am

I don't know if this will work in resolve, but I've been ding it in Photoshop for ages.

When using a zoom level, in the viewer, always use halves of 100% (so, 50%, 25%, 12,5%, and so on).

It fixes aliasing problems in photoshop, and since so, I use it also on DVR.
s

Return to DaVinci Resolve

Who is online

Users browsing this forum: James Ashbolt and 133 guests