Skip to content

Commit

Permalink
Fix last commit + rewrite face mapper / handedness switch to be clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
unconed committed Dec 8, 2009
1 parent 4f17aad commit 42d6c1f
Show file tree
Hide file tree
Showing 45 changed files with 2,767 additions and 560 deletions.
Binary file added Resources/Media/OgreCore/New_Ogre_Border.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Media/OgreCore/New_Ogre_Border_Break.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Media/OgreCore/New_Ogre_Border_Center.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions Resources/Media/OgreCore/Ogre.fontdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
BlueHighway
{
type truetype
source bluehigh.ttf
size 32
resolution 55
}

106 changes: 106 additions & 0 deletions Resources/Media/OgreCore/OgreCore.material
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@

material Core/NodeMaterial
{
technique
{
pass
{
lighting off
scene_blend add
depth_check off
depth_write off
cull_hardware none

texture_unit
{
texture axes.png
}
}
}
}
material Core/StatsBlockBorder
{
technique
{
pass
{
lighting off
scene_blend alpha_blend
depth_check off

texture_unit
{
texture New_Ogre_Border.png
}
}
}
}
material Core/StatsBlockCenter
{
technique
{
pass
{
lighting off
scene_blend alpha_blend
depth_check off

texture_unit
{
texture New_Ogre_Border_Center.png
}
}
}
}

material Core/ProgressBar
{
technique
{
pass
{
lighting off
depth_check off

texture_unit
{
colour_op_ex source1 src_manual src_current 1 1 0.7
}
}
}
}

material Core/OgreText
{
technique
{
pass
{
lighting off
scene_blend alpha_blend
depth_check off

texture_unit
{
texture ogretext.png
}
}
}
}
material Core/StatsBreak
{
technique
{
pass
{
lighting off
scene_blend alpha_blend
depth_check off

texture_unit
{
texture New_Ogre_Border_Break.png
}
}
}
}
154 changes: 154 additions & 0 deletions Resources/Media/OgreCore/OgreDebugPanel.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
// Ogre overlay scripts
Core/DebugOverlay
{
zorder 500
// Stats block
container BorderPanel(Core/StatPanel)
{
metrics_mode pixels
vert_align bottom
left 5
top -107
width 220
height 102
material Core/StatsBlockCenter
border_size 1 1 1 1
border_material Core/StatsBlockBorder
border_topleft_uv 0.0000 1.0000 0.0039 0.9961
border_top_uv 0.0039 1.0000 0.9961 0.9961
border_topright_uv 0.9961 1.0000 1.0000 0.9961
border_left_uv 0.0000 0.9961 0.0039 0.0039
border_right_uv 0.9961 0.9961 1.0000 0.0039
border_bottomleft_uv 0.0000 0.0039 0.0039 0.0000
border_bottom_uv 0.0039 0.0039 0.9961 0.0000
border_bottomright_uv 0.9961 0.0039 1.0000 0.0000

container Panel(Core/BreakPanel)
{
metrics_mode pixels
left 5
top 22
width 210
height 1
material Core/StatsBreak
}

element TextArea(Core/CurrFps)
{
metrics_mode pixels
left 5
top 5
width 90
height 30
font_name BlueHighway
char_height 19
caption Current FPS:
colour_top 1 1 0.7
colour_bottom 1 1 0.7
}
element TextArea(Core/AverageFps)
{
metrics_mode pixels
left 5
top 25
width 90
height 30
font_name BlueHighway
char_height 16
caption AVERAGE FPS:
colour_top 0.5 0.7 0.5
colour_bottom 0.3 0.5 0.3
}
element TextArea(Core/WorstFps)
{
metrics_mode pixels
left 5
top 40
width 90
height 30
font_name BlueHighway
char_height 16
caption WORST FPS:
colour_top 0.5 0.7 0.5
colour_bottom 0.3 0.5 0.3
}
element TextArea(Core/BestFps)
{
metrics_mode pixels
left 5
top 55
width 90
height 30
font_name BlueHighway
char_height 16
caption BEST FPS:
colour_top 0.5 0.7 0.5
colour_bottom 0.3 0.5 0.3
}
element TextArea(Core/NumTris)
{
metrics_mode pixels
left 5
top 70
width 90
height 30
font_name BlueHighway
char_height 16
caption Triangle Count:
colour_top 0.5 0.7 0.5
colour_bottom 0.3 0.5 0.3
}
element TextArea(Core/NumBatches)
{
metrics_mode pixels
left 5
top 85
width 90
height 30
font_name BlueHighway
char_height 16
caption Batch Count:
colour_top 0.5 0.7 0.5
colour_bottom 0.3 0.5 0.3
}
element TextArea(Core/DebugText)
{
metrics_mode pixels
left 230
top 70
width 200
height 30
font_name BlueHighway
char_height 16
colour_top 0.5 0.7 0.5
colour_bottom 0.3 0.5 0.3
}

}
container Panel(Core/LogoPanel)
{
metrics_mode pixels
horz_align right
vert_align bottom
top -75
left -165
width 150
height 75
material Core/OgreText
}
}

// A silly example of how you would do a 3D cockpit
//Examples/KnotCockpit
//{
// zorder 100
// entity knot.mesh(hudKnot)
// {
// position 0 0 -50
// rotation 0 0 0 0
// }
//
//}



88 changes: 88 additions & 0 deletions Resources/Media/OgreCore/OgreLoadingPanel.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
// Ogre overlay scripts
Core/LoadOverlay
{
zorder 510
// Main panel block
container BorderPanel(Core/LoadPanel)
{
metrics_mode pixels
vert_align center
horz_align center
left -200
top -45
width 400
height 80
material Core/StatsBlockCenter
border_size 1 1 1 1
border_material Core/StatsBlockBorder
border_topleft_uv 0.0000 1.0000 0.0039 0.9961
border_top_uv 0.0039 1.0000 0.9961 0.9961
border_topright_uv 0.9961 1.0000 1.0000 0.9961
border_left_uv 0.0000 0.9961 0.0039 0.0039
border_right_uv 0.9961 0.9961 1.0000 0.0039
border_bottomleft_uv 0.0000 0.0039 0.0039 0.0000
border_bottom_uv 0.0039 0.0039 0.9961 0.0000
border_bottomright_uv 0.9961 0.0039 1.0000 0.0000

element TextArea(Core/LoadPanel/Description)
{
metrics_mode pixels
left 5
top 5
width 300
height 20
font_name BlueHighway
char_height 19
caption Loading, please wait...
colour_top 1 1 0.7
colour_bottom 1 1 0.7
}

container BorderPanel(Core/LoadPanel/Bar)
{
metrics_mode pixels
vert_align top
left 10
top 25
width 380
height 30
material Core/StatsBlockCenter
border_size 1 1 1 1
border_material Core/StatsBlockBorder
border_topleft_uv 0.0000 1.0000 0.0039 0.9961
border_top_uv 0.0039 1.0000 0.9961 0.9961
border_topright_uv 0.9961 1.0000 1.0000 0.9961
border_left_uv 0.0000 0.9961 0.0039 0.0039
border_right_uv 0.9961 0.9961 1.0000 0.0039
border_bottomleft_uv 0.0000 0.0039 0.0039 0.0000
border_bottom_uv 0.0039 0.0039 0.9961 0.0000
border_bottomright_uv 0.9961 0.0039 1.0000 0.0000

element Panel(Core/LoadPanel/Bar/Progress)
{
metrics_mode pixels
left 0
top 2
width 30
height 26
material Core/ProgressBar
}
}
element TextArea(Core/LoadPanel/Comment)
{
metrics_mode pixels
left 5
top 60
width 300
height 20
font_name BlueHighway
char_height 15
caption Initialising...
colour_top 0.8 0.8 0.5
colour_bottom 0.8 0.8 0.5
}

}
}


Loading

0 comments on commit 42d6c1f

Please sign in to comment.