Storm Hydra render addon #104597
@ -3,11 +3,13 @@
|
|||||||
|
|
||||||
# <pep8 compliant>
|
# <pep8 compliant>
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
from bpy_hydra import HydraRenderEngine
|
import bpy_hydra
|
||||||
|
|
||||||
|
|
||||||
class StormHydraRenderEngine(HydraRenderEngine):
|
class StormHydraRenderEngine(bpy_hydra.HydraRenderEngine):
|
||||||
bl_idname = 'StormHydraRenderEngine'
|
bl_idname = 'StormHydraRenderEngine'
|
||||||
bl_label = "Hydra: Storm"
|
bl_label = "Hydra: Storm"
|
||||||
brecht marked this conversation as resolved
Outdated
|
|||||||
bl_info = "Hydra Storm (OpenGL) render delegate"
|
bl_info = "Hydra Storm (OpenGL) render delegate"
|
||||||
brecht marked this conversation as resolved
Outdated
Brecht Van Lommel
commented
(OpenGL) is not accurate for Metal and Vulkan (OpenGL) is not accurate for Metal and Vulkan
|
|||||||
@ -17,6 +19,12 @@ class StormHydraRenderEngine(HydraRenderEngine):
|
|||||||
|
|
||||||
delegate_id = 'HdStormRendererPlugin'
|
delegate_id = 'HdStormRendererPlugin'
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def register(cls):
|
||||||
|
super().register()
|
||||||
|
|
||||||
|
bpy_hydra.register_plugins([str(Path(__file__).parent / "plugin")], [])
|
||||||
|
|
||||||
def get_delegate_settings(self, engine_type):
|
def get_delegate_settings(self, engine_type):
|
||||||
settings = bpy.context.scene.hydra_storm
|
settings = bpy.context.scene.hydra_storm
|
||||||
return {
|
return {
|
||||||
|
3
hydra_storm/plugin/plugInfo.json
Normal file
3
hydra_storm/plugin/plugInfo.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"Includes": [ "usd/*/resources/" ]
|
||||||
|
}
|
22
hydra_storm/plugin/usd/hdStorm/resources/plugInfo.json
Normal file
22
hydra_storm/plugin/usd/hdStorm/resources/plugInfo.json
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
brecht marked this conversation as resolved
Outdated
Brecht Van Lommel
commented
This should already be included with the USD libraries, why is it here again? This should already be included with the USD libraries, why is it here again?
Georgiy Markelov
commented
We think it's better to bundle this folder with addon to be sure everything is needed here. But no problem if you think it's better to move it to We think it's better to bundle this folder with addon to be sure everything is needed here. But no problem if you think it's better to move it to `blender.shared`.
Brecht Van Lommel
commented
I would expected it's already in It at least available to be copied there: I would expected it's already in `blender.shared`?
It at least available to be copied there:
https://svn.blender.org/svnroot/bf-blender/trunk/lib/linux_x86_64_glibc_228/usd/plugin/usd/hdStorm/resources/
Georgiy Markelov
commented
Yes, it was. Should we remove this folder here and add copying to Yes, it was. Should we remove this folder here and add copying to `blender.shared`?
Brecht Van Lommel
commented
Yes. Yes.
|
|||||||
|
"Plugins": [
|
||||||
|
{
|
||||||
|
"Info": {
|
||||||
|
"Types": {
|
||||||
|
"HdStormRendererPlugin": {
|
||||||
|
"bases": [
|
||||||
|
"HdRendererPlugin"
|
||||||
|
],
|
||||||
|
"displayName": "GL",
|
||||||
|
"priority": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"LibraryPath": "",
|
||||||
|
"Name": "hdStorm",
|
||||||
|
"ResourcePath": "resources",
|
||||||
|
"Root": "..",
|
||||||
|
"Type": "library"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
3
hydra_storm/plugin/usd/plugInfo.json
Normal file
3
hydra_storm/plugin/usd/plugInfo.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"Includes": [ "*/resources/" ]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user
Hydra: Storm -> Hydra Storm