python und spieleentwicklung mit panda3d

Post on 09-Jul-2015

134 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Python und Spieleentwicklung mit Panda3D / Python and game development using Panda3DVortrag gehalten auf / Talk given at:PyCon DE 2011, Leipzig, GermanyDate / Datum:7.10.2011 / 2011/10/7Keywords:PyConDE, Leipzig, Python, Panda3D, Spieleentwicklung, game, development, Mare Ceti, Escape Velocity

TRANSCRIPT

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 1/37

Python undSpieleentwicklung

mit Panda3D

PyCon DE 20117.10.2011 – 9.30 Uhr – Saal 1B

Tilo Probst

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 2/37

Warum mit Python? - PRO

• Schnelle Entwicklung, Prototyping

• Erlernbarkeit

• Lesbarkeit

• „Lehrbarkeit“ 

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 3/37

Warum nicht mit Python? - CONTRA

• Stellenweise zu langsam -> Code

nach C/C++ portieren, Cython, ...

• Relativ kleine Community,Nischenthema -> vielleicht nur

weniger sichtbar?

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 4/37

SDL

OpenGL,

Direct3D

OpenGL

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 5/37

Panda3D

• Python -> C++, OpenGL, DX8, DX9

• Programmierbar mit C++, Python

• Browser Plugin, Runtime, SDK

• Engine/Framework

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 6/37

Panda3D - Plattformen

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 7/37

Panda3D - Buildbot

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 8/37

Panda3D - Optimierung

PStats

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 9/37

Panda3D – „Level Editor“ 

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 10/37

Panda3D - Features

• Scenegraph

• Modelle (.egg, .dae)

• Netzwerk• Sound (OpenAL,

FMOD)

• Kollision, Physik 

(ODE, Bullet, PhysX, u.a.)

• Div. Tools

• Input, Events

• FSMs

• Shader Pipeline• Deployment

Partikel• GUIs

etc. pp.

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 11/37

Tools - Beispiele

1. pview

2. egg-texture-cards

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 12/37

Normal Mapping

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 13/37

Volumetric Lighting

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 14/37

Post Processing:Bloom

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 15/37

Shader,

Post

Processing

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 16/37

Shader: Haare

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 17/37

Panda3D - PRO

• Schneller Einstieg

• Gutes Manual (Wiki)

• Aktive Community, Forum, etc.

• Liberale Lizenz (Modified BSD)

• Features: Web Plugin, Runtime,Deployment

Flexibilität

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 18/37

Panda3D - CONTRA

• Kein „echter“ Editor / Game

Development Kit

• „Versteckte“ Features 

• Wenige „Core“ Entwickler 

•Flexibilität

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 19/37

Architekturvisualisierung

ArchiCAD (.pln) Artlantis (.atl)

-> Export Plugin ->

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 20/37

Panda3D - Echtzeitvisualisierung

Architektur:

Artlantis (.atl)

-> Python ->

Panda3DEchtzeit, WASD+Maus Interaktion

(.py Skript, .egg Modell)

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 21/37

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 22/37

Anaglyph 3D

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 23/37

Codebeispiele

• Hobbyprojekt „Mare Ceti“ 

• Weltraum, Sci-Fi

• Action, RPG (Handel,

Individualisierung)

•Angelehnt an „Escape Velocity“,„Elite“ 

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 24/37

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 25/37

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 26/37

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 27/37

Panda3D – Imports

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 28/37

Panda3D – Modelle, Nodes

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 29/37

Panda3D – Eigene Config

config.prc

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 30/37

Panda3D – Node Funktionen

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 31/37

Panda3D – Events (Tasten)

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 32/37

Panda3D - Events

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 33/37

Panda3D – FSM: Follow, Attack, ...

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 34/37

Panda3D - Tasks

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 35/37

Panda3D – Update Loop

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 36/37

Panda3D – Sequences, Parallels

5/10/2018 Python und Spieleentwicklung mit Panda3D - slidepdf.com

http://slidepdf.com/reader/full/python-und-spieleentwicklung-mit-panda3d 37/37

Fragen?

www.pygame.org 

www.pyglet.org www.pythonogre.com 

www.panda3d.org YouTube -> panda3d

Python und Spieleentwicklung mit Panda3D - PyCon DE 2011

7.10.2011 – 9.30 Uhr – Saal 1B – Tilo Probst

top related