======Panda3d Installation sur Debian====== **Installation de Panda3d**\\ **Première approche de Panda**\\ =====Installation===== Il y a un paquet .deb pour Ubuntu, mais rien sur Debian. Testé sur Debian 9 Stretch en juillet 2018. sudo pip3 install --pre --extra-index-url https://archive.panda3d.org/ panda3d [sudo] Mot de passe de pierre :  Collecting panda3d Downloading http://buildbot.panda3d.org/downloads/4b8ff0573e8b912591d02062e1240c2726e09323/panda3d-1.10.0.dev1710-cp35-cp35m-manylinux1_x86_64.whl (43.5MB) 100% |████████████████████████████████| 43.5MB 7.2MB/s Installing collected packages: panda3d Successfully installed panda3d-1.10.0.dev1710 * [[https://github.com/panda3d/panda3d/blob/master/README.md|Panda3d sur GitHub]] * [[https://www.panda3d.org/manual/index.php/Installing_Panda3D_in_Linux|Installation sur Linux]] * [[https://www.panda3d.org/manual/index.php/Building_Panda3D_from_Source|Compilation]] * **[[https://www.panda3d.org/manual/index.php/Main_Page|Documentation]]** =====Hello world===== <#!/usr/bin/env python3 # -*- coding: utf-8 -*- from direct.showbase.ShowBase import ShowBase from direct.gui.OnscreenText import OnscreenText class MyApp(ShowBase): def __init__(self): ShowBase.__init__(self) # Load the environment model. self.scene = self.loader.loadModel("models/environment") # Reparent the model to render. self.scene.reparentTo(self.render) # Apply scale and position transforms on the model. self.scene.setScale(0.25, 0.25, 0.25) self.scene.setPos(-8, 42, 0) textObject = OnscreenText( text = 'Hello World !', pos = (-0.1, -0.8), scale = 0.3) app = MyApp() app.run()> Excécution de ce script avec: python3 hello_world.py {{ media_10:panda_hello_world.png?300 }} {{tag>moteur_de_jeux sb}}