I was able to build successfully, but got a bit of a snag here:
from panda3d.core import *
from direct.showbase.ShowBase import ShowBase
class Game(ShowBase):
def __init__(self):
"""Get the game ready to play."""
ShowBase.__init__(self)
self.node = render
self.model = self.loader.loadModel('smiley')
self.model.reparentTo(self.node)
shaderdata = Mat4(0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0)
self.model.setShaderInput('shaderdata', shaderdata)
game = Game()
game.run()
Assertion failed: sizeof(mat(0, 0)) * mat.size() == pta.size() * sizeof(pta[0]) at line 338 of c:\work\panda3d\built\include\shader.I
Traceback (most recent call last):
File "test.py", line 18, in <module>
game = Game()
File "test.py", line 16, in __init__
self.model.setShaderInput('shaderdata', shaderdata)
AssertionError: sizeof(mat(0, 0)) * mat.size() == pta.size() * sizeof(pta[0]) at line 338 of c:\work\panda3d\built\include\shader.I