ogre.rb 0.1-i386-mswin32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. data/README +79 -0
  2. data/Rakefile +291 -0
  3. data/doc_src/ogre.rb +246 -0
  4. data/doc_src/ois.rb +67 -0
  5. data/lib/application.rb +146 -0
  6. data/lib/application_frame_listener.rb +302 -0
  7. data/lib/application_loading_bar.rb +115 -0
  8. data/lib/constants.rb +51 -0
  9. data/lib/method_fixes.rb +42 -0
  10. data/lib/ogre.dll +0 -0
  11. data/lib/ruby_ois.dll +0 -0
  12. data/ogre.rb +25 -0
  13. data/platform.rb +23 -0
  14. data/samples/Ogre.log +279 -0
  15. data/samples/bsp.rb +76 -0
  16. data/samples/cg.dll +0 -0
  17. data/samples/grass.rb +325 -0
  18. data/samples/js3250.dll +0 -0
  19. data/samples/lighting.rb +138 -0
  20. data/samples/media/materials/programs/Grass.cg +30 -0
  21. data/samples/media/materials/programs/OffsetMapping.cg +97 -0
  22. data/samples/media/materials/programs/OffsetMapping.hlsl +135 -0
  23. data/samples/media/materials/programs/OffsetMappingFp.glsl +69 -0
  24. data/samples/media/materials/programs/OffsetMappingVp.glsl +54 -0
  25. data/samples/media/materials/programs/OffsetMapping_specular.asm +44 -0
  26. data/samples/media/materials/scripts/CloudySky.material +17 -0
  27. data/samples/media/materials/scripts/CubeMapping.material +34 -0
  28. data/samples/media/materials/scripts/Flare.material +17 -0
  29. data/samples/media/materials/scripts/Grass.material +63 -0
  30. data/samples/media/materials/scripts/Knot.material +14 -0
  31. data/samples/media/materials/scripts/MorningSkyBox.material +17 -0
  32. data/samples/media/materials/scripts/Offset.material +124 -0
  33. data/samples/media/materials/scripts/Ogre.material +119 -0
  34. data/samples/media/materials/scripts/RZR-002.material +15 -0
  35. data/samples/media/materials/scripts/Razor.material +14 -0
  36. data/samples/media/materials/scripts/Ribbon.material +19 -0
  37. data/samples/media/materials/scripts/RustySteel.material +14 -0
  38. data/samples/media/materials/scripts/SpaceSkyBox.material +17 -0
  39. data/samples/media/materials/scripts/SpaceSkyPlane.material +17 -0
  40. data/samples/media/materials/scripts/TextureEffects.material +15 -0
  41. data/samples/media/materials/scripts/dragon.material +42 -0
  42. data/samples/media/materials/scripts/smoke.material +18 -0
  43. data/samples/media/materials/textures/GreenSkin.jpg +0 -0
  44. data/samples/media/materials/textures/MtlPlat2.jpg +0 -0
  45. data/samples/media/materials/textures/RZR-002.png +0 -0
  46. data/samples/media/materials/textures/RustedMetal.jpg +0 -0
  47. data/samples/media/materials/textures/RustySteel.jpg +0 -0
  48. data/samples/media/materials/textures/Thumbs.db +0 -0
  49. data/samples/media/materials/textures/Water02.jpg +0 -0
  50. data/samples/media/materials/textures/WeirdEye.png +0 -0
  51. data/samples/media/materials/textures/clouds.jpg +0 -0
  52. data/samples/media/materials/textures/cursor.png +0 -0
  53. data/samples/media/materials/textures/dirt01.jpg +0 -0
  54. data/samples/media/materials/textures/flare.png +0 -0
  55. data/samples/media/materials/textures/gras_02.png +0 -0
  56. data/samples/media/materials/textures/grass_1024.jpg +0 -0
  57. data/samples/media/materials/textures/ogreborder.png +0 -0
  58. data/samples/media/materials/textures/ogreborderUp.png +0 -0
  59. data/samples/media/materials/textures/ribbonband.png +0 -0
  60. data/samples/media/materials/textures/rockwall.tga +0 -0
  61. data/samples/media/materials/textures/rockwall_NH.tga +0 -0
  62. data/samples/media/materials/textures/smoke.png +0 -0
  63. data/samples/media/materials/textures/smokecolors.png +0 -0
  64. data/samples/media/materials/textures/spacesky.jpg +0 -0
  65. data/samples/media/materials/textures/spheremap.png +0 -0
  66. data/samples/media/materials/textures/texmap2.jpg +0 -0
  67. data/samples/media/models/RZR-002.mesh +0 -0
  68. data/samples/media/models/geosphere4500.mesh +0 -0
  69. data/samples/media/models/geosphere8000.mesh +0 -0
  70. data/samples/media/models/knot.mesh +0 -0
  71. data/samples/media/models/ogrehead.mesh +0 -0
  72. data/samples/media/models/razor.mesh +0 -0
  73. data/samples/media/models/sphere.mesh +0 -0
  74. data/samples/media/overlays/CubeMapping.overlay +139 -0
  75. data/samples/media/packs/OgreCore.zip +0 -0
  76. data/samples/media/packs/chiropteraDM.pk3 +0 -0
  77. data/samples/media/packs/chiropteraDM.txt +99 -0
  78. data/samples/media/packs/cubemap.zip +0 -0
  79. data/samples/media/packs/cubemapsJS.zip +0 -0
  80. data/samples/media/packs/dragon.zip +0 -0
  81. data/samples/media/packs/skybox.zip +0 -0
  82. data/samples/media/particles/smoke.particle +43 -0
  83. data/samples/media.cfg +22 -0
  84. data/samples/ogre.cfg +19 -0
  85. data/samples/plugins.cfg +12 -0
  86. data/samples/quake3settings.cfg +2 -0
  87. data/samples/render_to_texture.rb +161 -0
  88. data/samples/resources.cfg +16 -0
  89. data/samples/sky_box.rb +107 -0
  90. data/samples/sky_dome.rb +86 -0
  91. data/samples/sky_plane.rb +27 -0
  92. data/samples/smoke.rb +23 -0
  93. data/samples/work/cube_mapping.rb +686 -0
  94. metadata +149 -0
@@ -0,0 +1,63 @@
1
+ material GrassFloor
2
+ {
3
+ technique
4
+ {
5
+ pass
6
+ {
7
+ texture_unit
8
+ {
9
+ texture grass_1024.jpg
10
+ }
11
+ }
12
+ }
13
+ }
14
+
15
+ vertex_program GrassWaverVp cg
16
+ {
17
+ source Grass.cg
18
+ entry_point grass_vp
19
+ profiles vs_1_1 arbvp1
20
+ }
21
+
22
+ material GrassBlades
23
+ {
24
+ // Vertex program waving grass
25
+ technique
26
+ {
27
+ pass
28
+ {
29
+ vertex_program_ref GrassWaverVp
30
+ {
31
+ param_named_auto worldViewProj worldviewproj_matrix
32
+ param_named_auto ambient ambient_light_colour
33
+ param_named_auto objSpaceLight light_position_object_space 0
34
+ param_named_auto lightColour light_diffuse_colour 0
35
+ param_named_auto offset custom 999
36
+ }
37
+ alpha_rejection greater 150
38
+ scene_blend alpha_blend
39
+ cull_hardware none
40
+ cull_software none
41
+ texture_unit
42
+ {
43
+ texture gras_02.png
44
+ }
45
+ }
46
+ }
47
+
48
+ // Non-vertex program technique (no waving)
49
+ technique
50
+ {
51
+ pass
52
+ {
53
+ alpha_rejection greater 150
54
+ scene_blend alpha_blend
55
+ cull_hardware none
56
+ cull_software none
57
+ texture_unit
58
+ {
59
+ texture gras_02.png
60
+ }
61
+ }
62
+ }
63
+ }
@@ -0,0 +1,14 @@
1
+ material 2 - Default
2
+ {
3
+ technique
4
+ {
5
+ pass
6
+ {
7
+
8
+ texture_unit
9
+ {
10
+ texture MtlPlat2.jpg
11
+ }
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,17 @@
1
+ material MorningSkyBox
2
+ {
3
+ technique
4
+ {
5
+ pass
6
+ {
7
+ lighting off
8
+ depth_write off
9
+
10
+ texture_unit
11
+ {
12
+ cubic_texture morning.jpg separateUV
13
+ tex_address_mode clamp
14
+ }
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,124 @@
1
+ // Bump map with Parallax offset vertex program, support for this is required
2
+ vertex_program OffsetMappingVP cg
3
+ {
4
+ source OffsetMapping.cg
5
+ entry_point main_vp
6
+ profiles vs_1_1 arbvp1
7
+ }
8
+
9
+ // Bump map with parallax fragment program
10
+ fragment_program OffsetMappingFP cg
11
+ {
12
+ source OffsetMapping.cg
13
+ entry_point main_fp
14
+ profiles ps_2_0 arbfp1
15
+ }
16
+
17
+ // Bump map with parallax fragment program
18
+ fragment_program OffsetMappingPS asm
19
+ {
20
+ source OffsetMapping_specular.asm
21
+ // sorry, only for ps_1_4 and above:)
22
+ syntax ps_1_4
23
+ }
24
+
25
+ material OffsetMapping/Specular
26
+ {
27
+
28
+ // This is the preferred technique which uses both vertex and
29
+ // fragment programs, supports coloured lights
30
+ technique
31
+ {
32
+ // do the lighting and bump mapping with parallax pass
33
+ pass
34
+ {
35
+
36
+ // Vertex program reference
37
+ vertex_program_ref OffsetMappingVP
38
+ {
39
+ param_named_auto lightPosition light_position_object_space 0
40
+ param_named_auto eyePosition camera_position_object_space
41
+ param_named_auto worldViewProj worldviewproj_matrix
42
+ }
43
+
44
+ // Fragment program
45
+ fragment_program_ref OffsetMappingFP
46
+ {
47
+ param_named_auto lightDiffuse light_diffuse_colour 0
48
+ param_named_auto lightSpecular light_specular_colour 0
49
+ // Parallax Height scale and bias
50
+ param_named scaleBias float4 0.04 -0.02 1 0
51
+ }
52
+
53
+ // Normal + height(alpha) map
54
+ texture_unit
55
+ {
56
+ texture rockwall_NH.tga
57
+ tex_coord_set 0
58
+ }
59
+
60
+ // Base diffuse texture map
61
+ texture_unit
62
+ {
63
+ texture rockwall.tga
64
+ tex_coord_set 1
65
+ }
66
+ }
67
+ }
68
+
69
+
70
+ // This is the preferred technique which uses both vertex and
71
+ // fragment programs, supports coloured lights
72
+ technique
73
+ {
74
+ // do the lighting and bump mapping with parallax pass
75
+ pass
76
+ {
77
+
78
+ // Vertex program reference
79
+ vertex_program_ref OffsetMappingVP
80
+ {
81
+ param_named_auto lightPosition light_position_object_space 0
82
+ param_named_auto eyePosition camera_position_object_space
83
+ param_named_auto worldViewProj worldviewproj_matrix
84
+ }
85
+
86
+ // Fragment program
87
+ fragment_program_ref OffsetMappingPS
88
+ {
89
+ param_indexed_auto 0 light_diffuse_colour 0
90
+ param_indexed_auto 1 light_specular_colour 0
91
+ // Parallax Height scale and bias
92
+ param_indexed 2 float4 0.04 -0.02 1 0
93
+ }
94
+
95
+ // Normal + height(alpha) map
96
+ texture_unit
97
+ {
98
+ texture rockwall_NH.tga
99
+ tex_coord_set 0
100
+ }
101
+
102
+ // Base diffuse texture map
103
+ texture_unit
104
+ {
105
+ texture rockwall.tga
106
+ tex_coord_set 1
107
+ }
108
+ }
109
+ }
110
+
111
+ // Simple no-shader fallback
112
+ technique
113
+ {
114
+ pass
115
+ {
116
+ // Base diffuse texture map
117
+ texture_unit
118
+ {
119
+ texture rockwall.tga
120
+ }
121
+ }
122
+ }
123
+
124
+ }
@@ -0,0 +1,119 @@
1
+
2
+ material Ogre/Earring
3
+ {
4
+ technique
5
+ {
6
+ pass
7
+ {
8
+ ambient 0.5 0.5 0
9
+ diffuse 1 1 0
10
+
11
+ texture_unit
12
+ {
13
+ texture spheremap.png
14
+ colour_op_ex add src_texture src_current
15
+ colour_op_multipass_fallback one one
16
+ env_map spherical
17
+ }
18
+ }
19
+ }
20
+ }
21
+ material Ogre/Skin
22
+ {
23
+ technique
24
+ {
25
+ pass
26
+ {
27
+ ambient 0.7 0.7 0.7
28
+ cull_hardware none
29
+
30
+ texture_unit
31
+ {
32
+ texture GreenSkin.jpg
33
+ tex_address_mode mirror
34
+ }
35
+ }
36
+ }
37
+ }
38
+ material Ogre/Tusks
39
+ {
40
+ technique
41
+ {
42
+ pass
43
+ {
44
+ ambient 0.5 0.5 0.4
45
+ diffuse 1 1 0.8
46
+
47
+ texture_unit
48
+ {
49
+ texture dirt01.jpg
50
+ colour_op_ex add src_texture src_current
51
+ colour_op_multipass_fallback one one
52
+ }
53
+ }
54
+ }
55
+ }
56
+ material Ogre/Eyes
57
+ {
58
+ technique
59
+ {
60
+ pass
61
+ {
62
+
63
+ texture_unit
64
+ {
65
+ texture WeirdEye.png
66
+ }
67
+ }
68
+ }
69
+ }
70
+ material Cursor/default
71
+ {
72
+ technique
73
+ {
74
+ pass
75
+ {
76
+ scene_blend alpha_blend
77
+
78
+ texture_unit
79
+ {
80
+ texture cursor.png
81
+ tex_address_mode clamp
82
+ }
83
+ }
84
+ }
85
+ }
86
+ material Core/StatsBlockBorder/Down
87
+ {
88
+ technique
89
+ {
90
+ pass
91
+ {
92
+ lighting off
93
+ scene_blend alpha_blend
94
+ depth_check off
95
+
96
+ texture_unit
97
+ {
98
+ texture ogreborder.png
99
+ }
100
+ }
101
+ }
102
+ }
103
+ material Core/StatsBlockBorder/Up
104
+ {
105
+ technique
106
+ {
107
+ pass
108
+ {
109
+ lighting off
110
+ scene_blend alpha_blend
111
+ depth_check off
112
+
113
+ texture_unit
114
+ {
115
+ texture ogreborderUp.png
116
+ }
117
+ }
118
+ }
119
+ }
@@ -0,0 +1,15 @@
1
+
2
+ material RZR-002
3
+ {
4
+ technique
5
+ {
6
+ pass
7
+ {
8
+
9
+ texture_unit
10
+ {
11
+ texture RZR-002.png
12
+ }
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,14 @@
1
+ material Material__25
2
+ {
3
+ technique
4
+ {
5
+ pass
6
+ {
7
+
8
+ texture_unit
9
+ {
10
+ texture texmap2.jpg
11
+ }
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,19 @@
1
+ material LightRibbonTrail
2
+ {
3
+ technique
4
+ {
5
+ pass
6
+ {
7
+ lighting off
8
+ scene_blend add
9
+ depth_write off
10
+
11
+ texture_unit
12
+ {
13
+ texture ribbonband.png 1d
14
+ tex_address_mode clamp
15
+ filtering none
16
+ }
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,14 @@
1
+ material RustySteel
2
+ {
3
+ technique
4
+ {
5
+ pass
6
+ {
7
+
8
+ texture_unit
9
+ {
10
+ texture RustySteel.jpg
11
+ }
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,17 @@
1
+ material SpaceSkyBox
2
+ {
3
+ technique
4
+ {
5
+ pass
6
+ {
7
+ lighting off
8
+ depth_write off
9
+
10
+ texture_unit
11
+ {
12
+ cubic_texture stevecube.jpg separateUV
13
+ tex_address_mode clamp
14
+ }
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,17 @@
1
+ material SpaceSkyPlane
2
+ {
3
+ technique
4
+ {
5
+ pass
6
+ {
7
+ lighting off
8
+ depth_write off
9
+ fog_override true none
10
+
11
+ texture_unit
12
+ {
13
+ texture spacesky.jpg
14
+ }
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,15 @@
1
+ material TextureEffect2
2
+ {
3
+ technique
4
+ {
5
+ pass
6
+ {
7
+
8
+ texture_unit
9
+ {
10
+ texture Water02.jpg
11
+ scroll_anim 0.5 0
12
+ }
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,42 @@
1
+ material Material #8
2
+ {
3
+ technique
4
+ {
5
+ pass
6
+ {
7
+
8
+ texture_unit
9
+ {
10
+ texture BODY.jpg
11
+ }
12
+ }
13
+ }
14
+ }
15
+ material Material #3
16
+ {
17
+ technique
18
+ {
19
+ pass
20
+ {
21
+
22
+ texture_unit
23
+ {
24
+ texture HEAD4.jpg
25
+ }
26
+ }
27
+ }
28
+ }
29
+ material Material #9
30
+ {
31
+ technique
32
+ {
33
+ pass
34
+ {
35
+
36
+ texture_unit
37
+ {
38
+ texture LEGS.jpg
39
+ }
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,18 @@
1
+ material Smoke
2
+ {
3
+ technique
4
+ {
5
+ pass
6
+ {
7
+ lighting off
8
+ scene_blend alpha_blend
9
+ depth_write off
10
+
11
+ texture_unit
12
+ {
13
+ texture smoke.png
14
+ tex_address_mode clamp
15
+ }
16
+ }
17
+ }
18
+ }
Binary file
Binary file
Binary file
Binary file
Binary file