2023-01-17 21:54:39 +01:00
|
|
|
|
2023-02-15 22:27:45 +01:00
|
|
|
from .packages import PackageManager
|
2023-01-17 21:54:39 +01:00
|
|
|
from direct.showbase.ShowBase import ShowBase
|
2023-02-15 22:27:45 +01:00
|
|
|
from direct.actor.Actor import Actor
|
|
|
|
from panda3d.core import WindowProperties, TextureStage, AmbientLight, PointLight
|
|
|
|
|
|
|
|
import simplepbr
|
|
|
|
import gltf
|
2023-01-17 21:54:39 +01:00
|
|
|
|
|
|
|
class Game(ShowBase):
|
|
|
|
def __init__(self, packages):
|
|
|
|
ShowBase.__init__(self)
|
|
|
|
|
2023-02-15 22:27:45 +01:00
|
|
|
simplepbr.init()
|
|
|
|
gltf.patch_loader(self.loader)
|
|
|
|
|
|
|
|
self.camLens.setFov(90)
|
|
|
|
self.camera.setPos(0, -4, 1)
|
2023-01-17 21:54:39 +01:00
|
|
|
|
|
|
|
winprops = WindowProperties()
|
|
|
|
winprops.setSize(1600, 900)
|
|
|
|
self.win.requestProperties(winprops)
|
|
|
|
|
2023-02-15 22:27:45 +01:00
|
|
|
|