question

Zachary Mineo avatar image
Zachary Mineo asked ·

Hidden objects increase render time when Rendering to picture viewer

I was attempting to optimize my scene and it seems Arnold still exports hidden objects when rendering to picture viewer BUT not when exporting ass files.


Picture viewer Render with hidden geo:

00:00:15 17912MB         | scene creation time          0:11.94    machine utilization (0.14%) 
00:00:15 17912MB         |  plugin loading              0:00.49 
00:00:15 17912MB         |  unaccounted                 0:11.44 


Picture viewer Render with no geo:

00:00:04 17868MB         | scene creation time          0:00.58    machine utilization (1.21%) 
00:00:04 17868MB         |  plugin loading              0:00.48 
00:00:04 17868MB         |  unaccounted                 0:00.09 


Is this a limitation of cinema or is this something that could be change to behave in a similar way that .ass files exports handle hidden objects.


When I export .ass files from C4D it does not behave in the same way. Hidden geo will not be exported. This only happens when rendering straight to the picture viewer.


Related post about export .ass files in Maya with hidden objects.

c4dtoaassrenderview
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.

Peter Horvath avatar image
Peter Horvath answered ·

Picture Viewer and ASS export uses the same logic. If the object or parent is hidden (Visible in Render turned off), then it's not exported to Arnold.

What I'm seeing though, is that the shaders assigned to a hidden geometry are still exported. Does it make any difference, if you keep the geo but remove the shaders?

5 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.

Just saw this. Yeah we figured out it was the shaders. Is there anyway around this? its nice to have the speed of a procedural but have the original geo if we need to change something.
0 Likes 0 ·
Don't think you can work around this, without changing it in the plugin code.
0 Likes 0 ·
It's not GPU and I don't see osl, why are the shaders taking so much time?
0 Likes 0 ·
Zachary Mineo avatar image Zachary Mineo Stephen Blair ♦♦ ·

I have no idea. Do you have somewhere that I could send you the file I'm working with? It would have to send it privately because of NDA.

0 Likes 0 ·
Show more comments
Stephen Blair avatar image
Stephen Blair answered ·

Can you post the full logs?

And how do you hide these objects?

5 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.

Here they are. I turned off the parent null. Which makes me wonder if I should turn off all the objects individually. Let me try that.


arnold_Hidden_geo.txt

arnold_No_geo.txt

0 Likes 0 ·

Turning off all the objects in the hierarchy did not effect it. It still seems to be exporting the hidden geometry

0 Likes 0 ·

In hidden_geo, we have 4 polymesh and lots of shaders, so the geo is not hidden:

| there are 1 light and 6 objects:
...
|      26 standard_surface
|       1 bump2d
|       9 aov_write_float
|       4 color_correct
|       1 flakes
|      14 layer_shader
|       1 mix_rgba
|      12 normal_map
|       1 ramp_float
|       6 ramp_rgb
|      38 triplanar
|       1 user_data_float
|       1 uv_transform
|       5 c4d_texture_tag
|       3 c4d_texture_tag_rgba
|       1 gaussian_filter
|       4 polymesh
|       1 procedural
|       1 list_aggregate
|       1 driver_c4d_display
0 Likes 0 ·

So you have something like this?

1626893353279.png

0 Likes 0 ·
1626893353279.png (39.0 KiB)
Zachary Mineo avatar image Zachary Mineo Stephen Blair ♦♦ ·
Yes this is how I'm turning off the geo.
0 Likes 0 ·
Stephen Blair avatar image
Stephen Blair answered ·

In the hidden_geo, all the extra time is here:

00:00:00 17730MB         | loaded 13 plugins from 2 lib(s) in 0:00.00
00:00:11 17706MB         | 
00:00:11 17706MB         | authorizing with license manager: user ...
00:00:11 17706MB         | [user] authorized user "infoZZVT9"
00:00:11 17706MB         | [user] expiration date: 2022-07-13T19:59:59-04:00


That looks like licensing time, because not much else happens between "loading 13 plugins" and the license authorization.

Both logs show about the same amount of geometry being rendered. 1862696 polymeshes vs 1859560


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.

We changed the verbosity level to debug and you can see it hang up on the shaders.mtd

Screenshot 2021-07-21 154810.png

0 Likes 0 ·
Zachary Mineo avatar image
Zachary Mineo answered ·

@ It looks like the issue was the shaders compiling. Even though the geometry is off Arnold must see that shaders are applied to geo and still compile them. I can send you the file if you'd like but it would have to be directly because of NDA.

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.