Page 1 of 1

[Solved] [v1.10] PbsMaterial Functions

Posted: Sat Apr 15, 2017 4:24 am
by dermont
I'm running python-ogre and some of the texture member function names for the Hlms Component PbsMaterial/HlmsMaterialBase are weird, not sure if these are just typos or deliberate.

Code: Select all

class MyPbsMaterial(hlms.PbsMaterial):
    def __init__(self):
        hlms.PbsMaterial.__init__(self)

    def createTexturUnits(self, pass_):
        hlms.PbsMaterial.createTexturUnits(self, pass_)

    def setNormalrTexture(self, mapSlot, tex, textureAddressing, normalBlendFactor, BlendFactor):
        hlms.PbsMaterial.setNormalrTexture(self, mapSlot, tex, textureAddressing, normalBlendFactor, BlendFactor)

    def updateTexturUnits(self, textureUnitState, fragmentParams, lightList, s, index):
        hlms.PbsMaterial.updateTexturUnits(self, textureUnitState, fragmentParams, lightList, s, index)


Re: [v1.10] PbsMaterial Functions

Posted: Sat Apr 15, 2017 12:58 pm
by paroj
Normalr means normal+roughness - the rest are typos

Re: [v1.10] PbsMaterial Functions

Posted: Mon Apr 24, 2017 2:09 am
by dermont
Thanks.