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):
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 {
'setting1': True,
'setting2': "2",
'MaterialXFilenameKey': "MaterialXFilename",
}
def get_render_settings(self, engine_type):
return {
'setting1': 1,
'setting2': "2",
'enableTinyPrimCulling': True,
'maxLights': 8,
}
```
"""
@ -80,9 +79,18 @@ class HydraRenderEngine(bpy.types.RenderEngine):
pass
def get_sync_settings(self, engine_type):
"""
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 {}
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 {}
# final render