ogre.rb 0.1-i686-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (430) hide show
  1. data/README +79 -0
  2. data/Rakefile +288 -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.so +0 -0
  11. data/lib/ruby_ois.so +0 -0
  12. data/ogre.rb +25 -0
  13. data/platform.rb +23 -0
  14. data/samples/Ogre.log +261 -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/Water02.jpg +0 -0
  49. data/samples/media/materials/textures/WeirdEye.png +0 -0
  50. data/samples/media/materials/textures/clouds.jpg +0 -0
  51. data/samples/media/materials/textures/cursor.png +0 -0
  52. data/samples/media/materials/textures/dirt01.jpg +0 -0
  53. data/samples/media/materials/textures/flare.png +0 -0
  54. data/samples/media/materials/textures/gras_02.png +0 -0
  55. data/samples/media/materials/textures/grass_1024.jpg +0 -0
  56. data/samples/media/materials/textures/ogreborder.png +0 -0
  57. data/samples/media/materials/textures/ogreborderUp.png +0 -0
  58. data/samples/media/materials/textures/ribbonband.png +0 -0
  59. data/samples/media/materials/textures/rockwall.tga +0 -0
  60. data/samples/media/materials/textures/rockwall_NH.tga +0 -0
  61. data/samples/media/materials/textures/smoke.png +0 -0
  62. data/samples/media/materials/textures/smokecolors.png +0 -0
  63. data/samples/media/materials/textures/spacesky.jpg +0 -0
  64. data/samples/media/materials/textures/spheremap.png +0 -0
  65. data/samples/media/materials/textures/texmap2.jpg +0 -0
  66. data/samples/media/models/RZR-002.mesh +0 -0
  67. data/samples/media/models/geosphere4500.mesh +0 -0
  68. data/samples/media/models/geosphere8000.mesh +0 -0
  69. data/samples/media/models/knot.mesh +0 -0
  70. data/samples/media/models/ogrehead.mesh +0 -0
  71. data/samples/media/models/razor.mesh +0 -0
  72. data/samples/media/models/sphere.mesh +0 -0
  73. data/samples/media/overlays/CubeMapping.overlay +139 -0
  74. data/samples/media/packs/OgreCore.zip +0 -0
  75. data/samples/media/packs/chiropteraDM.pk3 +0 -0
  76. data/samples/media/packs/chiropteraDM.txt +99 -0
  77. data/samples/media/packs/cubemap.zip +0 -0
  78. data/samples/media/packs/cubemapsJS.zip +0 -0
  79. data/samples/media/packs/dragon.zip +0 -0
  80. data/samples/media/packs/skybox.zip +0 -0
  81. data/samples/media/particles/smoke.particle +43 -0
  82. data/samples/media.cfg +22 -0
  83. data/samples/navi/Media/NaviDemo.material +60 -0
  84. data/samples/navi/Media/OgreCore.zip +0 -0
  85. data/samples/navi/Media/cerulean.jpg +0 -0
  86. data/samples/navi/Media/clouds.jpg +0 -0
  87. data/samples/navi/Media/controlsNaviMask.png +0 -0
  88. data/samples/navi/Media/grass.jpg +0 -0
  89. data/samples/navi/Media/knot.mesh +0 -0
  90. data/samples/navi/Media/testNaviMask.png +0 -0
  91. data/samples/navi/NaviLocal/Navi.js +136 -0
  92. data/samples/navi/NaviLocal/buttonBg.jpg +0 -0
  93. data/samples/navi/NaviLocal/controls.html +303 -0
  94. data/samples/navi/NaviLocal/knobBg.jpg +0 -0
  95. data/samples/navi/NaviLocal/moo.dropdownmenu.js +87 -0
  96. data/samples/navi/NaviLocal/mootools.v1.1.js +6964 -0
  97. data/samples/navi/NaviLocal/naviLogo.html +32 -0
  98. data/samples/navi/NaviLocal/naviLogo.png +0 -0
  99. data/samples/navi/NaviLocal/pageBg.jpg +0 -0
  100. data/samples/navi/NaviLocal/sliderBg.jpg +0 -0
  101. data/samples/navi/NaviLocal/test.html +5 -0
  102. data/samples/navi/NaviLocal/welcome.html +36 -0
  103. data/samples/navi/NaviLocal/welcome.png +0 -0
  104. data/samples/navi/chrome/chromelist.txt +597 -0
  105. data/samples/navi/chrome/classic.jar +0 -0
  106. data/samples/navi/chrome/classic.manifest +4 -0
  107. data/samples/navi/chrome/comm.jar +0 -0
  108. data/samples/navi/chrome/comm.manifest +2 -0
  109. data/samples/navi/chrome/en-US.jar +0 -0
  110. data/samples/navi/chrome/en-US.manifest +9 -0
  111. data/samples/navi/chrome/toolkit.jar +0 -0
  112. data/samples/navi/chrome/toolkit.manifest +6 -0
  113. data/samples/navi/components/FeedProcessor.js +1825 -0
  114. data/samples/navi/components/alerts.xpt +0 -0
  115. data/samples/navi/components/appshell.xpt +0 -0
  116. data/samples/navi/components/appstartup.xpt +0 -0
  117. data/samples/navi/components/auth.dll +0 -0
  118. data/samples/navi/components/autocomplete.xpt +0 -0
  119. data/samples/navi/components/autoconfig.dll +0 -0
  120. data/samples/navi/components/autoconfig.xpt +0 -0
  121. data/samples/navi/components/caps.xpt +0 -0
  122. data/samples/navi/components/chardet.xpt +0 -0
  123. data/samples/navi/components/chrome.xpt +0 -0
  124. data/samples/navi/components/commandhandler.xpt +0 -0
  125. data/samples/navi/components/commandlines.xpt +0 -0
  126. data/samples/navi/components/composer.xpt +0 -0
  127. data/samples/navi/components/compreg.dat +1474 -0
  128. data/samples/navi/components/content_base.xpt +0 -0
  129. data/samples/navi/components/content_html.xpt +0 -0
  130. data/samples/navi/components/content_htmldoc.xpt +0 -0
  131. data/samples/navi/components/content_xmldoc.xpt +0 -0
  132. data/samples/navi/components/content_xslt.xpt +0 -0
  133. data/samples/navi/components/content_xtf.xpt +0 -0
  134. data/samples/navi/components/directory.xpt +0 -0
  135. data/samples/navi/components/docshell_base.xpt +0 -0
  136. data/samples/navi/components/dom.xpt +0 -0
  137. data/samples/navi/components/dom_base.xpt +0 -0
  138. data/samples/navi/components/dom_canvas.xpt +0 -0
  139. data/samples/navi/components/dom_core.xpt +0 -0
  140. data/samples/navi/components/dom_css.xpt +0 -0
  141. data/samples/navi/components/dom_events.xpt +0 -0
  142. data/samples/navi/components/dom_html.xpt +0 -0
  143. data/samples/navi/components/dom_loadsave.xpt +0 -0
  144. data/samples/navi/components/dom_range.xpt +0 -0
  145. data/samples/navi/components/dom_sidebar.xpt +0 -0
  146. data/samples/navi/components/dom_storage.xpt +0 -0
  147. data/samples/navi/components/dom_stylesheets.xpt +0 -0
  148. data/samples/navi/components/dom_svg.xpt +0 -0
  149. data/samples/navi/components/dom_traversal.xpt +0 -0
  150. data/samples/navi/components/dom_views.xpt +0 -0
  151. data/samples/navi/components/dom_xbl.xpt +0 -0
  152. data/samples/navi/components/dom_xpath.xpt +0 -0
  153. data/samples/navi/components/dom_xul.xpt +0 -0
  154. data/samples/navi/components/downloads.xpt +0 -0
  155. data/samples/navi/components/editor.xpt +0 -0
  156. data/samples/navi/components/embed_base.xpt +0 -0
  157. data/samples/navi/components/extensions.xpt +0 -0
  158. data/samples/navi/components/exthandler.xpt +0 -0
  159. data/samples/navi/components/fastfind.xpt +0 -0
  160. data/samples/navi/components/feeds.xpt +0 -0
  161. data/samples/navi/components/find.xpt +0 -0
  162. data/samples/navi/components/gfx.xpt +0 -0
  163. data/samples/navi/components/gksvgrenderer.xpt +0 -0
  164. data/samples/navi/components/history.xpt +0 -0
  165. data/samples/navi/components/htmlparser.xpt +0 -0
  166. data/samples/navi/components/imglib2.xpt +0 -0
  167. data/samples/navi/components/inspector.xpt +0 -0
  168. data/samples/navi/components/intl.xpt +0 -0
  169. data/samples/navi/components/intlcmpt.xpt +0 -0
  170. data/samples/navi/components/jar.xpt +0 -0
  171. data/samples/navi/components/jsconsole-clhandler.js +170 -0
  172. data/samples/navi/components/jsconsole.xpt +0 -0
  173. data/samples/navi/components/jsdservice.xpt +0 -0
  174. data/samples/navi/components/layout_base.xpt +0 -0
  175. data/samples/navi/components/layout_printing.xpt +0 -0
  176. data/samples/navi/components/layout_xul.xpt +0 -0
  177. data/samples/navi/components/layout_xul_tree.xpt +0 -0
  178. data/samples/navi/components/locale.xpt +0 -0
  179. data/samples/navi/components/lwbrk.xpt +0 -0
  180. data/samples/navi/components/mimetype.xpt +0 -0
  181. data/samples/navi/components/mozbrwsr.xpt +0 -0
  182. data/samples/navi/components/mozfind.xpt +0 -0
  183. data/samples/navi/components/necko.xpt +0 -0
  184. data/samples/navi/components/necko_about.xpt +0 -0
  185. data/samples/navi/components/necko_cache.xpt +0 -0
  186. data/samples/navi/components/necko_cookie.xpt +0 -0
  187. data/samples/navi/components/necko_data.xpt +0 -0
  188. data/samples/navi/components/necko_dns.xpt +0 -0
  189. data/samples/navi/components/necko_file.xpt +0 -0
  190. data/samples/navi/components/necko_ftp.xpt +0 -0
  191. data/samples/navi/components/necko_http.xpt +0 -0
  192. data/samples/navi/components/necko_res.xpt +0 -0
  193. data/samples/navi/components/necko_socket.xpt +0 -0
  194. data/samples/navi/components/necko_strconv.xpt +0 -0
  195. data/samples/navi/components/necko_viewsource.xpt +0 -0
  196. data/samples/navi/components/nsCloseAllWindows.js +143 -0
  197. data/samples/navi/components/nsDefaultCLH.js +231 -0
  198. data/samples/navi/components/nsDictionary.js +148 -0
  199. data/samples/navi/components/nsExtensionManager.js +8497 -0
  200. data/samples/navi/components/nsHelperAppDlg.js +990 -0
  201. data/samples/navi/components/nsInterfaceInfoToIDL.js +590 -0
  202. data/samples/navi/components/nsKillAll.js +200 -0
  203. data/samples/navi/components/nsPostUpdateWin.js +711 -0
  204. data/samples/navi/components/nsProgressDialog.js +949 -0
  205. data/samples/navi/components/nsProxyAutoConfig.js +396 -0
  206. data/samples/navi/components/nsResetPref.js +175 -0
  207. data/samples/navi/components/nsURLFormatter.js +179 -0
  208. data/samples/navi/components/nsUpdateService.js +3074 -0
  209. data/samples/navi/components/nsXULAppInstall.js +301 -0
  210. data/samples/navi/components/nsXmlRpcClient.js +1038 -0
  211. data/samples/navi/components/oji.xpt +0 -0
  212. data/samples/navi/components/passwordmgr.xpt +0 -0
  213. data/samples/navi/components/pipboot.xpt +0 -0
  214. data/samples/navi/components/pipnss.xpt +0 -0
  215. data/samples/navi/components/plugin.xpt +0 -0
  216. data/samples/navi/components/pref.xpt +0 -0
  217. data/samples/navi/components/prefetch.xpt +0 -0
  218. data/samples/navi/components/profile.xpt +0 -0
  219. data/samples/navi/components/progressDlg.xpt +0 -0
  220. data/samples/navi/components/proxyObject.xpt +0 -0
  221. data/samples/navi/components/rdf.xpt +0 -0
  222. data/samples/navi/components/satchel.xpt +0 -0
  223. data/samples/navi/components/saxparser.xpt +0 -0
  224. data/samples/navi/components/shistory.xpt +0 -0
  225. data/samples/navi/components/storage.xpt +0 -0
  226. data/samples/navi/components/toolkitprofile.xpt +0 -0
  227. data/samples/navi/components/transformiix.dll +0 -0
  228. data/samples/navi/components/txmgr.xpt +0 -0
  229. data/samples/navi/components/txtsvc.xpt +0 -0
  230. data/samples/navi/components/uconv.xpt +0 -0
  231. data/samples/navi/components/unicharutil.xpt +0 -0
  232. data/samples/navi/components/universalchardet.dll +0 -0
  233. data/samples/navi/components/update.xpt +0 -0
  234. data/samples/navi/components/uriloader.xpt +0 -0
  235. data/samples/navi/components/urlformatter.xpt +0 -0
  236. data/samples/navi/components/webBrowser_core.xpt +0 -0
  237. data/samples/navi/components/webbrowserpersist.xpt +0 -0
  238. data/samples/navi/components/webshell_idls.xpt +0 -0
  239. data/samples/navi/components/websrvcs.dll +0 -0
  240. data/samples/navi/components/websrvcs.xpt +0 -0
  241. data/samples/navi/components/widget.xpt +0 -0
  242. data/samples/navi/components/windowds.xpt +0 -0
  243. data/samples/navi/components/windowwatcher.xpt +0 -0
  244. data/samples/navi/components/xml-rpc.xpt +0 -0
  245. data/samples/navi/components/xmlextras.dll +0 -0
  246. data/samples/navi/components/xpcom_base.xpt +0 -0
  247. data/samples/navi/components/xpcom_components.xpt +0 -0
  248. data/samples/navi/components/xpcom_ds.xpt +0 -0
  249. data/samples/navi/components/xpcom_io.xpt +0 -0
  250. data/samples/navi/components/xpcom_obsolete.xpt +0 -0
  251. data/samples/navi/components/xpcom_thread.xpt +0 -0
  252. data/samples/navi/components/xpcom_xpti.xpt +0 -0
  253. data/samples/navi/components/xpconnect.xpt +0 -0
  254. data/samples/navi/components/xpinstall.xpt +0 -0
  255. data/samples/navi/components/xpti.dat +1424 -0
  256. data/samples/navi/components/xulapp.xpt +0 -0
  257. data/samples/navi/components/xulapp_setup.xpt +0 -0
  258. data/samples/navi/components/xuldoc.xpt +0 -0
  259. data/samples/navi/components/xulrunner.xpt +0 -0
  260. data/samples/navi/components/xultmpl.xpt +0 -0
  261. data/samples/navi/components/xulutil.dll +0 -0
  262. data/samples/navi/controlsNaviMask.png +0 -0
  263. data/samples/navi/greprefs/all.js +1344 -0
  264. data/samples/navi/greprefs/security-prefs.js +69 -0
  265. data/samples/navi/greprefs/xpinstall.js +2 -0
  266. data/samples/navi/navi_demo.rb +207 -0
  267. data/samples/navi/plugins/NPSWF32.dll +0 -0
  268. data/samples/navi/plugins/flashplayer.xpt +0 -0
  269. data/samples/navi/plugins/npnul32.dll +0 -0
  270. data/samples/navi/plugins.cfg +10 -0
  271. data/samples/navi/res/EditorOverride.css +359 -0
  272. data/samples/navi/res/Thumbs.db +0 -0
  273. data/samples/navi/res/arrow.gif +0 -0
  274. data/samples/navi/res/arrowd.gif +0 -0
  275. data/samples/navi/res/bloatcycle.html +40 -0
  276. data/samples/navi/res/broken-image.gif +0 -0
  277. data/samples/navi/res/charsetData.properties +199 -0
  278. data/samples/navi/res/charsetalias.properties +517 -0
  279. data/samples/navi/res/cmessage.txt +1 -0
  280. data/samples/navi/res/dtd/xhtml11.dtd +300 -0
  281. data/samples/navi/res/entityTables/html40Latin1.properties +146 -0
  282. data/samples/navi/res/entityTables/html40Special.properties +69 -0
  283. data/samples/navi/res/entityTables/html40Symbols.properties +164 -0
  284. data/samples/navi/res/entityTables/htmlEntityVersions.properties +50 -0
  285. data/samples/navi/res/entityTables/transliterate.properties +2367 -0
  286. data/samples/navi/res/fonts/fontEncoding.properties +127 -0
  287. data/samples/navi/res/fonts/fontNameMap.properties +134 -0
  288. data/samples/navi/res/forms.css +531 -0
  289. data/samples/navi/res/grabber.gif +0 -0
  290. data/samples/navi/res/hiddenWindow.html +1 -0
  291. data/samples/navi/res/html/Thumbs.db +0 -0
  292. data/samples/navi/res/html/gopher-audio.gif +0 -0
  293. data/samples/navi/res/html/gopher-binary.gif +0 -0
  294. data/samples/navi/res/html/gopher-find.gif +0 -0
  295. data/samples/navi/res/html/gopher-image.gif +0 -0
  296. data/samples/navi/res/html/gopher-menu.gif +0 -0
  297. data/samples/navi/res/html/gopher-movie.gif +0 -0
  298. data/samples/navi/res/html/gopher-sound.gif +0 -0
  299. data/samples/navi/res/html/gopher-telnet.gif +0 -0
  300. data/samples/navi/res/html/gopher-text.gif +0 -0
  301. data/samples/navi/res/html/gopher-unknown.gif +0 -0
  302. data/samples/navi/res/html.css +478 -0
  303. data/samples/navi/res/langGroups.properties +236 -0
  304. data/samples/navi/res/language.properties +259 -0
  305. data/samples/navi/res/loading-image.gif +0 -0
  306. data/samples/navi/res/quirk.css +282 -0
  307. data/samples/navi/res/samples/Anieyes.gif +0 -0
  308. data/samples/navi/res/samples/Thumbs.db +0 -0
  309. data/samples/navi/res/samples/aform.css +69 -0
  310. data/samples/navi/res/samples/beeptest.html +18 -0
  311. data/samples/navi/res/samples/bform.css +45 -0
  312. data/samples/navi/res/samples/bg.jpg +0 -0
  313. data/samples/navi/res/samples/cform.css +40 -0
  314. data/samples/navi/res/samples/checkboxTest.xul +47 -0
  315. data/samples/navi/res/samples/demoform.css +97 -0
  316. data/samples/navi/res/samples/find.html +97 -0
  317. data/samples/navi/res/samples/gear1.gif +0 -0
  318. data/samples/navi/res/samples/image_props.html +58 -0
  319. data/samples/navi/res/samples/mozform.css +256 -0
  320. data/samples/navi/res/samples/printsetup.html +175 -0
  321. data/samples/navi/res/samples/raptor.jpg +0 -0
  322. data/samples/navi/res/samples/rock_gra.gif +0 -0
  323. data/samples/navi/res/samples/scrollbarTest1.xul +66 -0
  324. data/samples/navi/res/samples/scrollbarTest2.xul +19 -0
  325. data/samples/navi/res/samples/sliderTest1.xul +14 -0
  326. data/samples/navi/res/samples/soundtest.html +20 -0
  327. data/samples/navi/res/samples/test.wav +0 -0
  328. data/samples/navi/res/samples/test0.html +220 -0
  329. data/samples/navi/res/samples/test1.html +84 -0
  330. data/samples/navi/res/samples/test10.html +16 -0
  331. data/samples/navi/res/samples/test11.html +42 -0
  332. data/samples/navi/res/samples/test12.html +79 -0
  333. data/samples/navi/res/samples/test13.html +126 -0
  334. data/samples/navi/res/samples/test14.html +5 -0
  335. data/samples/navi/res/samples/test15.html +5 -0
  336. data/samples/navi/res/samples/test16.html +124 -0
  337. data/samples/navi/res/samples/test2.html +41 -0
  338. data/samples/navi/res/samples/test3.html +126 -0
  339. data/samples/navi/res/samples/test4.html +335 -0
  340. data/samples/navi/res/samples/test5.html +199 -0
  341. data/samples/navi/res/samples/test6.html +335 -0
  342. data/samples/navi/res/samples/test7.html +11 -0
  343. data/samples/navi/res/samples/test8-1.html +66 -0
  344. data/samples/navi/res/samples/test8.html +662 -0
  345. data/samples/navi/res/samples/test8dom.html +64 -0
  346. data/samples/navi/res/samples/test8sca.html +308 -0
  347. data/samples/navi/res/samples/test8siz.html +224 -0
  348. data/samples/navi/res/samples/test8tab.html +9 -0
  349. data/samples/navi/res/samples/test9.html +12 -0
  350. data/samples/navi/res/samples/test9a.html +39 -0
  351. data/samples/navi/res/samples/test9b.html +16 -0
  352. data/samples/navi/res/samples/test_ed.html +5 -0
  353. data/samples/navi/res/samples/test_form.html +34 -0
  354. data/samples/navi/res/samples/test_gfx.html +75 -0
  355. data/samples/navi/res/samples/test_lbox.html +100 -0
  356. data/samples/navi/res/samples/test_pr.html +87 -0
  357. data/samples/navi/res/samples/test_weight.html +45 -0
  358. data/samples/navi/res/samples/toolbarTest1.xul +51 -0
  359. data/samples/navi/res/samples/treeTest1.css +62 -0
  360. data/samples/navi/res/samples/treeTest1.xul +110 -0
  361. data/samples/navi/res/samples/xulTest.css +130 -0
  362. data/samples/navi/res/svg.css +64 -0
  363. data/samples/navi/res/table-add-column-after-active.gif +0 -0
  364. data/samples/navi/res/table-add-column-after-hover.gif +0 -0
  365. data/samples/navi/res/table-add-column-after.gif +0 -0
  366. data/samples/navi/res/table-add-column-before-active.gif +0 -0
  367. data/samples/navi/res/table-add-column-before-hover.gif +0 -0
  368. data/samples/navi/res/table-add-column-before.gif +0 -0
  369. data/samples/navi/res/table-add-row-after-active.gif +0 -0
  370. data/samples/navi/res/table-add-row-after-hover.gif +0 -0
  371. data/samples/navi/res/table-add-row-after.gif +0 -0
  372. data/samples/navi/res/table-add-row-before-active.gif +0 -0
  373. data/samples/navi/res/table-add-row-before-hover.gif +0 -0
  374. data/samples/navi/res/table-add-row-before.gif +0 -0
  375. data/samples/navi/res/table-remove-column-active.gif +0 -0
  376. data/samples/navi/res/table-remove-column-hover.gif +0 -0
  377. data/samples/navi/res/table-remove-column.gif +0 -0
  378. data/samples/navi/res/table-remove-row-active.gif +0 -0
  379. data/samples/navi/res/table-remove-row-hover.gif +0 -0
  380. data/samples/navi/res/table-remove-row.gif +0 -0
  381. data/samples/navi/res/throbber/Thumbs.db +0 -0
  382. data/samples/navi/res/throbber/anim.gif +0 -0
  383. data/samples/navi/res/throbber/anims00.gif +0 -0
  384. data/samples/navi/res/throbber/anims01.gif +0 -0
  385. data/samples/navi/res/throbber/anims02.gif +0 -0
  386. data/samples/navi/res/throbber/anims03.gif +0 -0
  387. data/samples/navi/res/throbber/anims04.gif +0 -0
  388. data/samples/navi/res/throbber/anims05.gif +0 -0
  389. data/samples/navi/res/throbber/anims06.gif +0 -0
  390. data/samples/navi/res/throbber/anims07.gif +0 -0
  391. data/samples/navi/res/throbber/anims08.gif +0 -0
  392. data/samples/navi/res/throbber/anims09.gif +0 -0
  393. data/samples/navi/res/throbber/anims10.gif +0 -0
  394. data/samples/navi/res/throbber/anims11.gif +0 -0
  395. data/samples/navi/res/throbber/anims12.gif +0 -0
  396. data/samples/navi/res/throbber/anims13.gif +0 -0
  397. data/samples/navi/res/throbber/anims14.gif +0 -0
  398. data/samples/navi/res/throbber/anims15.gif +0 -0
  399. data/samples/navi/res/throbber/anims16.gif +0 -0
  400. data/samples/navi/res/throbber/anims17.gif +0 -0
  401. data/samples/navi/res/throbber/anims18.gif +0 -0
  402. data/samples/navi/res/throbber/anims19.gif +0 -0
  403. data/samples/navi/res/throbber/anims20.gif +0 -0
  404. data/samples/navi/res/throbber/anims21.gif +0 -0
  405. data/samples/navi/res/throbber/anims22.gif +0 -0
  406. data/samples/navi/res/throbber/anims23.gif +0 -0
  407. data/samples/navi/res/throbber/anims24.gif +0 -0
  408. data/samples/navi/res/throbber/anims25.gif +0 -0
  409. data/samples/navi/res/throbber/anims26.gif +0 -0
  410. data/samples/navi/res/throbber/anims27.gif +0 -0
  411. data/samples/navi/res/throbber/anims28.gif +0 -0
  412. data/samples/navi/res/throbber/anims29.gif +0 -0
  413. data/samples/navi/res/ua.css +235 -0
  414. data/samples/navi/res/viewer.properties +1 -0
  415. data/samples/navi/res/viewsource.css +118 -0
  416. data/samples/navi/res/wincharset.properties +55 -0
  417. data/samples/navi/resources.cfg +14 -0
  418. data/samples/navi/testNaviMask.png +0 -0
  419. data/samples/ogre.cfg +8 -0
  420. data/samples/plugins.cfg +11 -0
  421. data/samples/quake3settings.cfg +2 -0
  422. data/samples/render_run_log.5796 +891 -0
  423. data/samples/render_to_texture.rb +161 -0
  424. data/samples/resources.cfg +16 -0
  425. data/samples/sky_box.rb +107 -0
  426. data/samples/sky_dome.rb +86 -0
  427. data/samples/sky_plane.rb +27 -0
  428. data/samples/smoke.rb +23 -0
  429. data/samples/work/cube_mapping.rb +686 -0
  430. metadata +500 -0
data/samples/Ogre.log ADDED
@@ -0,0 +1,261 @@
1
+ 07:10:29: Creating resource group General
2
+ 07:10:29: Creating resource group Internal
3
+ 07:10:29: Creating resource group Autodetect
4
+ 07:10:29: SceneManagerFactory for type 'DefaultSceneManager' registered.
5
+ 07:10:29: Registering ResourceManager for type Material
6
+ 07:10:29: Registering ResourceManager for type Mesh
7
+ 07:10:29: Registering ResourceManager for type Skeleton
8
+ 07:10:29: MovableObjectFactory for type 'ParticleSystem' registered.
9
+ 07:10:29: OverlayElementFactory for type Panel registered.
10
+ 07:10:29: OverlayElementFactory for type BorderPanel registered.
11
+ 07:10:29: OverlayElementFactory for type TextArea registered.
12
+ 07:10:29: Registering ResourceManager for type Font
13
+ 07:10:29: ArchiveFactory for archive type FileSystem registered.
14
+ 07:10:29: ArchiveFactory for archive type Zip registered.
15
+ 07:10:29: FreeImage version: 3.9.3
16
+ 07:10:29: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
17
+ 07:10:29: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi
18
+ 07:10:29: DDS codec registering
19
+ 07:10:29: Registering ResourceManager for type HighLevelGpuProgram
20
+ 07:10:29: Registering ResourceManager for type Compositor
21
+ 07:10:29: MovableObjectFactory for type 'Entity' registered.
22
+ 07:10:29: MovableObjectFactory for type 'Light' registered.
23
+ 07:10:29: MovableObjectFactory for type 'BillboardSet' registered.
24
+ 07:10:29: MovableObjectFactory for type 'ManualObject' registered.
25
+ 07:10:29: MovableObjectFactory for type 'BillboardChain' registered.
26
+ 07:10:29: MovableObjectFactory for type 'RibbonTrail' registered.
27
+ 07:10:29: Loading library /usr/local/lib/OGRE/RenderSystem_GL
28
+ 07:10:29: Installing plugin: GL RenderSystem
29
+ 07:10:29: OpenGL Rendering Subsystem created.
30
+ 07:10:29: Plugin successfully installed
31
+ 07:10:29: Loading library /usr/local/lib/OGRE/Plugin_OctreeSceneManager
32
+ 07:10:29: Installing plugin: Octree & Terrain Scene Manager
33
+ 07:10:29: Plugin successfully installed
34
+ 07:10:29: Loading library /usr/local/lib/OGRE/Plugin_ParticleFX
35
+ 07:10:29: Installing plugin: ParticleFX
36
+ 07:10:29: Particle Emitter Type 'Point' registered
37
+ 07:10:29: Particle Emitter Type 'Box' registered
38
+ 07:10:29: Particle Emitter Type 'Ellipsoid' registered
39
+ 07:10:29: Particle Emitter Type 'Cylinder' registered
40
+ 07:10:29: Particle Emitter Type 'Ring' registered
41
+ 07:10:29: Particle Emitter Type 'HollowEllipsoid' registered
42
+ 07:10:29: Particle Affector Type 'LinearForce' registered
43
+ 07:10:29: Particle Affector Type 'ColourFader' registered
44
+ 07:10:29: Particle Affector Type 'ColourFader2' registered
45
+ 07:10:29: Particle Affector Type 'ColourImage' registered
46
+ 07:10:29: Particle Affector Type 'ColourInterpolator' registered
47
+ 07:10:29: Particle Affector Type 'Scaler' registered
48
+ 07:10:29: Particle Affector Type 'Rotator' registered
49
+ 07:10:29: Particle Affector Type 'DirectionRandomiser' registered
50
+ 07:10:29: Particle Affector Type 'DeflectorPlane' registered
51
+ 07:10:29: Plugin successfully installed
52
+ 07:10:29: Loading library /usr/local/lib/OGRE/Plugin_BSPSceneManager
53
+ 07:10:29: Installing plugin: BSP Scene Manager
54
+ 07:10:29: Plugin successfully installed
55
+ 07:10:29: Loading library /usr/local/lib/OGRE/Plugin_CgProgramManager
56
+ 07:10:29: Installing plugin: Cg Program Manager
57
+ 07:10:29: Plugin successfully installed
58
+ 07:10:29: *-*-* OGRE Initialising
59
+ 07:10:29: *-*-* Version 1.4.0 (Eihort)
60
+ 07:10:29: Creating resource group Bootstrap
61
+ 07:10:29: Added resource location './media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
62
+ 07:10:29: Added resource location './media/' of type 'FileSystem' to resource group 'General'
63
+ 07:10:29: Added resource location './media/materials' of type 'FileSystem' to resource group 'General'
64
+ 07:10:29: Added resource location './media/materials/textures' of type 'FileSystem' to resource group 'General'
65
+ 07:10:29: Added resource location './media/materials/scripts' of type 'FileSystem' to resource group 'General'
66
+ 07:10:29: Added resource location './media/materials/programs' of type 'FileSystem' to resource group 'General'
67
+ 07:10:29: Added resource location './media/models' of type 'FileSystem' to resource group 'General'
68
+ 07:10:29: Added resource location './media/particles' of type 'FileSystem' to resource group 'General'
69
+ 07:10:29: Added resource location './media/overlays' of type 'FileSystem' to resource group 'General'
70
+ 07:10:29: Added resource location './media/packs/skybox.zip' of type 'Zip' to resource group 'General'
71
+ 07:10:29: Added resource location './media/packs/dragon.zip' of type 'Zip' to resource group 'General'
72
+ 07:10:29: Added resource location './media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
73
+ 07:10:29: Added resource location './media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
74
+ 07:10:33: CPU Identifier & Features
75
+ 07:10:33: -------------------------
76
+ 07:10:33: * CPU ID: GenuineIntel: Intel(R) Pentium(R) III Mobile CPU 1000MHz
77
+ 07:10:33: * SSE: yes
78
+ 07:10:33: * SSE2: no
79
+ 07:10:33: * SSE3: no
80
+ 07:10:33: * MMX: yes
81
+ 07:10:33: * MMXEXT: yes
82
+ 07:10:33: * 3DNOW: no
83
+ 07:10:33: * 3DNOWEXT: no
84
+ 07:10:33: * CMOV: yes
85
+ 07:10:33: * TSC: yes
86
+ 07:10:33: * FPU: yes
87
+ 07:10:33: * PRO: no
88
+ 07:10:33: * HT: no
89
+ 07:10:33: -------------------------
90
+ 07:10:33: ******************************
91
+ *** Starting GLX Subsystem ***
92
+ ******************************
93
+ 07:10:33: GLRenderSystem::createRenderWindow "OGRE Render Window", 1280x1024 windowed miscParams: FSAA=0 displayFrequency=Not applicable title=OGRE Render Window
94
+ 07:10:33: GL_VERSION = 1.5.6 NVIDIA 87.76
95
+ 07:10:33: GL_VENDOR = NVIDIA Corporation
96
+ 07:10:33: GL_RENDERER = GeForce2 MX/AGP/SSE
97
+ 07:10:33: GL_EXTENSIONS = GL_ARB_imaging GL_ARB_multitexture GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_texture_rectangle GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_paletted_texture GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shared_texture_palette GL_EXT_stencil_wrap GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_vertex_array GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_fence GL_NV_fog_distance GL_NV_gpu_program_parameters GL_NV_light_max_exponent GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_register_combiners GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_SGIS_generate_mipmap GL_SGIS_multitexture GL_SGIS_texture_lod GL_SUN_slice_accum
98
+ 07:10:33: ***************************
99
+ 07:10:33: *** GL Renderer Started ***
100
+ 07:10:33: ***************************
101
+ 07:10:33: Registering ResourceManager for type GpuProgram
102
+ 07:10:33: GL: Using PBuffers for rendering to textures
103
+ 07:10:33: RenderSystem capabilities
104
+ 07:10:33: -------------------------
105
+ 07:10:33: * Hardware generation of mipmaps: yes
106
+ 07:10:33: * Texture blending: yes
107
+ 07:10:33: * Anisotropic texture filtering: yes
108
+ 07:10:33: * Dot product texture operation: yes
109
+ 07:10:33: * Cube mapping: yes
110
+ 07:10:33: * Hardware stencil buffer: yes
111
+ 07:10:33: - Stencil depth: 8
112
+ 07:10:33: - Two sided stencil support: no
113
+ 07:10:33: - Wrap stencil values: yes
114
+ 07:10:33: * Hardware vertex / index buffers: yes
115
+ 07:10:33: * Vertex programs: yes
116
+ 07:10:33: - Max vertex program version: arbvp1
117
+ 07:10:33: * Fragment programs: no
118
+ 07:10:33: * Texture Compression: yes
119
+ 07:10:33: - DXT: yes
120
+ 07:10:33: - VTC: no
121
+ 07:10:33: * Scissor Rectangle: yes
122
+ 07:10:33: * Hardware Occlusion Query: yes
123
+ 07:10:33: * User clip planes: yes
124
+ 07:10:33: * VET_UBYTE4 vertex element type: yes
125
+ 07:10:33: * Infinite far plane projection: yes
126
+ 07:10:33: * Hardware render-to-texture: yes
127
+ 07:10:33: * Floating point textures: no
128
+ 07:10:33: * Non-power-of-two textures: no
129
+ 07:10:33: * Volume textures: yes
130
+ 07:10:33: * Multiple Render Targets: 1
131
+ 07:10:33: * Point Sprites: yes
132
+ 07:10:33: * Extended point parameters: yes
133
+ 07:10:33: * Max Point Size: 63.375
134
+ 07:10:33: * Vertex texture fetch: no
135
+ 07:10:33: Registering ResourceManager for type Texture
136
+ 07:10:33: ResourceBackgroundQueue - threading disabled
137
+ 07:10:33: Particle Renderer Type 'billboard' registered
138
+ 07:10:33: SceneManagerFactory for type 'BspSceneManager' registered.
139
+ 07:10:33: Registering ResourceManager for type BspLevel
140
+ 07:10:33: SceneManagerFactory for type 'OctreeSceneManager' registered.
141
+ 07:10:33: SceneManagerFactory for type 'TerrainSceneManager' registered.
142
+ 07:10:33: Creating viewport on target 'OGRE Render Window', rendering from camera 'PlayerCam', relative dimensions L: 0.00 T: 0.00 W: 1.00 H: 1.00 ZOrder: 0
143
+ 07:10:33: Viewport for camera 'PlayerCam', actual dimensions L: 0 T: 0 W: 1280 H: 1024
144
+ 07:10:33: Parsing scripts for resource group Autodetect
145
+ 07:10:33: Finished parsing scripts for resource group Autodetect
146
+ 07:10:33: Parsing scripts for resource group Bootstrap
147
+ 07:10:33: Parsing script OgreCore.material
148
+ 07:10:33: Parsing script OgreProfiler.material
149
+ 07:10:33: Parsing script Ogre.fontdef
150
+ 07:10:33: Parsing script OgreDebugPanel.overlay
151
+ 07:10:33: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 8 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
152
+ 07:10:33: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
153
+ 07:10:33: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
154
+ 07:10:33: Font BlueHighwayusing texture size 512x512
155
+ 07:10:33: Info: Freetype returned null for character 127 in font BlueHighway
156
+ 07:10:33: Info: Freetype returned null for character 128 in font BlueHighway
157
+ 07:10:33: Info: Freetype returned null for character 129 in font BlueHighway
158
+ 07:10:33: Info: Freetype returned null for character 130 in font BlueHighway
159
+ 07:10:33: Info: Freetype returned null for character 131 in font BlueHighway
160
+ 07:10:33: Info: Freetype returned null for character 132 in font BlueHighway
161
+ 07:10:33: Info: Freetype returned null for character 133 in font BlueHighway
162
+ 07:10:33: Info: Freetype returned null for character 134 in font BlueHighway
163
+ 07:10:33: Info: Freetype returned null for character 135 in font BlueHighway
164
+ 07:10:33: Info: Freetype returned null for character 136 in font BlueHighway
165
+ 07:10:33: Info: Freetype returned null for character 137 in font BlueHighway
166
+ 07:10:33: Info: Freetype returned null for character 138 in font BlueHighway
167
+ 07:10:33: Info: Freetype returned null for character 139 in font BlueHighway
168
+ 07:10:33: Info: Freetype returned null for character 140 in font BlueHighway
169
+ 07:10:33: Info: Freetype returned null for character 141 in font BlueHighway
170
+ 07:10:33: Info: Freetype returned null for character 142 in font BlueHighway
171
+ 07:10:33: Info: Freetype returned null for character 143 in font BlueHighway
172
+ 07:10:33: Info: Freetype returned null for character 144 in font BlueHighway
173
+ 07:10:33: Info: Freetype returned null for character 145 in font BlueHighway
174
+ 07:10:33: Info: Freetype returned null for character 146 in font BlueHighway
175
+ 07:10:33: Info: Freetype returned null for character 147 in font BlueHighway
176
+ 07:10:33: Info: Freetype returned null for character 148 in font BlueHighway
177
+ 07:10:33: Info: Freetype returned null for character 149 in font BlueHighway
178
+ 07:10:33: Info: Freetype returned null for character 150 in font BlueHighway
179
+ 07:10:33: Info: Freetype returned null for character 151 in font BlueHighway
180
+ 07:10:33: Info: Freetype returned null for character 152 in font BlueHighway
181
+ 07:10:33: Info: Freetype returned null for character 153 in font BlueHighway
182
+ 07:10:33: Info: Freetype returned null for character 154 in font BlueHighway
183
+ 07:10:33: Info: Freetype returned null for character 155 in font BlueHighway
184
+ 07:10:33: Info: Freetype returned null for character 156 in font BlueHighway
185
+ 07:10:33: Info: Freetype returned null for character 157 in font BlueHighway
186
+ 07:10:33: Info: Freetype returned null for character 158 in font BlueHighway
187
+ 07:10:33: Info: Freetype returned null for character 159 in font BlueHighway
188
+ 07:10:33: Info: Freetype returned null for character 160 in font BlueHighway
189
+ 07:10:33: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
190
+ 07:10:33: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with 8 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
191
+ 07:10:33: Parsing script OgreLoadingPanel.overlay
192
+ 07:10:33: Finished parsing scripts for resource group Bootstrap
193
+ 07:10:33: Parsing scripts for resource group General
194
+ 07:10:33: Parsing script Grass.material
195
+ 07:10:33: Parsing script CloudySky.material
196
+ 07:10:33: Parsing script Razor.material
197
+ 07:10:33: Parsing script RustySteel.material
198
+ 07:10:33: Parsing script Ogre.material
199
+ 07:10:33: Parsing script smoke.material
200
+ 07:10:33: Parsing script dragon.material
201
+ 07:10:33: Parsing script SpaceSkyBox.material
202
+ 07:10:33: Parsing script Flare.material
203
+ 07:10:33: Parsing script SpaceSkyPlane.material
204
+ 07:10:33: Parsing script CubeMapping.material
205
+ 07:10:33: Parsing script Knot.material
206
+ 07:10:33: Parsing script Ribbon.material
207
+ 07:10:33: Parsing script TextureEffects.material
208
+ 07:10:33: Parsing script Offset.material
209
+ 07:10:33: Parsing script MorningSkyBox.material
210
+ 07:10:33: Parsing script RZR-002.material
211
+ 07:10:33: Parsing script smoke.particle
212
+ 07:10:33: Parsing script CubeMapping.overlay
213
+ 07:10:33: Finished parsing scripts for resource group General
214
+ 07:10:33: Parsing scripts for resource group Internal
215
+ 07:10:33: Finished parsing scripts for resource group Internal
216
+ 07:10:33: Texture: stevecube_fr.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
217
+ 07:10:33: Texture: stevecube_bk.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
218
+ 07:10:33: Texture: stevecube_lf.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
219
+ 07:10:33: Texture: stevecube_rt.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
220
+ 07:10:33: Texture: stevecube_up.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
221
+ 07:10:34: Texture: stevecube_dn.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
222
+ 07:10:34: Texture: flare.png: Loading 1 faces(PF_R8G8B8,256x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
223
+ 07:10:34: Texture: grass_1024.jpg: Loading 1 faces(PF_R8G8B8,1024x1024x1) with 10 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,1024x1024x1.
224
+ 07:10:34: WARNING: Mesh instance 'grassblades' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
225
+ 07:10:34: Texture: gras_02.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
226
+ 07:10:34: Mesh: Loading ogrehead.mesh.
227
+ 07:10:34: Texture: WeirdEye.png: Loading 1 faces(PF_R8G8B8,256x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
228
+ 07:10:34: Texture: GreenSkin.jpg: Loading 1 faces(PF_R8G8B8,256x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
229
+ 07:10:34: Texture: spheremap.png: Loading 1 faces(PF_R8G8B8,256x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
230
+ 07:10:34: Texture: dirt01.jpg: Loading 1 faces(PF_R8G8B8,96x96x1) with 7 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.
231
+ 07:10:34: Texture: rockwall.tga: Loading 1 faces(PF_R8G8B8,256x256x1) with 8 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
232
+ 07:10:34: *** Initializing OIS ***
233
+ 07:10:45: Unregistering ResourceManager for type BspLevel
234
+ 07:10:45: *-*-* OGRE Shutdown
235
+ 07:10:45: Unregistering ResourceManager for type Compositor
236
+ 07:10:45: Unregistering ResourceManager for type Font
237
+ 07:10:45: Unregistering ResourceManager for type Skeleton
238
+ 07:10:45: Unregistering ResourceManager for type Mesh
239
+ 07:10:45: Unregistering ResourceManager for type HighLevelGpuProgram
240
+ 07:10:45: Uninstalling plugin: Cg Program Manager
241
+ 07:10:45: Plugin successfully uninstalled
242
+ 07:10:45: Unloading library /usr/local/lib/OGRE/Plugin_CgProgramManager
243
+ 07:10:45: Uninstalling plugin: BSP Scene Manager
244
+ 07:10:45: Plugin successfully uninstalled
245
+ 07:10:45: Unloading library /usr/local/lib/OGRE/Plugin_BSPSceneManager
246
+ 07:10:45: Uninstalling plugin: ParticleFX
247
+ 07:10:45: Plugin successfully uninstalled
248
+ 07:10:45: Unloading library /usr/local/lib/OGRE/Plugin_ParticleFX
249
+ 07:10:45: Uninstalling plugin: Octree & Terrain Scene Manager
250
+ 07:10:45: Plugin successfully uninstalled
251
+ 07:10:45: Unloading library /usr/local/lib/OGRE/Plugin_OctreeSceneManager
252
+ 07:10:45: Uninstalling plugin: GL RenderSystem
253
+ 07:10:45: Render Target 'OGRE Render Window' Average FPS: 11.1949 Best FPS: 11.9403 Worst FPS: 10.6486
254
+ 07:10:45: Unregistering ResourceManager for type GpuProgram
255
+ 07:10:45: ******************************
256
+ *** Stopping GLX Subsystem ***
257
+ ******************************
258
+ 07:10:45: Unregistering ResourceManager for type Texture
259
+ 07:10:45: Plugin successfully uninstalled
260
+ 07:10:45: Unloading library /usr/local/lib/OGRE/RenderSystem_GL
261
+ 07:10:45: Unregistering ResourceManager for type Material
data/samples/bsp.rb ADDED
@@ -0,0 +1,76 @@
1
+ #!/usr/bin/ruby -w
2
+
3
+ $: << File.dirname(__FILE__) + "/.."
4
+ require 'ogre'
5
+ require 'application'
6
+ require 'application_loading_bar'
7
+ include Ogre
8
+
9
+ class BSPApplication < Application
10
+ def initialize
11
+ super
12
+
13
+ #@loading_bar = ApplicationLoadingBar.new
14
+ @quake_level = ""
15
+ @quake_pk3 = ""
16
+ @loading_bar = ApplicationLoadingBar.new
17
+ end
18
+
19
+ def load_resources
20
+ @loading_bar.start(window, 1, 1, 0.75)
21
+
22
+ # Turn off rendering of all but overlays
23
+ scene_manager.clear_special_case_render_queues
24
+ scene_manager.add_special_case_render_queue(RENDER_QUEUE_OVERLAY)
25
+ scene_manager.set_special_case_render_queue_mode(SceneManager::SCRQM_INCLUDE)
26
+
27
+ rgm = ResourceGroupManager.instance
28
+
29
+ # World geometry link
30
+ rgm.link_world_geometry_to_resource_group(
31
+ rgm.get_world_resource_group_name,
32
+ @quake_level, scene_manager)
33
+
34
+ # Initialize the rest of the groups, parse
35
+ rgm.initialise_all_resource_groups
36
+ rgm.load_resource_group rgm.get_world_resource_group_name, false, true
37
+
38
+ # Full rendering
39
+ scene_manager.clear_special_case_render_queues
40
+ scene_manager.set_special_case_render_queue_mode(SceneManager::SCRQM_EXCLUDE)
41
+
42
+ @loading_bar.finish
43
+ end
44
+
45
+ def setup_resources
46
+ file = ConfigFile.new
47
+ file.load("quake3settings.cfg")
48
+ @quake_level = file.get_setting("Map")
49
+ @quake_pk3 = file.get_setting("Pak0Location")
50
+
51
+ super
52
+
53
+ ResourceGroupManager.instance.add_resource_location(@quake_pk3,
54
+ "Zip", ResourceGroupManager.instance.get_world_resource_group_name, true)
55
+ end
56
+
57
+ def choose_scene_manager
58
+ self.scene_manager = root.create_scene_manager("BspSceneManager")
59
+ end
60
+
61
+ def create_scene
62
+ camera.set_near_clip_distance 4
63
+ camera.set_far_clip_distance 4000
64
+
65
+ vp = scene_manager.get_suggested_viewpoint(true)
66
+
67
+ camera.set_position(vp.position)
68
+ camera.pitch(Degree.new(90))
69
+ camera.rotate(vp.orientation)
70
+
71
+ camera.set_fixed_yaw_axis(true, Vector3.UNIT_Z)
72
+ end
73
+ end
74
+
75
+ app = BSPApplication.new
76
+ app.go
data/samples/cg.dll ADDED
Binary file
data/samples/grass.rb ADDED
@@ -0,0 +1,325 @@
1
+ #!/usr/bin/ruby -w
2
+
3
+ $: << File.dirname(__FILE__) + "/.."
4
+ require 'ogre'
5
+ require 'application'
6
+ include Ogre
7
+
8
+ GRASS_HEIGHT = 300
9
+ GRASS_WIDTH = 250
10
+ GRASS_MESH_NAME = "grassblades"
11
+ GRASS_MATERIAL = "GrassBlades"
12
+ OFFSET_PARAM = 999
13
+
14
+ $anim_state = nil
15
+ $static_geom = nil
16
+
17
+ class GrassListener < ApplicationFrameListener
18
+
19
+ def initialize(root, win, cam, scene_manager)
20
+ super(root, win, cam)
21
+ @scene_manager = scene_manager
22
+ @show_bbs = false
23
+
24
+ @xinc = Math::PI * 0.4
25
+ @zinc = Math::PI * 0.55
26
+ @xpos = Ogre::Math.range_random(-Math::PI, Math::PI)
27
+ @zpos = Ogre::Math.range_random(-Math::PI, Math::PI)
28
+ @offset = Vector4.new(0,0,0,0)
29
+
30
+ @time_delay = 0.0
31
+
32
+ end
33
+
34
+ def wave_grass(time_elapsed)
35
+ # May not be setup yet
36
+ return if $static_geom.nil?
37
+
38
+ @xpos += @xinc * time_elapsed
39
+ @zpos += @zinc * time_elapsed
40
+
41
+ rit = $static_geom.get_region_iterator
42
+
43
+ while rit.has_more_elements
44
+ reg = rit.get_next
45
+
46
+ @xpos += reg.get_centre.x * 0.001
47
+ @zpos += reg.get_centre.z * 0.001
48
+ @offset.x = Ogre::Math.sin(@xpos) * 0.5
49
+ @offset.z = Ogre::Math.sin(@zpos) * 0.05
50
+
51
+ lod_it = reg.get_lod_iterator
52
+
53
+ while lod_it.has_more_elements
54
+ lod = lod_it.get_next
55
+ mat_it = lod.get_material_iterator
56
+ while mat_it.has_more_elements
57
+ mat = mat_it.get_next
58
+ geom_it = mat.get_geometry_iterator
59
+ while geom_it.has_more_elements
60
+ geom = geom_it.get_next
61
+ geom.as_renderable.set_custom_parameter(OFFSET_PARAM, @offset)
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
67
+
68
+ def frame_started(event)
69
+ return false unless super
70
+
71
+ @time_delay -= event.time_since_last_frame
72
+
73
+ if $anim_state
74
+ $anim_state.add_time(event.time_since_last_frame)
75
+ end
76
+
77
+ if keyboard.key_down?(OIS::KC_B) && time_delay <= 0
78
+ @time_delay = 1
79
+ @show_bbs = !@show_bbs
80
+ @scene_manager.show_bounding_boxes(@show_bbs)
81
+ end
82
+
83
+ wave_grass(event.time_since_last_frame)
84
+
85
+ true
86
+ end
87
+ end
88
+
89
+ class GrassApplication < Application
90
+ def create_grass_mesh
91
+ mesh = MeshManager.instance.create_manual(GRASS_MESH_NAME,
92
+ ResourceGroupManager.DEFAULT_RESOURCE_GROUP_NAME)
93
+ sm = mesh.create_sub_mesh
94
+ sm.use_shared_vertices = false
95
+ sm.vertex_data = VertexData.new
96
+ sm.vertex_data.vertex_start = 0
97
+ sm.vertex_data.vertex_count = 12
98
+
99
+ decl = sm.vertex_data.vertex_declaration
100
+ offset = 0
101
+
102
+ decl.add_element(0, offset, VET_FLOAT3, VES_POSITION)
103
+ offset += VertexElement.get_type_size(VET_FLOAT3)
104
+ decl.add_element(0, offset, VET_FLOAT3, VES_NORMAL)
105
+ offset += VertexElement.get_type_size(VET_FLOAT3)
106
+ decl.add_element(0, offset, VET_FLOAT2, VES_TEXTURE_COORDINATES)
107
+ offset += VertexElement.get_type_size(VET_FLOAT2)
108
+
109
+ vbuf = HardwareBufferManager.instance.create_vertex_buffer(
110
+ offset, 12, HardwareBuffer::HBU_STATIC_WRITE_ONLY)
111
+ reals = vbuf.lock(HardwareBuffer::HBL_DISCARD)
112
+
113
+ base_vec = Vector3.new(GRASS_WIDTH / 2, 0, 0)
114
+ vec = Vector3.new(GRASS_WIDTH / 2, 0, 0)
115
+ rot = Quaternion.new
116
+ rot.from_angle_axis(Degree.new(60), Vector3.UNIT_Y)
117
+
118
+ 3.times do |i|
119
+ x = i * 32
120
+ # Position
121
+ reals[x + 0] = -vec.x
122
+ reals[x + 1] = GRASS_HEIGHT
123
+ reals[x + 2] = -vec.z
124
+ # Normal
125
+ reals[x + 3] = 0
126
+ reals[x + 4] = 1
127
+ reals[x + 5] = 0
128
+ # UV
129
+ reals[x + 6] = 0
130
+ reals[x + 7] = 0
131
+
132
+ # Position
133
+ reals[x + 8] = vec.x
134
+ reals[x + 9] = GRASS_HEIGHT
135
+ reals[x + 10] = vec.z
136
+ # Normal
137
+ reals[x + 11] = 0
138
+ reals[x + 12] = 1
139
+ reals[x + 13] = 0
140
+ # UV
141
+ reals[x + 14] = 1
142
+ reals[x + 15] = 0
143
+
144
+ # Position
145
+ reals[x + 16] = -vec.x
146
+ reals[x + 17] = 0
147
+ reals[x + 18] = -vec.z
148
+ # Normal
149
+ reals[x + 19] = 0
150
+ reals[x + 20] = 1
151
+ reals[x + 21] = 0
152
+ # UV
153
+ reals[x + 22] = 0
154
+ reals[x + 23] = 1
155
+
156
+ # Position
157
+ reals[x + 24] = vec.x
158
+ reals[x + 25] = 0
159
+ reals[x + 26] = vec.z
160
+ # Normal
161
+ reals[x + 27] = 0
162
+ reals[x + 28] = 1
163
+ reals[x + 29] = 0
164
+ # UV
165
+ reals[x + 30] = 1
166
+ reals[x + 31] = 1
167
+
168
+ vec = rot * vec
169
+ end
170
+
171
+ vbuf.unlock
172
+
173
+ sm.vertex_data.vertex_buffer_binding.set_binding(0, vbuf)
174
+ sm.index_data.index_count = 6 * 3
175
+ sm.index_data.index_buffer = HardwareBufferManager.instance.
176
+ create_index_buffer(HardwareIndexBuffer::IT_16BIT, 6 * 3,
177
+ HardwareBuffer::HBU_STATIC_WRITE_ONLY)
178
+ index = sm.index_data.index_buffer.lock(HardwareBuffer::HBL_DISCARD)
179
+
180
+ 3.times do |i|
181
+ x = i * 6
182
+ off = i * 4
183
+
184
+ index[x + 0] = 0 + off
185
+ index[x + 1] = 3 + off
186
+ index[x + 2] = 1 + off
187
+
188
+ index[x + 3] = 0 + off
189
+ index[x + 4] = 2 + off
190
+ index[x + 5] = 3 + off
191
+ end
192
+
193
+ sm.index_data.index_buffer.unlock
194
+
195
+ sm.set_material_name(GRASS_MATERIAL)
196
+ mesh.load
197
+ end
198
+
199
+ def setup_lighting
200
+ scene_manager.set_ambient_light ColourValue.new(0.2, 0.2, 0.2)
201
+
202
+ # Point light, movable, reddish
203
+ @light = scene_manager.create_light("Light2")
204
+ @light.set_diffuse_colour(@min_light_colour)
205
+ @light.set_specular_colour(1, 1, 1)
206
+ @light.set_attenuation(8000, 1, 0.0005, 0)
207
+
208
+ @light_node = scene_manager.root_scene_node.create_child_scene_node("MovingLightNode")
209
+ @light_node.attach_object(@light)
210
+
211
+ bbs = scene_manager.create_billboard_set("lightbbs", 1)
212
+ bbs.set_material_name("Flare")
213
+ bb = bbs.create_billboard(0, 0, 0, @min_light_colour)
214
+ @light_node.attach_object(bbs)
215
+
216
+ # TODO Controller code
217
+
218
+ @light_node.set_position(Vector3.new(300, 250, -300))
219
+
220
+ anim = scene_manager.create_animation("LightTrack", 20)
221
+ # Spline it
222
+ anim.set_interpolation_mode(Animation::IM_SPLINE)
223
+ track = anim.create_node_track(0, @light_node)
224
+
225
+ key = track.create_node_key_frame(0)
226
+ key.set_translate(Vector3.new(300,550,-300))
227
+ key = track.create_node_key_frame(2)#B
228
+ key.set_translate(Vector3.new(150,600,-250))
229
+ key = track.create_node_key_frame(4)#C
230
+ key.set_translate(Vector3.new(-150,650,-100))
231
+ key = track.create_node_key_frame(6)#D
232
+ key.set_translate(Vector3.new(-400,500,-200))
233
+ key = track.create_node_key_frame(8)#E
234
+ key.set_translate(Vector3.new(-200,500,-400))
235
+ key = track.create_node_key_frame(10)#F
236
+ key.set_translate(Vector3.new(-100,450,-200))
237
+ key = track.create_node_key_frame(12)#G
238
+ key.set_translate(Vector3.new(-100,400,180))
239
+ key = track.create_node_key_frame(14)#H
240
+ key.set_translate(Vector3.new(0,250,600))
241
+ key = track.create_node_key_frame(16)#I
242
+ key.set_translate(Vector3.new(100,650,100))
243
+ key = track.create_node_key_frame(18)#J
244
+ key.set_translate(Vector3.new(250,600,0))
245
+ key = track.create_node_key_frame(20)#K == A
246
+ key.set_translate(Vector3.new(300,550,-300))
247
+ # Create a new animation state to track this
248
+ $anim_state = scene_manager.create_animation_state("LightTrack")
249
+ $anim_state.set_enabled(true)
250
+ end
251
+
252
+ def create_scene
253
+ @min_light_colour = ColourValue.new(0.5, 0.1, 0.0)
254
+
255
+ scene_manager.set_sky_box(true, "SpaceSkyBox")
256
+
257
+ setup_lighting
258
+
259
+ plane = Plane.new
260
+ plane.normal = Vector3.UNIT_Y
261
+ plane.d = 0
262
+
263
+ MeshManager.instance.create_plane("MyPlane",
264
+ ResourceGroupManager.DEFAULT_RESOURCE_GROUP_NAME, plane,
265
+ 14500, 14500, 10, 10, true, 1, 50, 50, Vector3.UNIT_Z)
266
+
267
+ plane_ent = scene_manager.create_entity("plane", "MyPlane")
268
+ plane_ent.set_material_name("GrassFloor")
269
+ plane_ent.set_cast_shadows(false)
270
+ scene_manager.root_scene_node.create_child_scene_node.attach_object(plane_ent)
271
+
272
+ min_v = Vector3.new(-2000, 0, -2000)
273
+ max_v = Vector3.new(2000, 0, 2000)
274
+
275
+ create_grass_mesh
276
+
277
+ e = scene_manager.create_entity("1", GRASS_MESH_NAME)
278
+
279
+ s = scene_manager.create_static_geometry("bing")
280
+ s.set_region_dimensions(Vector3.new(1000, 1000, 1000))
281
+ s.set_origin(Vector3.new(-500, 500, -500))
282
+
283
+ -1950.step(1950, 150) do |x|
284
+ -1950.step(1950, 150) do |z|
285
+ pos = Vector3.new(x + Ogre::Math.range_random(-25, 25),
286
+ 0,
287
+ z + Ogre::Math.range_random(-25, 25))
288
+ orientation = Quaternion.new
289
+ orientation.from_angle_axis(
290
+ Degree.new(Ogre::Math.range_random(0, 359)), Vector3.UNIT_Y)
291
+ scale = Vector3.new(1, Ogre::Math.range_random(0.85, 1.15), 1)
292
+ s.add_entity(e, pos, orientation, scale)
293
+ end
294
+ end
295
+
296
+ s.build
297
+ $static_geom = s
298
+
299
+ # Gots to have the Ogre head
300
+ m = MeshManager.instance.load("ogrehead.mesh",
301
+ ResourceGroupManager.DEFAULT_RESOURCE_GROUP_NAME)
302
+ src = 0
303
+ dest = 0
304
+ ret, src, dest = m.suggest_tangent_vector_build_params(VES_TANGENT)
305
+ unless ret
306
+ m.build_tangent_vectors(VES_TANGENT, src, dest)
307
+ end
308
+
309
+ e = scene_manager.create_entity("head", "ogrehead.mesh")
310
+ e.set_material_name("OffsetMapping/Specular")
311
+ head_node = scene_manager.root_scene_node.create_child_scene_node
312
+ head_node.attach_object(e)
313
+ head_node.set_scale(7, 7, 7)
314
+ head_node.set_position(0, 200, 0)
315
+ e.set_normalise_normals(true)
316
+ camera.move(Vector3.new(0, 350, 0))
317
+ end
318
+
319
+ def create_frame_listener
320
+ self.frame_listener = GrassListener.new(root, window, camera, scene_manager)
321
+ end
322
+ end
323
+
324
+ app = GrassApplication.new
325
+ app.go
Binary file