Create possibility to provide render settings via BlenderSceneDelegate #41

Merged
Bogdan Nagirniak merged 10 commits from BLEN-349 into hydra-render 2023-05-19 20:19:17 +02:00
Showing only changes of commit e5d8d3f879 - Show all commits

View File

@ -23,14 +23,13 @@ class CustomHydraRenderEngine(HydraRenderEngine):
def get_sync_settings(self, engine_type): def get_sync_settings(self, engine_type):
Review

Consider to add a note that these settings refer to keys that Hydra asks.

Consider to add a note that these settings refer to keys that Hydra asks.
return { return {
'setting1': True, 'MaterialXFilenameKey': "MaterialXFilename",
'setting2': "2",
} }
def get_render_settings(self, engine_type): def get_render_settings(self, engine_type):
return { return {
'setting1': 1, 'enableTinyPrimCulling': True,
'setting2': "2", 'maxLights': 8,
} }
``` ```
""" """
@ -80,9 +79,18 @@ class HydraRenderEngine(bpy.types.RenderEngine):
pass pass
def get_sync_settings(self, engine_type): def get_sync_settings(self, engine_type):
"""

We need explanations of how these methods should be used / overridden

We need explanations of how these methods should be used / overridden
Provide settings for Blender scene delegate. Available settings:
`MaterialXFilenameKey` - if provided then MaterialX file will be provided directly to render delegate
without converting to HdMaterialNetwork
"""
return {} return {}
def get_render_settings(self, engine_type): def get_render_settings(self, engine_type):
"""
Provide render settings for render delegate. List of settings should be available in render delegate
documentation or in `pxr.UsdImagingGL.Engine.GetRendererSettingsList()`
"""
return {} return {}
# final render # final render