Sie sind auf Seite 1von 2

Kai Kajus Noack, 2008-07-08

Developing a Project with Studierstube 4


which is called “PongAR Football 2008” - Augmented Reality Pong Football

SoTrakEngine SoTrakEngine SoVideoBackground SoOffAxisCamera


MARKER MOUSE
key: tracking key: mousetrack
value: markerTracker value: mousetracker

SoSeparator SoSeparator
MarkerData football
(on Screen)

SoTransform SoMaterial Text2 SoPyScript SoScale SoMaterial SoPyScript


- translation - diffuseColor - string markerPos - scaleFactor - diffuseColor ballMove

provides: [Pivy] [Pivy]


vector - vector moveX, moveY,
speedX, speedY
- SoTransform
SoTrakEngine - translation
MARKER - SoTexture2
- filename
- SoCube

[LOGIC at runtime]
- translation of ball
- changing speed
- bounds of moving
- scoring flags

page 1 of 2

Source Code at http://media-it.blogspot.com/2008/07/pongar-football-game-augmented-reality.html


Kai Kajus Noack, 2008-07-08

SoSeparator SoSeparator
bottomPlayer topPlayer

SoTransform Transform SoScale SoCube SoPyScript SoTransform SoPyScript Transform SoScale SoMaterial SoCube
- translation - translation - scaleFactor gameLogicB - translation gameLogicT - translation - scaleFactor - diffuseColor

provides:
translation [Pivy]
scorePB. scoredB. [Pivy]
TransformVec3f provides: mx, my, scorePT,
vector [LOGIC at runtime] scoredT, mvec, provides:
- vector SoTrakEngine
- compares ball mvecNorm vector
- matrix MARKER SoTrakEngine
and marker data
- scoring [LOGIC at runtime] MOUSE
- compares ball and
marker data
- scoring
- norm vector for
translation

optional
SoSeparator
SoSeparator SoSeparator ballBackground
ScoreBtmPlayer ScoreTopPlayer

SoTransform SoMaterial SoPyScript SoTransform SoMaterial SoPyScript SoTransform SoPyScript


- translation - diffuseColor recentScoreBtm - translation - diffuseColor recentScoreTop - translation ballBG
- rotation

provides:
rotation
[Pivy] [Pivy]
- score - score
- Text2 ComposeRotation [Pivy]
- Text2
- String - Calculator (axis) - SoTransform
- String
- Timecounter (a) - translation
- expression (oA) - SoTexture2
- ElapsedTime (angle) - filename
- SoSphere

page 2 of 2

Das könnte Ihnen auch gefallen