ogre.rb 0.1-i686-linux
Sign up to get free protection for your applications and to get access to all the features.
- data/README +79 -0
- data/Rakefile +288 -0
- data/doc_src/ogre.rb +246 -0
- data/doc_src/ois.rb +67 -0
- data/lib/application.rb +146 -0
- data/lib/application_frame_listener.rb +302 -0
- data/lib/application_loading_bar.rb +115 -0
- data/lib/constants.rb +51 -0
- data/lib/method_fixes.rb +42 -0
- data/lib/ogre.so +0 -0
- data/lib/ruby_ois.so +0 -0
- data/ogre.rb +25 -0
- data/platform.rb +23 -0
- data/samples/Ogre.log +261 -0
- data/samples/bsp.rb +76 -0
- data/samples/cg.dll +0 -0
- data/samples/grass.rb +325 -0
- data/samples/js3250.dll +0 -0
- data/samples/lighting.rb +138 -0
- data/samples/media/materials/programs/Grass.cg +30 -0
- data/samples/media/materials/programs/OffsetMapping.cg +97 -0
- data/samples/media/materials/programs/OffsetMapping.hlsl +135 -0
- data/samples/media/materials/programs/OffsetMappingFp.glsl +69 -0
- data/samples/media/materials/programs/OffsetMappingVp.glsl +54 -0
- data/samples/media/materials/programs/OffsetMapping_specular.asm +44 -0
- data/samples/media/materials/scripts/CloudySky.material +17 -0
- data/samples/media/materials/scripts/CubeMapping.material +34 -0
- data/samples/media/materials/scripts/Flare.material +17 -0
- data/samples/media/materials/scripts/Grass.material +63 -0
- data/samples/media/materials/scripts/Knot.material +14 -0
- data/samples/media/materials/scripts/MorningSkyBox.material +17 -0
- data/samples/media/materials/scripts/Offset.material +124 -0
- data/samples/media/materials/scripts/Ogre.material +119 -0
- data/samples/media/materials/scripts/RZR-002.material +15 -0
- data/samples/media/materials/scripts/Razor.material +14 -0
- data/samples/media/materials/scripts/Ribbon.material +19 -0
- data/samples/media/materials/scripts/RustySteel.material +14 -0
- data/samples/media/materials/scripts/SpaceSkyBox.material +17 -0
- data/samples/media/materials/scripts/SpaceSkyPlane.material +17 -0
- data/samples/media/materials/scripts/TextureEffects.material +15 -0
- data/samples/media/materials/scripts/dragon.material +42 -0
- data/samples/media/materials/scripts/smoke.material +18 -0
- data/samples/media/materials/textures/GreenSkin.jpg +0 -0
- data/samples/media/materials/textures/MtlPlat2.jpg +0 -0
- data/samples/media/materials/textures/RZR-002.png +0 -0
- data/samples/media/materials/textures/RustedMetal.jpg +0 -0
- data/samples/media/materials/textures/RustySteel.jpg +0 -0
- data/samples/media/materials/textures/Water02.jpg +0 -0
- data/samples/media/materials/textures/WeirdEye.png +0 -0
- data/samples/media/materials/textures/clouds.jpg +0 -0
- data/samples/media/materials/textures/cursor.png +0 -0
- data/samples/media/materials/textures/dirt01.jpg +0 -0
- data/samples/media/materials/textures/flare.png +0 -0
- data/samples/media/materials/textures/gras_02.png +0 -0
- data/samples/media/materials/textures/grass_1024.jpg +0 -0
- data/samples/media/materials/textures/ogreborder.png +0 -0
- data/samples/media/materials/textures/ogreborderUp.png +0 -0
- data/samples/media/materials/textures/ribbonband.png +0 -0
- data/samples/media/materials/textures/rockwall.tga +0 -0
- data/samples/media/materials/textures/rockwall_NH.tga +0 -0
- data/samples/media/materials/textures/smoke.png +0 -0
- data/samples/media/materials/textures/smokecolors.png +0 -0
- data/samples/media/materials/textures/spacesky.jpg +0 -0
- data/samples/media/materials/textures/spheremap.png +0 -0
- data/samples/media/materials/textures/texmap2.jpg +0 -0
- data/samples/media/models/RZR-002.mesh +0 -0
- data/samples/media/models/geosphere4500.mesh +0 -0
- data/samples/media/models/geosphere8000.mesh +0 -0
- data/samples/media/models/knot.mesh +0 -0
- data/samples/media/models/ogrehead.mesh +0 -0
- data/samples/media/models/razor.mesh +0 -0
- data/samples/media/models/sphere.mesh +0 -0
- data/samples/media/overlays/CubeMapping.overlay +139 -0
- data/samples/media/packs/OgreCore.zip +0 -0
- data/samples/media/packs/chiropteraDM.pk3 +0 -0
- data/samples/media/packs/chiropteraDM.txt +99 -0
- data/samples/media/packs/cubemap.zip +0 -0
- data/samples/media/packs/cubemapsJS.zip +0 -0
- data/samples/media/packs/dragon.zip +0 -0
- data/samples/media/packs/skybox.zip +0 -0
- data/samples/media/particles/smoke.particle +43 -0
- data/samples/media.cfg +22 -0
- data/samples/navi/Media/NaviDemo.material +60 -0
- data/samples/navi/Media/OgreCore.zip +0 -0
- data/samples/navi/Media/cerulean.jpg +0 -0
- data/samples/navi/Media/clouds.jpg +0 -0
- data/samples/navi/Media/controlsNaviMask.png +0 -0
- data/samples/navi/Media/grass.jpg +0 -0
- data/samples/navi/Media/knot.mesh +0 -0
- data/samples/navi/Media/testNaviMask.png +0 -0
- data/samples/navi/NaviLocal/Navi.js +136 -0
- data/samples/navi/NaviLocal/buttonBg.jpg +0 -0
- data/samples/navi/NaviLocal/controls.html +303 -0
- data/samples/navi/NaviLocal/knobBg.jpg +0 -0
- data/samples/navi/NaviLocal/moo.dropdownmenu.js +87 -0
- data/samples/navi/NaviLocal/mootools.v1.1.js +6964 -0
- data/samples/navi/NaviLocal/naviLogo.html +32 -0
- data/samples/navi/NaviLocal/naviLogo.png +0 -0
- data/samples/navi/NaviLocal/pageBg.jpg +0 -0
- data/samples/navi/NaviLocal/sliderBg.jpg +0 -0
- data/samples/navi/NaviLocal/test.html +5 -0
- data/samples/navi/NaviLocal/welcome.html +36 -0
- data/samples/navi/NaviLocal/welcome.png +0 -0
- data/samples/navi/chrome/chromelist.txt +597 -0
- data/samples/navi/chrome/classic.jar +0 -0
- data/samples/navi/chrome/classic.manifest +4 -0
- data/samples/navi/chrome/comm.jar +0 -0
- data/samples/navi/chrome/comm.manifest +2 -0
- data/samples/navi/chrome/en-US.jar +0 -0
- data/samples/navi/chrome/en-US.manifest +9 -0
- data/samples/navi/chrome/toolkit.jar +0 -0
- data/samples/navi/chrome/toolkit.manifest +6 -0
- data/samples/navi/components/FeedProcessor.js +1825 -0
- data/samples/navi/components/alerts.xpt +0 -0
- data/samples/navi/components/appshell.xpt +0 -0
- data/samples/navi/components/appstartup.xpt +0 -0
- data/samples/navi/components/auth.dll +0 -0
- data/samples/navi/components/autocomplete.xpt +0 -0
- data/samples/navi/components/autoconfig.dll +0 -0
- data/samples/navi/components/autoconfig.xpt +0 -0
- data/samples/navi/components/caps.xpt +0 -0
- data/samples/navi/components/chardet.xpt +0 -0
- data/samples/navi/components/chrome.xpt +0 -0
- data/samples/navi/components/commandhandler.xpt +0 -0
- data/samples/navi/components/commandlines.xpt +0 -0
- data/samples/navi/components/composer.xpt +0 -0
- data/samples/navi/components/compreg.dat +1474 -0
- data/samples/navi/components/content_base.xpt +0 -0
- data/samples/navi/components/content_html.xpt +0 -0
- data/samples/navi/components/content_htmldoc.xpt +0 -0
- data/samples/navi/components/content_xmldoc.xpt +0 -0
- data/samples/navi/components/content_xslt.xpt +0 -0
- data/samples/navi/components/content_xtf.xpt +0 -0
- data/samples/navi/components/directory.xpt +0 -0
- data/samples/navi/components/docshell_base.xpt +0 -0
- data/samples/navi/components/dom.xpt +0 -0
- data/samples/navi/components/dom_base.xpt +0 -0
- data/samples/navi/components/dom_canvas.xpt +0 -0
- data/samples/navi/components/dom_core.xpt +0 -0
- data/samples/navi/components/dom_css.xpt +0 -0
- data/samples/navi/components/dom_events.xpt +0 -0
- data/samples/navi/components/dom_html.xpt +0 -0
- data/samples/navi/components/dom_loadsave.xpt +0 -0
- data/samples/navi/components/dom_range.xpt +0 -0
- data/samples/navi/components/dom_sidebar.xpt +0 -0
- data/samples/navi/components/dom_storage.xpt +0 -0
- data/samples/navi/components/dom_stylesheets.xpt +0 -0
- data/samples/navi/components/dom_svg.xpt +0 -0
- data/samples/navi/components/dom_traversal.xpt +0 -0
- data/samples/navi/components/dom_views.xpt +0 -0
- data/samples/navi/components/dom_xbl.xpt +0 -0
- data/samples/navi/components/dom_xpath.xpt +0 -0
- data/samples/navi/components/dom_xul.xpt +0 -0
- data/samples/navi/components/downloads.xpt +0 -0
- data/samples/navi/components/editor.xpt +0 -0
- data/samples/navi/components/embed_base.xpt +0 -0
- data/samples/navi/components/extensions.xpt +0 -0
- data/samples/navi/components/exthandler.xpt +0 -0
- data/samples/navi/components/fastfind.xpt +0 -0
- data/samples/navi/components/feeds.xpt +0 -0
- data/samples/navi/components/find.xpt +0 -0
- data/samples/navi/components/gfx.xpt +0 -0
- data/samples/navi/components/gksvgrenderer.xpt +0 -0
- data/samples/navi/components/history.xpt +0 -0
- data/samples/navi/components/htmlparser.xpt +0 -0
- data/samples/navi/components/imglib2.xpt +0 -0
- data/samples/navi/components/inspector.xpt +0 -0
- data/samples/navi/components/intl.xpt +0 -0
- data/samples/navi/components/intlcmpt.xpt +0 -0
- data/samples/navi/components/jar.xpt +0 -0
- data/samples/navi/components/jsconsole-clhandler.js +170 -0
- data/samples/navi/components/jsconsole.xpt +0 -0
- data/samples/navi/components/jsdservice.xpt +0 -0
- data/samples/navi/components/layout_base.xpt +0 -0
- data/samples/navi/components/layout_printing.xpt +0 -0
- data/samples/navi/components/layout_xul.xpt +0 -0
- data/samples/navi/components/layout_xul_tree.xpt +0 -0
- data/samples/navi/components/locale.xpt +0 -0
- data/samples/navi/components/lwbrk.xpt +0 -0
- data/samples/navi/components/mimetype.xpt +0 -0
- data/samples/navi/components/mozbrwsr.xpt +0 -0
- data/samples/navi/components/mozfind.xpt +0 -0
- data/samples/navi/components/necko.xpt +0 -0
- data/samples/navi/components/necko_about.xpt +0 -0
- data/samples/navi/components/necko_cache.xpt +0 -0
- data/samples/navi/components/necko_cookie.xpt +0 -0
- data/samples/navi/components/necko_data.xpt +0 -0
- data/samples/navi/components/necko_dns.xpt +0 -0
- data/samples/navi/components/necko_file.xpt +0 -0
- data/samples/navi/components/necko_ftp.xpt +0 -0
- data/samples/navi/components/necko_http.xpt +0 -0
- data/samples/navi/components/necko_res.xpt +0 -0
- data/samples/navi/components/necko_socket.xpt +0 -0
- data/samples/navi/components/necko_strconv.xpt +0 -0
- data/samples/navi/components/necko_viewsource.xpt +0 -0
- data/samples/navi/components/nsCloseAllWindows.js +143 -0
- data/samples/navi/components/nsDefaultCLH.js +231 -0
- data/samples/navi/components/nsDictionary.js +148 -0
- data/samples/navi/components/nsExtensionManager.js +8497 -0
- data/samples/navi/components/nsHelperAppDlg.js +990 -0
- data/samples/navi/components/nsInterfaceInfoToIDL.js +590 -0
- data/samples/navi/components/nsKillAll.js +200 -0
- data/samples/navi/components/nsPostUpdateWin.js +711 -0
- data/samples/navi/components/nsProgressDialog.js +949 -0
- data/samples/navi/components/nsProxyAutoConfig.js +396 -0
- data/samples/navi/components/nsResetPref.js +175 -0
- data/samples/navi/components/nsURLFormatter.js +179 -0
- data/samples/navi/components/nsUpdateService.js +3074 -0
- data/samples/navi/components/nsXULAppInstall.js +301 -0
- data/samples/navi/components/nsXmlRpcClient.js +1038 -0
- data/samples/navi/components/oji.xpt +0 -0
- data/samples/navi/components/passwordmgr.xpt +0 -0
- data/samples/navi/components/pipboot.xpt +0 -0
- data/samples/navi/components/pipnss.xpt +0 -0
- data/samples/navi/components/plugin.xpt +0 -0
- data/samples/navi/components/pref.xpt +0 -0
- data/samples/navi/components/prefetch.xpt +0 -0
- data/samples/navi/components/profile.xpt +0 -0
- data/samples/navi/components/progressDlg.xpt +0 -0
- data/samples/navi/components/proxyObject.xpt +0 -0
- data/samples/navi/components/rdf.xpt +0 -0
- data/samples/navi/components/satchel.xpt +0 -0
- data/samples/navi/components/saxparser.xpt +0 -0
- data/samples/navi/components/shistory.xpt +0 -0
- data/samples/navi/components/storage.xpt +0 -0
- data/samples/navi/components/toolkitprofile.xpt +0 -0
- data/samples/navi/components/transformiix.dll +0 -0
- data/samples/navi/components/txmgr.xpt +0 -0
- data/samples/navi/components/txtsvc.xpt +0 -0
- data/samples/navi/components/uconv.xpt +0 -0
- data/samples/navi/components/unicharutil.xpt +0 -0
- data/samples/navi/components/universalchardet.dll +0 -0
- data/samples/navi/components/update.xpt +0 -0
- data/samples/navi/components/uriloader.xpt +0 -0
- data/samples/navi/components/urlformatter.xpt +0 -0
- data/samples/navi/components/webBrowser_core.xpt +0 -0
- data/samples/navi/components/webbrowserpersist.xpt +0 -0
- data/samples/navi/components/webshell_idls.xpt +0 -0
- data/samples/navi/components/websrvcs.dll +0 -0
- data/samples/navi/components/websrvcs.xpt +0 -0
- data/samples/navi/components/widget.xpt +0 -0
- data/samples/navi/components/windowds.xpt +0 -0
- data/samples/navi/components/windowwatcher.xpt +0 -0
- data/samples/navi/components/xml-rpc.xpt +0 -0
- data/samples/navi/components/xmlextras.dll +0 -0
- data/samples/navi/components/xpcom_base.xpt +0 -0
- data/samples/navi/components/xpcom_components.xpt +0 -0
- data/samples/navi/components/xpcom_ds.xpt +0 -0
- data/samples/navi/components/xpcom_io.xpt +0 -0
- data/samples/navi/components/xpcom_obsolete.xpt +0 -0
- data/samples/navi/components/xpcom_thread.xpt +0 -0
- data/samples/navi/components/xpcom_xpti.xpt +0 -0
- data/samples/navi/components/xpconnect.xpt +0 -0
- data/samples/navi/components/xpinstall.xpt +0 -0
- data/samples/navi/components/xpti.dat +1424 -0
- data/samples/navi/components/xulapp.xpt +0 -0
- data/samples/navi/components/xulapp_setup.xpt +0 -0
- data/samples/navi/components/xuldoc.xpt +0 -0
- data/samples/navi/components/xulrunner.xpt +0 -0
- data/samples/navi/components/xultmpl.xpt +0 -0
- data/samples/navi/components/xulutil.dll +0 -0
- data/samples/navi/controlsNaviMask.png +0 -0
- data/samples/navi/greprefs/all.js +1344 -0
- data/samples/navi/greprefs/security-prefs.js +69 -0
- data/samples/navi/greprefs/xpinstall.js +2 -0
- data/samples/navi/navi_demo.rb +207 -0
- data/samples/navi/plugins/NPSWF32.dll +0 -0
- data/samples/navi/plugins/flashplayer.xpt +0 -0
- data/samples/navi/plugins/npnul32.dll +0 -0
- data/samples/navi/plugins.cfg +10 -0
- data/samples/navi/res/EditorOverride.css +359 -0
- data/samples/navi/res/Thumbs.db +0 -0
- data/samples/navi/res/arrow.gif +0 -0
- data/samples/navi/res/arrowd.gif +0 -0
- data/samples/navi/res/bloatcycle.html +40 -0
- data/samples/navi/res/broken-image.gif +0 -0
- data/samples/navi/res/charsetData.properties +199 -0
- data/samples/navi/res/charsetalias.properties +517 -0
- data/samples/navi/res/cmessage.txt +1 -0
- data/samples/navi/res/dtd/xhtml11.dtd +300 -0
- data/samples/navi/res/entityTables/html40Latin1.properties +146 -0
- data/samples/navi/res/entityTables/html40Special.properties +69 -0
- data/samples/navi/res/entityTables/html40Symbols.properties +164 -0
- data/samples/navi/res/entityTables/htmlEntityVersions.properties +50 -0
- data/samples/navi/res/entityTables/transliterate.properties +2367 -0
- data/samples/navi/res/fonts/fontEncoding.properties +127 -0
- data/samples/navi/res/fonts/fontNameMap.properties +134 -0
- data/samples/navi/res/forms.css +531 -0
- data/samples/navi/res/grabber.gif +0 -0
- data/samples/navi/res/hiddenWindow.html +1 -0
- data/samples/navi/res/html/Thumbs.db +0 -0
- data/samples/navi/res/html/gopher-audio.gif +0 -0
- data/samples/navi/res/html/gopher-binary.gif +0 -0
- data/samples/navi/res/html/gopher-find.gif +0 -0
- data/samples/navi/res/html/gopher-image.gif +0 -0
- data/samples/navi/res/html/gopher-menu.gif +0 -0
- data/samples/navi/res/html/gopher-movie.gif +0 -0
- data/samples/navi/res/html/gopher-sound.gif +0 -0
- data/samples/navi/res/html/gopher-telnet.gif +0 -0
- data/samples/navi/res/html/gopher-text.gif +0 -0
- data/samples/navi/res/html/gopher-unknown.gif +0 -0
- data/samples/navi/res/html.css +478 -0
- data/samples/navi/res/langGroups.properties +236 -0
- data/samples/navi/res/language.properties +259 -0
- data/samples/navi/res/loading-image.gif +0 -0
- data/samples/navi/res/quirk.css +282 -0
- data/samples/navi/res/samples/Anieyes.gif +0 -0
- data/samples/navi/res/samples/Thumbs.db +0 -0
- data/samples/navi/res/samples/aform.css +69 -0
- data/samples/navi/res/samples/beeptest.html +18 -0
- data/samples/navi/res/samples/bform.css +45 -0
- data/samples/navi/res/samples/bg.jpg +0 -0
- data/samples/navi/res/samples/cform.css +40 -0
- data/samples/navi/res/samples/checkboxTest.xul +47 -0
- data/samples/navi/res/samples/demoform.css +97 -0
- data/samples/navi/res/samples/find.html +97 -0
- data/samples/navi/res/samples/gear1.gif +0 -0
- data/samples/navi/res/samples/image_props.html +58 -0
- data/samples/navi/res/samples/mozform.css +256 -0
- data/samples/navi/res/samples/printsetup.html +175 -0
- data/samples/navi/res/samples/raptor.jpg +0 -0
- data/samples/navi/res/samples/rock_gra.gif +0 -0
- data/samples/navi/res/samples/scrollbarTest1.xul +66 -0
- data/samples/navi/res/samples/scrollbarTest2.xul +19 -0
- data/samples/navi/res/samples/sliderTest1.xul +14 -0
- data/samples/navi/res/samples/soundtest.html +20 -0
- data/samples/navi/res/samples/test.wav +0 -0
- data/samples/navi/res/samples/test0.html +220 -0
- data/samples/navi/res/samples/test1.html +84 -0
- data/samples/navi/res/samples/test10.html +16 -0
- data/samples/navi/res/samples/test11.html +42 -0
- data/samples/navi/res/samples/test12.html +79 -0
- data/samples/navi/res/samples/test13.html +126 -0
- data/samples/navi/res/samples/test14.html +5 -0
- data/samples/navi/res/samples/test15.html +5 -0
- data/samples/navi/res/samples/test16.html +124 -0
- data/samples/navi/res/samples/test2.html +41 -0
- data/samples/navi/res/samples/test3.html +126 -0
- data/samples/navi/res/samples/test4.html +335 -0
- data/samples/navi/res/samples/test5.html +199 -0
- data/samples/navi/res/samples/test6.html +335 -0
- data/samples/navi/res/samples/test7.html +11 -0
- data/samples/navi/res/samples/test8-1.html +66 -0
- data/samples/navi/res/samples/test8.html +662 -0
- data/samples/navi/res/samples/test8dom.html +64 -0
- data/samples/navi/res/samples/test8sca.html +308 -0
- data/samples/navi/res/samples/test8siz.html +224 -0
- data/samples/navi/res/samples/test8tab.html +9 -0
- data/samples/navi/res/samples/test9.html +12 -0
- data/samples/navi/res/samples/test9a.html +39 -0
- data/samples/navi/res/samples/test9b.html +16 -0
- data/samples/navi/res/samples/test_ed.html +5 -0
- data/samples/navi/res/samples/test_form.html +34 -0
- data/samples/navi/res/samples/test_gfx.html +75 -0
- data/samples/navi/res/samples/test_lbox.html +100 -0
- data/samples/navi/res/samples/test_pr.html +87 -0
- data/samples/navi/res/samples/test_weight.html +45 -0
- data/samples/navi/res/samples/toolbarTest1.xul +51 -0
- data/samples/navi/res/samples/treeTest1.css +62 -0
- data/samples/navi/res/samples/treeTest1.xul +110 -0
- data/samples/navi/res/samples/xulTest.css +130 -0
- data/samples/navi/res/svg.css +64 -0
- data/samples/navi/res/table-add-column-after-active.gif +0 -0
- data/samples/navi/res/table-add-column-after-hover.gif +0 -0
- data/samples/navi/res/table-add-column-after.gif +0 -0
- data/samples/navi/res/table-add-column-before-active.gif +0 -0
- data/samples/navi/res/table-add-column-before-hover.gif +0 -0
- data/samples/navi/res/table-add-column-before.gif +0 -0
- data/samples/navi/res/table-add-row-after-active.gif +0 -0
- data/samples/navi/res/table-add-row-after-hover.gif +0 -0
- data/samples/navi/res/table-add-row-after.gif +0 -0
- data/samples/navi/res/table-add-row-before-active.gif +0 -0
- data/samples/navi/res/table-add-row-before-hover.gif +0 -0
- data/samples/navi/res/table-add-row-before.gif +0 -0
- data/samples/navi/res/table-remove-column-active.gif +0 -0
- data/samples/navi/res/table-remove-column-hover.gif +0 -0
- data/samples/navi/res/table-remove-column.gif +0 -0
- data/samples/navi/res/table-remove-row-active.gif +0 -0
- data/samples/navi/res/table-remove-row-hover.gif +0 -0
- data/samples/navi/res/table-remove-row.gif +0 -0
- data/samples/navi/res/throbber/Thumbs.db +0 -0
- data/samples/navi/res/throbber/anim.gif +0 -0
- data/samples/navi/res/throbber/anims00.gif +0 -0
- data/samples/navi/res/throbber/anims01.gif +0 -0
- data/samples/navi/res/throbber/anims02.gif +0 -0
- data/samples/navi/res/throbber/anims03.gif +0 -0
- data/samples/navi/res/throbber/anims04.gif +0 -0
- data/samples/navi/res/throbber/anims05.gif +0 -0
- data/samples/navi/res/throbber/anims06.gif +0 -0
- data/samples/navi/res/throbber/anims07.gif +0 -0
- data/samples/navi/res/throbber/anims08.gif +0 -0
- data/samples/navi/res/throbber/anims09.gif +0 -0
- data/samples/navi/res/throbber/anims10.gif +0 -0
- data/samples/navi/res/throbber/anims11.gif +0 -0
- data/samples/navi/res/throbber/anims12.gif +0 -0
- data/samples/navi/res/throbber/anims13.gif +0 -0
- data/samples/navi/res/throbber/anims14.gif +0 -0
- data/samples/navi/res/throbber/anims15.gif +0 -0
- data/samples/navi/res/throbber/anims16.gif +0 -0
- data/samples/navi/res/throbber/anims17.gif +0 -0
- data/samples/navi/res/throbber/anims18.gif +0 -0
- data/samples/navi/res/throbber/anims19.gif +0 -0
- data/samples/navi/res/throbber/anims20.gif +0 -0
- data/samples/navi/res/throbber/anims21.gif +0 -0
- data/samples/navi/res/throbber/anims22.gif +0 -0
- data/samples/navi/res/throbber/anims23.gif +0 -0
- data/samples/navi/res/throbber/anims24.gif +0 -0
- data/samples/navi/res/throbber/anims25.gif +0 -0
- data/samples/navi/res/throbber/anims26.gif +0 -0
- data/samples/navi/res/throbber/anims27.gif +0 -0
- data/samples/navi/res/throbber/anims28.gif +0 -0
- data/samples/navi/res/throbber/anims29.gif +0 -0
- data/samples/navi/res/ua.css +235 -0
- data/samples/navi/res/viewer.properties +1 -0
- data/samples/navi/res/viewsource.css +118 -0
- data/samples/navi/res/wincharset.properties +55 -0
- data/samples/navi/resources.cfg +14 -0
- data/samples/navi/testNaviMask.png +0 -0
- data/samples/ogre.cfg +8 -0
- data/samples/plugins.cfg +11 -0
- data/samples/quake3settings.cfg +2 -0
- data/samples/render_run_log.5796 +891 -0
- data/samples/render_to_texture.rb +161 -0
- data/samples/resources.cfg +16 -0
- data/samples/sky_box.rb +107 -0
- data/samples/sky_dome.rb +86 -0
- data/samples/sky_plane.rb +27 -0
- data/samples/smoke.rb +23 -0
- data/samples/work/cube_mapping.rb +686 -0
- metadata +500 -0
@@ -0,0 +1,161 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
|
3
|
+
$: << File.dirname(__FILE__) + "/.."
|
4
|
+
require 'ogre'
|
5
|
+
require 'application'
|
6
|
+
include Ogre
|
7
|
+
|
8
|
+
class RenderToTextureListener < ApplicationFrameListener
|
9
|
+
def initialize(root, window, cam, reflect_cam, plane)
|
10
|
+
super(root, window, cam)
|
11
|
+
@reflect_cam = reflect_cam
|
12
|
+
@plane = plane
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
def frame_started(event)
|
17
|
+
return false unless super(event)
|
18
|
+
|
19
|
+
#GC.start
|
20
|
+
|
21
|
+
# Update reflection camera
|
22
|
+
@reflect_cam.set_orientation(camera.get_orientation)
|
23
|
+
@reflect_cam.set_position(camera.get_position)
|
24
|
+
|
25
|
+
# Rotate the plane
|
26
|
+
@plane.yaw(Degree.new(30 * event.time_since_last_frame), Node::TS_PARENT)
|
27
|
+
|
28
|
+
true
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
# Is this class really needed? Not using and the demo looks fine
|
33
|
+
class RTTRenderTargetListener < RenderTargetListener
|
34
|
+
def initialize(plane_entity)
|
35
|
+
super()
|
36
|
+
@plane = plane_entity
|
37
|
+
end
|
38
|
+
|
39
|
+
def pre_render_target_update(event)
|
40
|
+
@plane.set_visible(false)
|
41
|
+
end
|
42
|
+
|
43
|
+
def post_render_target_update(event)
|
44
|
+
@plane.set_visible(true)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
class RenderToTextureApplication < Application
|
49
|
+
|
50
|
+
def create_scene
|
51
|
+
scene_manager.set_ambient_light(Ogre::ColourValue.new(0.2, 0.2, 0.2))
|
52
|
+
scene_manager.set_sky_box(true, "MorningSkyBox")
|
53
|
+
|
54
|
+
light = scene_manager.create_light("MainLight")
|
55
|
+
light.set_type(Light::LT_DIRECTIONAL)
|
56
|
+
|
57
|
+
dir = Vector3.new(0.5, -1, 0)
|
58
|
+
dir.normalise!
|
59
|
+
|
60
|
+
light.set_direction(dir)
|
61
|
+
light.set_diffuse_colour(1.0, 1.0, 0.8)
|
62
|
+
light.set_specular_colour(1.0, 1.0, 1.0)
|
63
|
+
|
64
|
+
@plane = MovablePlane.new("ReflectPlane")
|
65
|
+
@plane.d = 0
|
66
|
+
@plane.normal = Vector3.UNIT_Y
|
67
|
+
|
68
|
+
MeshManager.instance.create_plane("ReflectionPlane",
|
69
|
+
ResourceGroupManager.DEFAULT_RESOURCE_GROUP_NAME,
|
70
|
+
@plane, 2000, 2000,
|
71
|
+
1, 1, true, 1, 1, 1, Vector3.UNIT_Z)
|
72
|
+
|
73
|
+
@plane_entity = scene_manager.create_entity("Plane", "ReflectionPlane")
|
74
|
+
|
75
|
+
knot_entity = scene_manager.create_entity("Knot", "knot.mesh")
|
76
|
+
knot_entity.set_material_name("TextureEffect2")
|
77
|
+
|
78
|
+
ogre_head = scene_manager.create_entity("Head", "ogrehead.mesh")
|
79
|
+
|
80
|
+
root = scene_manager.root_scene_node
|
81
|
+
|
82
|
+
# Setting up the plane in the scene
|
83
|
+
@plane_node = root.create_child_scene_node
|
84
|
+
@plane_node.attach_object(@plane_entity)
|
85
|
+
@plane_node.attach_object(@plane)
|
86
|
+
@plane_node.translate(0, -10, 0)
|
87
|
+
|
88
|
+
# Tilt cause it's cool
|
89
|
+
@plane_node.roll(Degree.new(5))
|
90
|
+
|
91
|
+
root.create_child_scene_node("Head").attach_object(ogre_head)
|
92
|
+
|
93
|
+
texture = TextureManager.instance.create_manual("RttTex",
|
94
|
+
ResourceGroupManager.DEFAULT_RESOURCE_GROUP_NAME, TEX_TYPE_2D,
|
95
|
+
512, 512, 1, -1, PF_R8G8B8, TU_RENDERTARGET)
|
96
|
+
|
97
|
+
target = texture.get_buffer.get_render_target
|
98
|
+
|
99
|
+
@reflect_cam = scene_manager.create_camera("ReflectCam")
|
100
|
+
@reflect_cam.set_near_clip_distance(camera.get_near_clip_distance)
|
101
|
+
@reflect_cam.set_far_clip_distance(camera.get_far_clip_distance)
|
102
|
+
|
103
|
+
# Make sure these are floats, otherwise we get a much smaller aspect ratio than expected
|
104
|
+
@reflect_cam.set_aspect_ratio(
|
105
|
+
window.get_viewport(0).get_actual_width * 1.0 / window.get_viewport(0).get_actual_height * 1.0)
|
106
|
+
|
107
|
+
viewport = target.add_viewport(@reflect_cam)
|
108
|
+
viewport.set_clear_every_frame(true)
|
109
|
+
viewport.set_background_colour(ColourValue.Black)
|
110
|
+
|
111
|
+
mat = MaterialManager.instance.create("RttMat",
|
112
|
+
ResourceGroupManager.DEFAULT_RESOURCE_GROUP_NAME)
|
113
|
+
|
114
|
+
|
115
|
+
mat.get_technique(0).get_pass(0).create_texture_unit_state("RustedMetal.jpg")
|
116
|
+
tex_unit_state = mat.get_technique(0).get_pass(0).create_texture_unit_state("RttTex")
|
117
|
+
tex_unit_state.set_colour_operation_ex(LBX_BLEND_MANUAL, LBS_TEXTURE, LBS_CURRENT,
|
118
|
+
ColourValue.White, ColourValue.White, 0.25)
|
119
|
+
|
120
|
+
tex_unit_state.set_texture_addressing_mode(TextureUnitState::TAM_CLAMP)
|
121
|
+
tex_unit_state.set_projective_texturing(true, @reflect_cam)
|
122
|
+
|
123
|
+
#puts "", "Registering our listener"
|
124
|
+
#@rt_listener = RTTRenderTargetListener.new(@plane_entity)
|
125
|
+
#target.add_listener(@rt_listener)
|
126
|
+
|
127
|
+
@reflect_cam.enable_reflection(@plane)
|
128
|
+
@reflect_cam.enable_custom_near_clip_plane(@plane)
|
129
|
+
|
130
|
+
@plane_entity.set_material_name("RttMat")
|
131
|
+
|
132
|
+
# Create some knots
|
133
|
+
clone_ent = nil
|
134
|
+
10.times do |i|
|
135
|
+
node = scene_manager.create_scene_node
|
136
|
+
pos = Vector3.new
|
137
|
+
pos.x = Ogre::Math.symmetric_random * 750.0
|
138
|
+
pos.y = Ogre::Math.symmetric_random * 100.0 + 25
|
139
|
+
pos.z = Ogre::Math.symmetric_random * 750.0
|
140
|
+
|
141
|
+
node.set_position(pos)
|
142
|
+
root.add_child(node)
|
143
|
+
|
144
|
+
# Clone it
|
145
|
+
clone_name = "Knot#{i}"
|
146
|
+
clone_ent = knot_entity.clone(clone_name)
|
147
|
+
node.attach_object(clone_ent)
|
148
|
+
end
|
149
|
+
|
150
|
+
camera.set_position(-50, 100, 500)
|
151
|
+
camera.look_at(0, 0, 0)
|
152
|
+
end
|
153
|
+
|
154
|
+
def create_frame_listener
|
155
|
+
self.frame_listener = RenderToTextureListener.new(root, window, camera,
|
156
|
+
@reflect_cam, @plane_node)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
app = RenderToTextureApplication.new
|
161
|
+
app.go
|
@@ -0,0 +1,16 @@
|
|
1
|
+
[Bootstrap]
|
2
|
+
Zip=./media/packs/OgreCore.zip
|
3
|
+
|
4
|
+
[General]
|
5
|
+
FileSystem=./media/
|
6
|
+
FileSystem=./media/materials
|
7
|
+
FileSystem=./media/materials/textures
|
8
|
+
FileSystem=./media/materials/scripts
|
9
|
+
FileSystem=./media/materials/programs
|
10
|
+
FileSystem=./media/models
|
11
|
+
FileSystem=./media/particles
|
12
|
+
FileSystem=./media/overlays
|
13
|
+
Zip=./media/packs/skybox.zip
|
14
|
+
Zip=./media/packs/dragon.zip
|
15
|
+
Zip=./media/packs/cubemap.zip
|
16
|
+
Zip=./media/packs/cubemapsJS.zip
|
data/samples/sky_box.rb
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
|
3
|
+
$: << File.dirname(__FILE__) + "/.."
|
4
|
+
require 'ogre'
|
5
|
+
require 'application'
|
6
|
+
include Ogre
|
7
|
+
|
8
|
+
$thrusters = nil
|
9
|
+
|
10
|
+
class SkyBoxListener < ApplicationFrameListener
|
11
|
+
attr_accessor :default_dimensions, :default_velocity
|
12
|
+
def initialize(*args)
|
13
|
+
super
|
14
|
+
@default_dimensions = 25.0
|
15
|
+
@default_velocity = 50.0
|
16
|
+
end
|
17
|
+
|
18
|
+
def frame_started(evt)
|
19
|
+
return false unless super(evt)
|
20
|
+
|
21
|
+
if keyboard.key_down?( OIS::KC_N )
|
22
|
+
$thrusters.set_default_dimensions( @default_dimensions + 0.25, @default_dimensions + 0.25 )
|
23
|
+
@default_dimensions += 0.25
|
24
|
+
end
|
25
|
+
|
26
|
+
if keyboard.key_down?( OIS::KC_M )
|
27
|
+
$thrusters.set_default_dimensions( @default_dimensions - 0.25, @default_dimensions - 0.25 )
|
28
|
+
@default_dimensions -= 0.25
|
29
|
+
end
|
30
|
+
|
31
|
+
if keyboard.key_down?( OIS::KC_H )
|
32
|
+
$thrusters.get_emitter( 0 ).set_particle_velocity( @default_velocity + 1 )
|
33
|
+
$thrusters.get_emitter( 1 ).set_particle_velocity( @default_velocity + 1 )
|
34
|
+
@default_velocity += 1
|
35
|
+
end
|
36
|
+
|
37
|
+
if keyboard.key_down?( OIS::KC_J ) && !( @default_velocity < 0.0 )
|
38
|
+
$thrusters.get_emitter( 0 ).set_particle_velocity( @default_velocity - 1 )
|
39
|
+
$thrusters.get_emitter( 1 ).set_particle_velocity( @default_velocity - 1 )
|
40
|
+
@default_velocity -= 1
|
41
|
+
end
|
42
|
+
|
43
|
+
true
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
class SkyBoxApplication < Application
|
48
|
+
|
49
|
+
def create_scene
|
50
|
+
scene_manager.set_ambient_light ColourValue.new(0.5, 0.5, 0.5)
|
51
|
+
|
52
|
+
# Create a skybox
|
53
|
+
scene_manager.set_sky_box(true, "SpaceSkyBox", 50 )
|
54
|
+
|
55
|
+
# Create a light
|
56
|
+
l = scene_manager.create_light("MainLight")
|
57
|
+
l.set_position(20,80,50)
|
58
|
+
|
59
|
+
# Also add a nice starship in
|
60
|
+
ent = scene_manager.create_entity( "razor", "razor.mesh" )
|
61
|
+
|
62
|
+
scene_manager.root_scene_node.attach_object( ent )
|
63
|
+
|
64
|
+
$thrusters = scene_manager.create_particle_system( "ParticleSys1", 200 )
|
65
|
+
|
66
|
+
$thrusters.set_material_name("Flare")
|
67
|
+
$thrusters.set_default_dimensions( 25, 25 )
|
68
|
+
|
69
|
+
emitter1 = $thrusters.add_emitter( "Point" )
|
70
|
+
emitter2 = $thrusters.add_emitter( "Point" )
|
71
|
+
|
72
|
+
# Thruster 1
|
73
|
+
emitter1.set_angle( Radian.new(0.05) )
|
74
|
+
emitter1.set_time_to_live( 0.2 )
|
75
|
+
emitter1.set_emission_rate( 70 )
|
76
|
+
|
77
|
+
emitter1.set_particle_velocity( 50 )
|
78
|
+
|
79
|
+
emitter1.set_direction(- Vector3.UNIT_Z)
|
80
|
+
emitter1.set_colour( ColourValue.White, ColourValue.Red)
|
81
|
+
|
82
|
+
# Thruster 2
|
83
|
+
emitter2.set_angle( Radian.new(0.05) )
|
84
|
+
emitter2.set_time_to_live( 0.2 )
|
85
|
+
emitter2.set_emission_rate( 70 )
|
86
|
+
|
87
|
+
emitter2.set_particle_velocity( 50 )
|
88
|
+
|
89
|
+
emitter2.set_direction( -Vector3.UNIT_Z )
|
90
|
+
emitter2.set_colour( ColourValue.White, ColourValue.Red )
|
91
|
+
|
92
|
+
# Set the position of the $thrusters
|
93
|
+
emitter1.set_position( Vector3.new( 5.7, 0.0, 0.0 ) )
|
94
|
+
emitter2.set_position( Vector3.new( -18.0, 0.0, 0.0 ) )
|
95
|
+
|
96
|
+
node = scene_manager.root_scene_node.create_child_scene_node( Vector3.new( 0.0, 6.5, -67.0 ) )
|
97
|
+
node.attach_object($thrusters)
|
98
|
+
end
|
99
|
+
|
100
|
+
def create_frame_listener
|
101
|
+
self.frame_listener = SkyBoxListener.new(root, window, camera)
|
102
|
+
#root.addFrameListener(self.frame_listener)
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
app = SkyBoxApplication.new
|
107
|
+
app.go
|
data/samples/sky_dome.rb
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
|
3
|
+
$: << File.dirname(__FILE__) + "/.."
|
4
|
+
require 'ogre'
|
5
|
+
require 'application'
|
6
|
+
include Ogre
|
7
|
+
|
8
|
+
class SkyDomeListener < ApplicationFrameListener
|
9
|
+
def initialize(root, window, camera, scene_manager)
|
10
|
+
super(root, window, camera)
|
11
|
+
@scene_manager = scene_manager
|
12
|
+
@curvature = 1
|
13
|
+
@tiling = 15
|
14
|
+
|
15
|
+
@time_delay = 0
|
16
|
+
end
|
17
|
+
|
18
|
+
def frame_started(event)
|
19
|
+
return false unless super(event)
|
20
|
+
|
21
|
+
update_sky = false
|
22
|
+
|
23
|
+
if keyboard.key_down?(OIS::KC_H) && @time_delay <= 0
|
24
|
+
@curvature += 1
|
25
|
+
@time_delay = 0.1
|
26
|
+
update_sky = true
|
27
|
+
elsif keyboard.key_down?(OIS::KC_G) && @time_delay <= 0
|
28
|
+
@curvature -= 1
|
29
|
+
@time_delay = 0.1
|
30
|
+
update_sky = true
|
31
|
+
elsif keyboard.key_down?(OIS::KC_U) && @time_delay <= 0
|
32
|
+
@tiling += 1
|
33
|
+
@time_delay = 0.1
|
34
|
+
update_sky = true
|
35
|
+
elsif keyboard.key_down?(OIS::KC_Y) && @time_delay <= 0
|
36
|
+
@tiling -= 1
|
37
|
+
@time_delay = 0.1
|
38
|
+
update_sky = true
|
39
|
+
end
|
40
|
+
|
41
|
+
if @time_delay > 0
|
42
|
+
@time_delay -= event.time_since_last_frame
|
43
|
+
end
|
44
|
+
|
45
|
+
if update_sky
|
46
|
+
puts "Updating sky with #@curvature and #@tiling"
|
47
|
+
@scene_manager.set_sky_dome(true, "CloudySky", @curvature, @tiling)
|
48
|
+
end
|
49
|
+
|
50
|
+
true
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
class SkyDomeApplication < Ogre::Application
|
55
|
+
|
56
|
+
def create_scene
|
57
|
+
scene_manager.set_ambient_light ColourValue.new(0.5, 0.5, 0.5)
|
58
|
+
scene_manager.set_sky_dome(true, "CloudySky", 5, 8)
|
59
|
+
|
60
|
+
light = scene_manager.create_light("MainLight")
|
61
|
+
light.set_position Vector3.new(20, 80, 50)
|
62
|
+
|
63
|
+
p = Plane.new
|
64
|
+
p.normal = Vector3.UNIT_Y
|
65
|
+
p.d = 200
|
66
|
+
|
67
|
+
MeshManager.instance.create_plane("FloorPlane",
|
68
|
+
ResourceGroupManager.DEFAULT_RESOURCE_GROUP_NAME, p, 2000, 2000, 1, 1, true,
|
69
|
+
1, 5, 5, Vector3.UNIT_Z)
|
70
|
+
|
71
|
+
entity = scene_manager.create_entity("floor", "FloorPlane")
|
72
|
+
entity.set_material_name "RustySteel"
|
73
|
+
|
74
|
+
scene_manager.root_scene_node.attach_object(entity)
|
75
|
+
|
76
|
+
entity = scene_manager.create_entity("head", "ogrehead.mesh")
|
77
|
+
scene_manager.root_scene_node.attach_object(entity)
|
78
|
+
end
|
79
|
+
|
80
|
+
def create_frame_listener
|
81
|
+
self.frame_listener = SkyDomeListener.new(root, window, camera, scene_manager)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
app = SkyDomeApplication.new
|
86
|
+
app.go
|
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
|
3
|
+
$: << File.dirname(__FILE__) + "/.."
|
4
|
+
require 'ogre'
|
5
|
+
require 'application'
|
6
|
+
|
7
|
+
include Ogre
|
8
|
+
|
9
|
+
class SkyPlaneApplication < Application
|
10
|
+
def create_scene
|
11
|
+
scene_manager.set_ambient_light ColourValue.new(0.5, 0.5, 0.5)
|
12
|
+
|
13
|
+
plane = Plane.new
|
14
|
+
plane.d = 5000
|
15
|
+
plane.normal = -Vector3.UNIT_Y
|
16
|
+
scene_manager.set_sky_plane(true, plane, "SpaceSkyPlane", 10000, 3)
|
17
|
+
|
18
|
+
light = scene_manager.create_light("MainLight")
|
19
|
+
light.set_position(20, 80, 50)
|
20
|
+
|
21
|
+
dragon = scene_manager.create_entity("dragon", "dragon.mesh")
|
22
|
+
scene_manager.root_scene_node.attach_object(dragon)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
app = SkyPlaneApplication.new
|
27
|
+
app.go
|
data/samples/smoke.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
|
3
|
+
$: << File.dirname(__FILE__) + "/.."
|
4
|
+
require 'ogre'
|
5
|
+
require 'application'
|
6
|
+
|
7
|
+
class ParticleApplication < Ogre::Application
|
8
|
+
|
9
|
+
def create_scene
|
10
|
+
scene_manager.set_ambient_light Ogre::ColourValue.new(0.5, 0.5, 0.5)
|
11
|
+
scene_manager.set_sky_dome(true, "CloudySky", 5, 8)
|
12
|
+
|
13
|
+
@fountain = scene_manager.root_scene_node.create_child_scene_node;
|
14
|
+
|
15
|
+
@particle_system = scene_manager.create_particle_system("fountain1", "Smoke")
|
16
|
+
node = @fountain.create_child_scene_node
|
17
|
+
node.attach_object(@particle_system)
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
app = ParticleApplication.new
|
23
|
+
app.go
|