Simulation Engines TDA571|DIT030
Miscellaneous, input, collision detection ...
Tommaso Piazza
1
Simulation Engines TDA571|DIT030 Miscellaneous, input, collision - - PowerPoint PPT Presentation
Simulation Engines TDA571|DIT030 Miscellaneous, input, collision detection ... Tommaso Piazza 1 Administrative stuff Tech Demo presentation A few slides presenting the overall concept 1-2 slides for each extension Screen shots
1
IDC | Interaction Design Collegium
2
IDC | Interaction Design Collegium
understand your work
3
IDC | Interaction Design Collegium
4
IDC | Interaction Design Collegium
Link to the code repository on Google Code
5
IDC | Interaction Design Collegium
designing, group dynamics and technical knowledge
6
IDC | Interaction Design Collegium
7
IDC | Interaction Design Collegium
8
IDC | Interaction Design Collegium
9
IDC | Interaction Design Collegium
released
10
IDC | Interaction Design Collegium
11
IDC | Interaction Design Collegium
internal Windows message system in the event handling loop
developers direct access to the input devices connected to the computer
DirectX
12
IDC | Interaction Design Collegium
13
IDC | Interaction Design Collegium
14
IDC | Interaction Design Collegium
15
IDC | Interaction Design Collegium
16
IDC | Interaction Design Collegium
17
IDC | Interaction Design Collegium
18
IDC | Interaction Design Collegium
19
IDC | Interaction Design Collegium
20
IDC | Interaction Design Collegium
21
IDC | Interaction Design Collegium
22
IDC | Interaction Design Collegium
23
IDC | Interaction Design Collegium
traversed recursively
recurse to the two children of each tree node
resulted in 12 edges × 6 faces × 2 boxes = 144 tests), we project the boxes onto 15 different axes and check their intersection (i.e. only 15 intersection tests needed)
24
IDC | Interaction Design Collegium
25
IDC | Interaction Design Collegium
26
IDC | Interaction Design Collegium
27
IDC | Interaction Design Collegium
relatively small part of the market
380%
28
IDC | Interaction Design Collegium
29
IDC | Interaction Design Collegium
applications in C, C++ and Java, developed by Qualcomm
30
IDC | Interaction Design Collegium
31
IDC | Interaction Design Collegium
32
IDC | Interaction Design Collegium
33
IDC | Interaction Design Collegium
provides, but instead can make do with the simple input management and
34
IDC | Interaction Design Collegium
35
IDC | Interaction Design Collegium
running on the host machine
36
IDC | Interaction Design Collegium
than the actual programming language used in the rest of the engine
programming language
goals, missions, and levels instead of memory, files, triangles, and algorithms
37
IDC | Interaction Design Collegium
networking which traditional programming languages don’t address
and compile-time error checking
38
IDC | Interaction Design Collegium
39
IDC | Interaction Design Collegium
class TriggerLight extends Light; var() float ChangeTime; // Time light takes to change from on to off. var() bool bInitiallyOn; // Whether it’s initially on. var() bool bDelayFullOn; // Delay then go full-on. .. function BeginPlay() { // Remember initial light type and set new one. Disable( ’Tick’ ); InitialType = LightType; InitialBrightness = LightBrightness; if( bInitiallyOn ) { Alpha = 1.0; Direction = 1.0; } else { LightType = LT_None; Alpha = 0.0; Direction = -1.0; } } ...
40
IDC | Interaction Design Collegium
embed into an existing application
common in games
41
IDC | Interaction Design Collegium
code
game events
42
IDC | Interaction Design Collegium
inside our game engine if the inputs and outputs of the language are not connected to the actual inputs and outputs of the game engine
manipulate the AI subsystem?
and we need to provide functionality for this
43
IDC | Interaction Design Collegium
44
IDC | Interaction Design Collegium
45