def __init__(self, outdated_parameter=None):
        """ Creates a new pipeline with a given showbase instance. This should
        be done before intializing the ShowBase, the pipeline will take care of
        that. """
        RPObject.__init__(self)
        if outdated_parameter is not None:
            self.fatal("The render pipeline no longer takes the ShowBase argument "
                       "as constructor parameter. Please have a look at the "
                       "00-Loading the pipeline sample to see how to initialize "
                       "the pipeline properly.")
        self.debug("Using Python {}.{} with architecture {}".format(
            sys.version_info.major, sys.version_info.minor, PandaSystem.get_platform()))
        self.debug("Using Panda3D {} built on {}".format(
            PandaSystem.get_version_string(), PandaSystem.get_build_date()))
        if PandaSystem.get_git_commit():
            self.debug("Using git commit {}".format(PandaSystem.get_git_commit()))
        else:
            self.debug("Using custom Panda3D build")
        self.mount_mgr = MountManager(self)
        self.settings = {}
        self._pre_showbase_initialized = False
        self._first_frame = None
        self.set_default_loading_screen()

        # Check for the right Panda3D version
        if not self._check_version():
            self.fatal("Your Panda3D version is outdated! Please update to the newest \n"
                       "git version! Checkout https://github.com/panda3d/panda3d to "
                       "compile panda from source, or get a recent buildbot build.")
 def __init__(self):
     """ Creates a new pipeline with a given showbase instance. This should
     be done before intializing the ShowBase, the pipeline will take care of
     that. If the showbase has been initialized before, have a look at
     the alternative initialization of the render pipeline (the first sample)."""
     RPObject.__init__(self)
     self.debug("Using Python {}.{} with architecture {}".format(
         sys.version_info.major, sys.version_info.minor,
         PandaSystem.get_platform()))
     self.debug("Using Panda3D {} built on {}".format(
         PandaSystem.get_version_string(), PandaSystem.get_build_date()))
     if PandaSystem.get_git_commit():
         self.debug("Using git commit {}".format(
             PandaSystem.get_git_commit()))
     else:
         self.debug("Using custom Panda3D build")
     if not self._check_version():
         self.fatal(
             "Your Panda3D version is outdated! Please update to the newest \n"
             "git version! Checkout https://github.com/panda3d/panda3d to "
             "compile panda from source, or get a recent buildbot build.")
     self.mount_mgr = MountManager(self)
     self.settings = {}
     self._pre_showbase_initialized = False
     self._first_frame = None
     self.set_loading_screen_image("/$$rp/data/gui/loading_screen_bg.txo")
    def __init__(self, outdated_parameter=None):
        """ Creates a new pipeline with a given showbase instance. This should
        be done before intializing the ShowBase, the pipeline will take care of
        that. """
        RPObject.__init__(self)
        if outdated_parameter is not None:
            self.fatal(
                "The render pipeline no longer takes the ShowBase argument "
                "as constructor parameter. Please have a look at the "
                "00-Loading the pipeline sample to see how to initialize "
                "the pipeline properly.")
        self.debug("Using Python {}.{} with architecture {}".format(
            sys.version_info.major, sys.version_info.minor,
            PandaSystem.get_platform()))
        self.debug("Using Panda3D {} built on {}".format(
            PandaSystem.get_version_string(), PandaSystem.get_build_date()))
        if PandaSystem.get_git_commit():
            self.debug("Using git commit {}".format(
                PandaSystem.get_git_commit()))
        else:
            self.debug("Using custom Panda3D build")
        self.mount_mgr = MountManager(self)
        self.settings = {}
        self._pre_showbase_initialized = False
        self._first_frame = None
        self.set_default_loading_screen()

        # Check for the right Panda3D version
        if not self._check_version():
            self.fatal(
                "Your Panda3D version is outdated! Please update to the newest \n"
                "git version! Checkout https://github.com/panda3d/panda3d to "
                "compile panda from source, or get a recent buildbot build.")
 def _analyze_system(self):
     """ Prints information about the system used, including information
     about the used Panda3D build. Also checks if the Panda3D build is out
     of date. """
     self.debug("Using Python {}.{} with architecture {}".format(
         sys.version_info.major, sys.version_info.minor, PandaSystem.get_platform()))
     self.debug("Using Panda3D {} built on {}".format(
         PandaSystem.get_version_string(), PandaSystem.get_build_date()))
     if PandaSystem.get_git_commit():
         self.debug("Using git commit {}".format(PandaSystem.get_git_commit()))
     else:
         self.debug("Using custom Panda3D build")
     if not self._check_version():
         self.fatal("Your Panda3D version is outdated! Please update to the newest \n"
                    "git version! Checkout https://github.com/panda3d/panda3d to "
                    "compile panda from source, or get a recent buildbot build.")
Beispiel #5
0
 def _analyze_system(self):
     """ Prints information about the system used, including information
     about the used Panda3D build. Also checks if the Panda3D build is out
     of date. """
     self.debug("Using Python {}.{} with architecture {}".format(
         sys.version_info.major, sys.version_info.minor,
         PandaSystem.get_platform()))
     self.debug("Using Panda3D {} built on {}".format(
         PandaSystem.get_version_string(), PandaSystem.get_build_date()))
     if PandaSystem.get_git_commit():
         self.debug("Using git commit {}".format(
             PandaSystem.get_git_commit()))
     else:
         self.debug("Using custom Panda3D build")
     if not self._check_version():
         self.fatal(
             "Your Panda3D version is outdated! Please update to the newest \n"
             "git version! Checkout https://github.com/panda3d/panda3d to "
             "compile panda from source, or get a recent buildbot build.")
 def __init__(self):
     """ Creates a new pipeline with a given showbase instance. This should
     be done before intializing the ShowBase, the pipeline will take care of
     that. If the showbase has been initialized before, have a look at
     the alternative initialization of the render pipeline (the first sample)."""
     RPObject.__init__(self)
     self.debug("Using Python {}.{} with architecture {}".format(
         sys.version_info.major, sys.version_info.minor, PandaSystem.get_platform()))
     self.debug("Using Panda3D {} built on {}".format(
         PandaSystem.get_version_string(), PandaSystem.get_build_date()))
     if PandaSystem.get_git_commit():
         self.debug("Using git commit {}".format(PandaSystem.get_git_commit()))
     else:
         self.debug("Using custom Panda3D build")
     if not self._check_version():
         self.fatal("Your Panda3D version is outdated! Please update to the newest \n"
                    "git version! Checkout https://github.com/panda3d/panda3d to "
                    "compile panda from source, or get a recent buildbot build.")
     self.mount_mgr = MountManager(self)
     self.settings = {}
     self._pre_showbase_initialized = False
     self._first_frame = None
     self.set_loading_screen_image("/$$rp/data/gui/loading_screen_bg.txo")