Hello, everyone,
as always I'm not sure whether this is a bug or a user error.
I got this background line that is masked so it doesn't intersect with the foreground object ('Reveal all' on the group, then 'Subtract' on the mask layer).
As you can see it works as it should in the viewport...
... in the preview render (CTRL-R) ...
... but not in the final, exported render (neither image sequence nor MP4):
An idea why this is?
Thanks,
Marc
Masking works in viewport and preview, not in export.
Moderators: Víctor Paredes, Belgarath, slowtiger
Re: Masking works in viewport and preview, not in export.
Hard to say without seeing your masking setup (layer order/grouping and settings.)
But here's what I would do:
carMaskTest.moho
The result looks like this:
Basically, I'm using a duplicate of the truck as a mask, parented to the same bone. The vectors have been expanded in the duplicate to expand the width of the mask. Same Mask settings as you described (Reveal All and Subtract/Invisible.)
But here's what I would do:
carMaskTest.moho
The result looks like this:
Basically, I'm using a duplicate of the truck as a mask, parented to the same bone. The vectors have been expanded in the duplicate to expand the width of the mask. Same Mask settings as you described (Reveal All and Subtract/Invisible.)
Last edited by Greenlaw on Thu Mar 28, 2019 12:38 am, edited 1 time in total.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Re: Masking works in viewport and preview, not in export.
Many thanks.
Weird though that it is only the export that doesn't work...
Marc
That's pretty much what I did. Used a reference layer for the duplicate, though, because the truck itself is already a group. I will check out your file at work tomorrow.Greenlaw wrote: Basically, I'm using a duplicate of the truck as a mask, parented to the same bone. The vectors have been expanded in the duplicate to expand the width of the mask. Same Mask settings as you described (Reveal All and Subtract/Invisible.)
Weird though that it is only the export that doesn't work...
Marc
- synthsin75
- Posts: 9973
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Masking works in viewport and preview, not in export.
Ctrl+R and exported sequence or movie should be the same, so I'd have to see a file that shows the problem to dissect it.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: Masking works in viewport and preview, not in export.
There might be something there.mrc wrote:...sed a reference layer for the duplicate, though...
I can't remember the exact details but there was a past situation where I wasn't able to use a Reference because the property I was changing was not a keyframeable property, and I wound up using a Duplicate instead of a Reference to solve it. It might have been masking but probably with groups not layers, so I don't really think it applies in your case but you might look into that. Depending on your setup, that could be it.
I probably have the situation documented somewhere...will look it up when I get a chance.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Re: Masking works in viewport and preview, not in export.
I've seen that happen when I've nested masks in a complicated (to Moho) way. There are certain masking combinations that might be okay with OpenGL but not with Rendering, and vice versa.mrc wrote:Weird though that it is only the export that doesn't work...
I've found that it best practice to minimize or avoid nesting mask groups where I can. There's usually more than one way to get the desired result.
Anyway, good luck and let us know how it goes.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Re: Masking works in viewport and preview, not in export.
OK, simplification did the trick: I broke the reference and consolidated the vector layers into one. Now the masking shows up in the rendered video, all good.
Interestingly, when I opened my file this morning the proper masking didn't show up in the viewport either. Only after the changes.
Marc
Interestingly, when I opened my file this morning the proper masking didn't show up in the viewport either. Only after the changes.
Marc
Re: Masking works in viewport and preview, not in export.
Yeah, that sounds familiar. If your Reference layer was a group (as in the past example I mentioned,) I'm guessing you tried different masking properties on the Reference? In this case Moho will appear to allow the change but when you quit the scene and reopen, you may find that it really hasn't. I think this is because the group masking mode is not a keyframeable property so it really can't be different from the original. When you render the project, that's essentially the same as closing and reopening the project, so you wind up rendering whatever the original group was set at. (Or something like that.)mrc wrote:Interestingly, when I opened my file this morning the proper masking didn't show up in the viewport either...
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion