Readme update

This commit is contained in:
Philippe Roy 2022-12-21 05:54:42 +01:00
parent b7bbc76b36
commit 5df7aebc65
2 changed files with 10 additions and 11 deletions

View File

@ -62,18 +62,17 @@ L'environnement de développement est basé sur : la plateforme de modélisation
Le code source, les fichiers blender et les assets sont hébergés sur le dépôt [gitlab](https://gitlab.com/blender-edutech/ropy). Le code source, les fichiers blender et les assets sont hébergés sur le dépôt [gitlab](https://gitlab.com/blender-edutech/ropy).
Les bibliothèques suivantes ne sont pas incluses par défaut dans l'environnement UPBGE : Les bibliothèques suivantes ne sont pas incluses par défaut dans l'environnement UPBGE :
- **pylint** : vérificateur du code Python - [**Pylint**](https://pylint.pycqa.org) : vérificateur du code Python
- **pyserial** : communication sur le port série (jumeau numérique) - [**pySerial**](https://pyserial.readthedocs.io) : communication sur le port série
Il faut donc les installer localement (dans UPBGE), les étapes sont : Il faut donc les installer localement (dans UPBGE), les étapes sont :
- **GNU/Linux** : La configuration ici présente est UPBGE installé sur ~ avec Python 3.9 : - **GNU/Linux** : La configuration ici présente est UPBGE installé sur ~ avec Python 3.9 :
- Aller dans le répertoire local de Python de UPBGE: $ cd ~/UPBGE-0.30-linux-x86_64/3.0/python/bin - Aller dans le répertoire local de Python de UPBGE: $ cd ~/UPBGE-0.30-linux-x86_64/3.0/python/bin
- Installer le gestionnaire de paquet pip : $ ./python3.9 -m ensurepip --default-pip - Installer le gestionnaire de paquet pip : $ ./python3.9 -m ensurepip --default-pip
- Installer pylint : $ ./pip install pylint -t ~/UPBGE-0.30-linux-x86_64/3.0/python/lib/python3.9/site-packages - Installer Pylint : $ ./pip install pylint -t ~/UPBGE-0.30-linux-x86_64/3.0/python/lib/python3.9/site-packages
- Installer pyserial : $ ./pip install pyserial -t ~/UPBGE-0.30-linux-x86_64/3.0/python/lib/python3.9/site-packages - Installer pySerial : $ ./pip install pyserial -t ~/UPBGE-0.30-linux-x86_64/3.0/python/lib/python3.9/site-packages
- **Windows** : La configuration ici présente est UPBGE installé sur le bureau utilisateur (philippe.roy) avec la distribution Anaconda installée : - **Windows** : La configuration ici présente est UPBGE installé sur le bureau utilisateur (prenom.nom) avec la distribution Anaconda installée :
- Avec Anaconda Navigator ouvrir un terminal Powershell - Avec Anaconda Navigator ouvrir un terminal Powershell
- Installer pylint : pip install pylint -t C:\Users\philippe.roy\Desktop\UPBGE-0.30-windows-x86_64\3.0\python\lib\site-packages - Installer Pylint : pip install pylint -t C:\Users\prenom.nom\Desktop\UPBGE-0.30-windows-x86_64\3.0\python\lib\site-packages
- Installer pyserial : pip install pyserial -t C:\Users\philippe.roy\Desktop\UPBGE-0.30-windows-x86_64\3.0\python\lib\site-packages - Installer pySerial : pip install pyserial -t C:\Users\prenom.nom\Desktop\UPBGE-0.30-windows-x86_64\3.0\python\lib\site-packages

6
rp.py
View File

@ -132,6 +132,9 @@ def terrain_init (cont):
if cont.sensors['Init'].positive == False: # 1 seule fois if cont.sensors['Init'].positive == False: # 1 seule fois
return False return False
# Configuration du moteur de rendu
eevee.use_eevee_smaa = True
# Ajout du Hud # Ajout du Hud
scene.active_camera = scene.objects["Camera"] scene.active_camera = scene.objects["Camera"]
scene.objects['Sun'].setVisible(True,True) scene.objects['Sun'].setVisible(True,True)
@ -157,9 +160,6 @@ def terrain_init (cont):
scene.objects['Terrain']['init_ry']=scene.objects['Terrain'].worldOrientation.to_euler().y scene.objects['Terrain']['init_ry']=scene.objects['Terrain'].worldOrientation.to_euler().y
scene.objects['Terrain']['init_rz']=scene.objects['Terrain'].worldOrientation.to_euler().z scene.objects['Terrain']['init_rz']=scene.objects['Terrain'].worldOrientation.to_euler().z
# Configuration du moteur de rendu
eevee.use_eevee_smaa = True
# Création des balises # Création des balises
scene.objects['Terrain']['map_tile_beacon']= [] scene.objects['Terrain']['map_tile_beacon']= []
for i in range (200): for i in range (200):