Esempio n. 1
0
                hf.setHeight(x, y, 10* (math.exp(math.sin(x/13.0))))
        patch = Terrain.TerrainPatch(hfield = hf)
        patch.opreparebuffers()
        patch.makeVisible()
        terrain.addPatch(patch)#
        terrain.Enable()
        render.terrain = terrain
        #model = Test.TTest()
        #render.testmodel = model
        
    def stop(self, kernel):
        pass

    def pause(self, kernel):
        pass

    def resume(self, kernel):
        pass

    def run(self, kernel):
        pass

    def name(self):
        return "drawer"

render = Render.Render(800, 600, posx = 0, posy = 0, posz = -100, far = 10000)
hfk.insert(drawer())
hfk.insert(render)
hfk.insert(UI(render))
hfk.run()