game development idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o...

29
Game Development I Panda 3D, Project 3

Upload: others

Post on 17-Apr-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from

Game Development IPanda 3D, Project 3

Page 2: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from

Tips• Clean hierarchy, cleared history

• use pview to test model with all animations before handing off to programmers. Inverted normals are very common (pview bob-model.egg bob-anim.egg)

• Break up large geometry into separate nodes – there are lighting restrictions

• Any part of a model that’s going to be treated differently than another (e.g. a semi-transparent component) should have its own node

• Use the “Flagging Objects from Maya” script for collisions

Page 3: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from

maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb

Page 4: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from

maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb

input file

Page 5: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from

maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb

coordinatesystem

input file

Page 6: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from

maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb

coordinatesystem

Panda uses Z-up, so this prevents themodel from importing sideways

input file

Page 7: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from

maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb

coordinatesystem

animationmode

Panda uses Z-up, so this prevents themodel from importing sideways

input file

Page 8: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from

maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb

coordinatesystem

animationmode

Panda uses Z-up, so this prevents themodel from importing sideways

model = mesh + rigchan = animation channel

input file

Page 9: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from

maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb

coordinatesystem

animationmode

charactername

Panda uses Z-up, so this prevents themodel from importing sideways

model = mesh + rigchan = animation channel

input file

Page 10: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from

maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb

coordinatesystem

animationmode

charactername

Panda uses Z-up, so this prevents themodel from importing sideways

tells Panda which animations are associated with a particular mesh

model = mesh + rigchan = animation channel

input file

Page 11: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from

maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb

coordinatesystem

animationmode

charactername

outputfile

Panda uses Z-up, so this prevents themodel from importing sideways

tells Panda which animations are associated with a particular mesh

model = mesh + rigchan = animation channel

input file

Page 12: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from

maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb

coordinatesystem

animationmode

charactername

outputfile

Panda uses Z-up, so this prevents themodel from importing sideways

tells Panda which animations are associated with a particular mesh

model = mesh + rigchan = animation channel

output file name, called from code

input file

Page 13: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from

Special Map Hypershade Inputs

all maps must be applied to a phong shader

texture → color

normal → normalCamera

opacity (white = opaque) → reverser → transparency

gloss → specularColor

glow → incandescence (need to run setBloom() on a Filters object)

Page 14: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from
Page 15: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from
Page 16: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from
Page 17: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from
Page 18: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from

Scene Graph

• LightNodes, GeomNodes, ModelNodes, are all subclasses of PandaNode

• Usually, you just need to know about the nodes

• With lights and collision solids, you also need the corresponding NodePath, which is a handle (not a pointer!) to the node. It’s a little obnoxious. Sorry

Page 19: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from
Page 20: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from
Page 21: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from
Page 22: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from
Page 23: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from
Page 24: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from
Page 25: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from
Page 26: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from
Page 27: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from

All Rise

Page 28: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from

Team 1David EstrellaTate LarsenPhelan LemieuxRandy SabellaBen Shippee

Team 2Michael GruarSean KimIvy KwanAlan LummisVarun Madiath

Team 3Tom AlexanderDan HawkinsBrett KaplanAndrew KeohaneRosa Tung

Team 4Kenny DuBrian RanaDavid StrohlBeth WerbanethGreg White

Team 5Eric CollinsMaria MontenegroColin NevillePeter SkinnerJared Zondler

Team 6Jonathan BrennerAlex DevikKyle JohnsenAllie JohnstonJossued Rivera-Nazario

Team 7Adam LeClairAngela MacTyler MoylanAnisha SmithCasper Tollund

Team 8Daniel CannonRyan KnightThomas LancianiBeth TownsNathan West

Team 9Ryan AndersonThomas AnestaJoseph CloutierMarshall HendrickEvan Minto

Page 29: Game Development Idestem/gamedev/panda.pdf · maya2egg2012 -cs y-up -a model -cn bob -o bobmodel.egg bobmodel.mb coordinate system Panda uses Z-up, so this prevents the model from

Assignment #3

• Vehicle combat

• working headlights

• collide-able terrain (see Roaming Ralph)

• No humanoid characters!

• Due 11/9