question

Luca Frizzarin avatar image
Luca Frizzarin asked ·

Clip geo and shadowmatte

Hi all,

if I put a clipgeo material on a scene that contains a shadowmatte material I'll get strange artifacts on the alpha and on the shadows.

Here's the normal "right" scene:

noclip.jpg

..and here with the right Alpha:

noclip-a.jpg

But...... After putting the geoclip material on the red box, the shadows look bugged. I always get strange straight lines on the shadows on the ground plane:

clip.jpg

..and this is the resulting alpha: it looks that the shadow matte stops working.

clip-a.jpg

So.. maybe a bug or am I miss something giant under my nose :) ?

I work a lot with shadowmatte.. and these artifacts with geoclip are hard to workaround.

The max file that generated this sample is here.

clip.zip

Thank you in advance!


PS: any updates coming on the GPU lack for the clipgeo and for the shadow matte?

alpha for geometryshadow matte
noclip.jpg (219.3 KiB)
noclip-a.jpg (219.4 KiB)
clip.jpg (184.2 KiB)
clip-a.jpg (18.5 KiB)
clip.zip (473.2 KiB)
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Mads Drøschler avatar image
Mads Drøschler answered ·

I put this as a separate answer so you can potentially flag this solved.
It comes with a clause however, but you can get it working, today.

For some reason the bug, and yes there is a bug, I will note dev about this thread so they see this so it can be fixed. - is related to scene scale and units. oddly enough.

It means little to non in a practical scenario since I "corrected" it and uploaded a version of your file that works perfect as seen here:

ccc.png

Do note, that due to the nature of this bug, you will not be able to change your Unit settings and make the box go away, you need to have a reset max with this setup, and force converting your scene into this new Unit.
It is likely that you can use values you normally use and the error has to be found in the way you inject different Unit setups both places.

I have attached a max 2020 file that works ace.

Feel free to flag this post as accepted, and I will go and report this issue to dev now.


clip2.zip


ccc.png (251.3 KiB)
clip2.zip (626.0 KiB)
1 comment
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

A big bow to you, Mads! :) Thank you for your precious time and help.




0 Likes 0 ·
Luca Frizzarin avatar image
Luca Frizzarin answered ·

Thank you Mads, but unfortunately i'm forced to use the shadow/matte for compositng, to separate shadows passes +diff+mask.

The main problem is that adding a geoclip shader in the scene, the plane catching the shadows stops working.

The artifacts appears also when not intersecting. And also between solid objects (= no single sided planes)


The most important fact is that if I delete the clipping object, the shadow matte will turn on " perfecting working" immediately

In this case the clipping box is floating.

immagine-2021-03-24-130828.jpg

.. and the alpha is 100% white.

And "a strange squared shadow" appears on the ground (bigger than the clipping box).

immagine-2021-03-24-130939.jpg




4 comments
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Did you try what I wrote in the first line?


2021-03-24-13-38-47.gif

0 Likes 0 ·

Yes, but alpha looks wrong. (better, but not right to be suitable for final production renders)

In this case, I used the matte as you wrote, and this is the resulting alpha

immagine-2021-03-24-135758.jpg

PS: the clipgeo objects is floating

0 Likes 0 ·

upload this scene, and set it so it returns the exact thing on your image when rendering.

I assume you want the box on the floor to be hidden?
Or do you want a hole there.

Upload and explain either case you want.

0 Likes 0 ·
Show more comments
Mads Drøschler avatar image
Mads Drøschler answered ·

Swap out the map to material with the actual Matte closure, it removes some of those glitches.

Also note, that when you insert a box to cut a plane, there is only 1 place it can sit and that is with the bottom face at the exact same location as the plane.
Else you will get edges as seen in your alpha shot.
You can also use a plane to cut another plane with a leaning on the clip geo since clip geo is a projection effect, it will trace the entire object sitting above it when only a small contact has been made.

11.png


1.png


11.png (208.1 KiB)
1.png (181.4 KiB)
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Luca Frizzarin avatar image
Luca Frizzarin answered ·

@Petros .. sorry I forgot: this behaviour is independent from trace sets. I tried also that.
And it is also independent from excluding the shadows casting from the arnold properties.

10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Petros Proestos avatar image
Petros Proestos answered ·

Maybe is this case?

https://www.youtube.com/watch?v=vKBEk5Wn4c8

I mean to assign a trace set to the floor...

10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.