Permalink
Browse files

Corona first test

Signed-off-by: haggi <git@haggi.de>
  • Loading branch information...
1 parent 5761307 commit b290b5d4a8d849256914fcd3f5b7fbd3dbc97296 haggi committed Mar 20, 2013
Showing with 789 additions and 2,257 deletions.
  1. +0 −6 src/mayaToCorona/deployment/mayaToCorona/mayaToAppleseed.mod
  2. +0 −35 src/mayaToCorona/deployment/mayaToCorona/scripts/AETemplates/AEappleseedNodeTemplate.py
  3. +0 −68 src/mayaToCorona/deployment/mayaToCorona/scripts/AETemplates/AEappleseedSurfaceShaderTemplate.py
  4. +0 −33 src/mayaToCorona/deployment/mayaToCorona/scripts/AETemplates/AEmtap_aoShaderTemplate.py
  5. +0 −30 src/mayaToCorona/deployment/mayaToCorona/scripts/AETemplates/AEmtap_aoVoxelShaderTemplate.py
  6. +0 −31 src/mayaToCorona/deployment/mayaToCorona/scripts/AETemplates/AEmtap_constantShaderTemplate.py
  7. +0 −31 src/mayaToCorona/deployment/mayaToCorona/scripts/AETemplates/AEmtap_diagnosticShaderTemplate.py
  8. +0 −39 src/mayaToCorona/deployment/mayaToCorona/scripts/AETemplates/AEmtap_fastSSSShaderTemplate.py
  9. +0 −30 src/mayaToCorona/deployment/mayaToCorona/scripts/AETemplates/AEmtap_smokeShaderTemplate.py
  10. 0 src/mayaToCorona/deployment/mayaToCorona/scripts/AETemplates/__init__.py
  11. +0 −289 src/mayaToCorona/deployment/mayaToCorona/scripts/Renderer/__init__.py
  12. +0 −16 src/mayaToCorona/deployment/mayaToCorona/scripts/asutils.py
  13. +0 −249 src/mayaToCorona/deployment/mayaToCorona/scripts/mt_initialize.py
  14. +1 −1 src/mayaToCorona/mtco_devmodule/mayaToCorona.mod
  15. 0 src/mayaToCorona/{deployment/mayaToCorona → mtco_devmodule}/ressources/_Renderer.xml
  16. +0 −91 src/mayaToCorona/mtco_devmodule/ressources/coronaRenderer.xml
  17. +227 −0 src/mayaToCorona/mtco_devmodule/scripts/asutils.py
  18. +7 −21 src/mayaToCorona/mtco_devmodule/scripts/mtco_initialize.py
  19. +2 −2 src/mayaToCorona/mtco_devmodule/scripts/path.py
  20. 0 src/mayaToCorona/{vs2010/sourceCodeDocs/assemblyWorkflow.txt → src/Corona/Corona.cpp}
  21. 0 src/mayaToCorona/{deployment/mayaToCorona/scripts/__init__.py → src/Corona/Corona.h}
  22. +11 −11 src/mayaToCorona/src/mayaToCorona.cpp
  23. +6 −6 src/mayaToCorona/src/mayaToCorona.h
  24. +0 −166 src/mayaToCorona/src/mtco_common/mt_mayaObject.cpp
  25. +0 −203 src/mayaToCorona/src/mtco_common/mt_renderGlobals.cpp
  26. +0 −53 src/mayaToCorona/src/mtco_common/mt_renderGlobals.h
  27. +0 −175 src/mayaToCorona/src/mtco_common/mt_renderGlobalsNode.cpp
  28. +0 −53 src/mayaToCorona/src/mtco_common/mt_renderGlobalsNode.h
  29. +0 −8 src/mayaToCorona/src/mtco_common/{mt_MayaObject.h → mtco_MayaObject.h}
  30. +82 −0 src/mayaToCorona/src/mtco_common/mtco_mayaObject.cpp
  31. +2 −166 src/mayaToCorona/src/mtco_common/{mt_mayaScene.cpp → mtco_mayaScene.cpp}
  32. +2 −3 src/mayaToCorona/src/mtco_common/{mt_mayaScene.h → mtco_mayaScene.h}
  33. +87 −0 src/mayaToCorona/src/mtco_common/mtco_renderGlobals.cpp
  34. +87 −0 src/mayaToCorona/src/mtco_common/mtco_renderGlobals.cpp_t
  35. +21 −0 src/mayaToCorona/src/mtco_common/mtco_renderGlobals.h
  36. +67 −0 src/mayaToCorona/src/mtco_common/mtco_renderGlobalsNode.cpp
  37. +67 −0 src/mayaToCorona/src/mtco_common/mtco_renderGlobalsNode.cpp_t
  38. +29 −0 src/mayaToCorona/src/mtco_common/mtco_renderGlobalsNode.h
  39. +29 −0 src/mayaToCorona/src/mtco_common/mtco_renderGlobalsNode.h_t
  40. +7 −8 src/mayaToCorona/src/pluginMain.cpp
  41. BIN src/mayaToCorona/tests/apple_test.exr
  42. +0 −301 src/mayaToCorona/tests/apple_test.ma
  43. +0 −21 src/mayaToCorona/vs2010/.gitignore
  44. +1 −1 src/mayaToCorona/vs2010/mayaToCorona.sln
  45. +46 −62 src/mayaToCorona/vs2010/mayaToCorona.vcxproj
  46. +0 −48 src/mayaToCorona/vs2010/mayaToCorona.vcxproj.filters
  47. +3 −0 src/mayaToCorona/vs2010/mayaToCorona.vcxproj.user
  48. +5 −0 src/mayaToCorona/vs2010/sourceCodeDocs/globalsNodeAttributes.txt
@@ -1,6 +0,0 @@
-+ LOCALE:en_US mtap 0.1.0 ../mayaToAppleseed
-MTAP_LOCATION:=
-MTAP_SHADERS_LOCATION:=shaders
-MAYA_RENDER_DESC_PATH+:=ressources
-PATH+:=bin
-RGMPFFF:=blabla
@@ -1,35 +0,0 @@
-import pymel.core as pm
-import logging
-
-log = logging.getLogger("ui")
-
-class BaseTemplate(pm.ui.AETemplate):
-
- def addControl(self, control, label=None, **kwargs):
- pm.ui.AETemplate.addControl(self, control, label=label, **kwargs)
-
- def beginLayout(self, name, collapse=True):
- pm.ui.AETemplate.beginLayout(self, name, collapse=collapse)
-
-
-class AEappleseedNodeTemplate(BaseTemplate):
- def __init__(self, nodeName):
- BaseTemplate.__init__(self,nodeName)
- self.thisNode = None
- self.node = pm.PyNode(self.nodeName)
- self.buildBody(nodeName)
- log.debug("AEappleSeedNodeTemplate")
-
- def buildAppleSeedTemplates(self, nodeName):
- self.thisNode = pm.PyNode(nodeName)
- if self.thisNode.type() == "camera":
- log.debug("AEappleSeedNodeTemplate:build camera AE")
- self.beginLayout("AppleSeed" ,collapse=1)
- self.addControl("mtap_cameraType", label="Camera Type")
- self.addControl("mtap_diaphragm_blades", label="Diaphragm Blades")
- self.addControl("mtap_diaphragm_tilt_angle", label="Diaphragm Tilt Angle")
- self.endLayout()
-
- def buildBody(self, nodeName):
- self.buildAppleSeedTemplates(nodeName)
-
@@ -1,68 +0,0 @@
-import pymel.core as pm
-import logging
-
-log = logging.getLogger("ui")
-
-class BaseTemplate(pm.ui.AETemplate):
-
- def addControl(self, control, label=None, **kwargs):
- pm.ui.AETemplate.addControl(self, control, label=label, **kwargs)
-
- def beginLayout(self, name, collapse=True):
- pm.ui.AETemplate.beginLayout(self, name, collapse=collapse)
-
-
-class AEappleseedSurfaceShaderTemplate(BaseTemplate):
- def __init__(self, nodeName):
- BaseTemplate.__init__(self,nodeName)
- log.debug("AEappleseedSurfaceShaderTemplate")
- self.thisNode = None
- self.node = pm.PyNode(self.nodeName)
- pm.mel.AEswatchDisplay(nodeName)
- self.beginScrollLayout()
- self.buildBody(nodeName)
- self.addExtraControls("ExtraControls")
- self.endScrollLayout()
-
-
- def updateUi(self, args=None):
- #shader = self.thisNode.shaderType.get()
- # ambient occusion
- #if shader == 0:
- # self.dimControl(self.thisNode, "matte_reflectance", True)
- # self.dimControl(self.thisNode, "matte_reflectance_multiplier", True)
- # self.dimControl(self.thisNode, "specular_reflectance", True)
- # self.dimControl(self.thisNode, "specular_reflectance_multiplier", True)
-
- return
-
-
- def buildBody(self, nodeName):
- self.thisNode = pm.PyNode(nodeName)
- self.beginLayout("Surface" ,collapse=0)
- #self.addControl("shaderType", label="Surface Shader Type", changeCommand=self.updateUi)
- #self.addControl("shaderType", label="Surface Shader Type")
- self.addControl("bsdf", label="BSDF Type")
- self.addSeparator()
- self.addControl("matte_reflectance", label="Matte Reflectance")
- self.addControl("matte_reflectance_multiplier", label="Matte Refl Multiplier")
- self.addSeparator()
- self.addControl("specular_reflectance", label="Specular Reflectance")
- self.addControl("specular_reflectance_multiplier", label="Spec Refl Multiplier")
- self.addControl("shininess_u", label="Shininess U")
- self.addControl("shininess_v", label="Shininess V")
- self.addControl("roughness", label="Roughness")
- self.endLayout()
-
- self.beginLayout("BTDF" ,collapse=0)
- self.addControl("transmittance", label="Transmittance")
- self.addControl("transmittance_multiplier", label="Transmittance Multiplier")
- self.addControl("from_ior", label="From Ior")
- self.addControl("to_ior", label="To Ior")
- self.endLayout()
- self.beginLayout("EDF" ,collapse=0)
- self.addControl("emitLight", label="emitLight")
- self.addControl("exitance", label="Exitance")
- self.endLayout()
-
- self.updateUi()
@@ -1,33 +0,0 @@
-import pymel.core as pm
-import logging
-
-log = logging.getLogger("ui")
-
-class BaseTemplate(pm.ui.AETemplate):
-
- def addControl(self, control, label=None, **kwargs):
- pm.ui.AETemplate.addControl(self, control, label=label, **kwargs)
-
- def beginLayout(self, name, collapse=True):
- pm.ui.AETemplate.beginLayout(self, name, collapse=collapse)
-
-
-class AEmtap_aoShaderTemplate(BaseTemplate):
- def __init__(self, nodeName):
- BaseTemplate.__init__(self,nodeName)
- log.debug("AEmtap_aoShaderTemplate")
- self.thisNode = None
- self.node = pm.PyNode(self.nodeName)
- pm.mel.AEswatchDisplay(nodeName)
- self.beginScrollLayout()
- self.buildBody(nodeName)
- self.addExtraControls("ExtraControls")
- self.endScrollLayout()
-
- def buildBody(self, nodeName):
- self.thisNode = pm.PyNode(nodeName)
- self.beginLayout("Ambient Occlusion" ,collapse=0)
- self.addControl("samplingMethod", label="Sampling Method")
- self.addControl("samples", label="Samples")
- self.addControl("maxDistance", label="Max Distance")
- self.endLayout()
@@ -1,30 +0,0 @@
-import pymel.core as pm
-import logging
-
-log = logging.getLogger("ui")
-
-class BaseTemplate(pm.ui.AETemplate):
-
- def addControl(self, control, label=None, **kwargs):
- pm.ui.AETemplate.addControl(self, control, label=label, **kwargs)
-
- def beginLayout(self, name, collapse=True):
- pm.ui.AETemplate.beginLayout(self, name, collapse=collapse)
-
-
-class AEmtap_aoVoxelShaderTemplate(BaseTemplate):
- def __init__(self, nodeName):
- BaseTemplate.__init__(self,nodeName)
- log.debug("AEmtap_aoVoxelShaderTemplate")
- self.thisNode = None
- self.node = pm.PyNode(self.nodeName)
- pm.mel.AEswatchDisplay(nodeName)
- self.beginScrollLayout()
- self.buildBody(nodeName)
- self.addExtraControls("ExtraControls")
- self.endScrollLayout()
-
- def buildBody(self, nodeName):
- self.thisNode = pm.PyNode(nodeName)
- self.beginLayout("Voxel Based Ambient Occlusion" ,collapse=0)
- self.endLayout()
@@ -1,31 +0,0 @@
-import pymel.core as pm
-import logging
-
-log = logging.getLogger("ui")
-
-class BaseTemplate(pm.ui.AETemplate):
-
- def addControl(self, control, label=None, **kwargs):
- pm.ui.AETemplate.addControl(self, control, label=label, **kwargs)
-
- def beginLayout(self, name, collapse=True):
- pm.ui.AETemplate.beginLayout(self, name, collapse=collapse)
-
-
-class AEmtap_constantShaderTemplate(BaseTemplate):
- def __init__(self, nodeName):
- BaseTemplate.__init__(self,nodeName)
- log.debug("AEmtap_constantShaderTemplate")
- self.thisNode = None
- self.node = pm.PyNode(self.nodeName)
- pm.mel.AEswatchDisplay(nodeName)
- self.beginScrollLayout()
- self.buildBody(nodeName)
- self.addExtraControls("ExtraControls")
- self.endScrollLayout()
-
- def buildBody(self, nodeName):
- self.thisNode = pm.PyNode(nodeName)
- self.beginLayout("Constant" ,collapse=0)
- self.addControl("color", label="Constant Color")
- self.endLayout()
@@ -1,31 +0,0 @@
-import pymel.core as pm
-import logging
-
-log = logging.getLogger("ui")
-
-class BaseTemplate(pm.ui.AETemplate):
-
- def addControl(self, control, label=None, **kwargs):
- pm.ui.AETemplate.addControl(self, control, label=label, **kwargs)
-
- def beginLayout(self, name, collapse=True):
- pm.ui.AETemplate.beginLayout(self, name, collapse=collapse)
-
-
-class AEmtap_diagnosticShaderTemplate(BaseTemplate):
- def __init__(self, nodeName):
- BaseTemplate.__init__(self,nodeName)
- log.debug("AEmtap_diagnosticShaderTemplate")
- self.thisNode = None
- self.node = pm.PyNode(self.nodeName)
- pm.mel.AEswatchDisplay(nodeName)
- self.beginScrollLayout()
- self.buildBody(nodeName)
- self.addExtraControls("ExtraControls")
- self.endScrollLayout()
-
- def buildBody(self, nodeName):
- self.thisNode = pm.PyNode(nodeName)
- self.beginLayout("Disgnostic Shader" ,collapse=0)
- self.addControl("mode", label="Diagnostic Mode")
- self.endLayout()
@@ -1,39 +0,0 @@
-import pymel.core as pm
-import logging
-
-log = logging.getLogger("ui")
-
-class BaseTemplate(pm.ui.AETemplate):
-
- def addControl(self, control, label=None, **kwargs):
- pm.ui.AETemplate.addControl(self, control, label=label, **kwargs)
-
- def beginLayout(self, name, collapse=True):
- pm.ui.AETemplate.beginLayout(self, name, collapse=collapse)
-
-
-class AEmtap_fastSSSShaderTemplate(BaseTemplate):
- def __init__(self, nodeName):
- BaseTemplate.__init__(self,nodeName)
- log.debug("AEmtap_fastSSSShaderTemplate")
- self.thisNode = None
- self.node = pm.PyNode(self.nodeName)
- pm.mel.AEswatchDisplay(nodeName)
- self.beginScrollLayout()
- self.buildBody(nodeName)
- self.addExtraControls("ExtraControls")
- self.endScrollLayout()
-
- def buildBody(self, nodeName):
- self.thisNode = pm.PyNode(nodeName)
- self.beginLayout("Subsurface Scatter" ,collapse=0)
- self.addControl("albedo", label="Albedo")
- self.addControl("ambient_sss", label="Ambient SSS")
- self.addControl("diffuse", label="Diffuse")
- self.addControl("distortion", label="Distortion")
- self.addControl("light_samples", label="Light Samples")
- self.addControl("occlusion_samples", label="Occlusion Samples")
- self.addControl("power", label="Power")
- self.addControl("scale", label="Scale")
- self.addControl("view_dep_sss", label="View Depedent sss")
- self.endLayout()
@@ -1,30 +0,0 @@
-import pymel.core as pm
-import logging
-
-log = logging.getLogger("ui")
-
-class BaseTemplate(pm.ui.AETemplate):
-
- def addControl(self, control, label=None, **kwargs):
- pm.ui.AETemplate.addControl(self, control, label=label, **kwargs)
-
- def beginLayout(self, name, collapse=True):
- pm.ui.AETemplate.beginLayout(self, name, collapse=collapse)
-
-
-class AEmtap_smokeShaderTemplate(BaseTemplate):
- def __init__(self, nodeName):
- BaseTemplate.__init__(self,nodeName)
- log.debug("AEmtap_smokeShaderTemplate")
- self.thisNode = None
- self.node = pm.PyNode(self.nodeName)
- pm.mel.AEswatchDisplay(nodeName)
- self.beginScrollLayout()
- self.buildBody(nodeName)
- self.addExtraControls("ExtraControls")
- self.endScrollLayout()
-
- def buildBody(self, nodeName):
- self.thisNode = pm.PyNode(nodeName)
- self.beginLayout("Smoke" ,collapse=0)
- self.endLayout()
Oops, something went wrong.

0 comments on commit b290b5d

Please sign in to comment.