You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

152 line
5.9KB

  1. <!DOCTYPE html>
  2. <head>
  3. <meta charset="utf-8" />
  4. <!-- Set the viewport width to device width for mobile -->
  5. <meta name="viewport" content="width=device-width" />
  6. <title>OpenSceneGraph cross-platform examples</title>
  7. <link rel="stylesheet" href="http://opengamestudio.org/theme/css/normalize.css" />
  8. <link rel="stylesheet" href="http://opengamestudio.org/theme/css/foundation.min.css" />
  9. <link rel="stylesheet" href="http://opengamestudio.org/theme/css/style.css" />
  10. <link rel="stylesheet" href="http://opengamestudio.org/theme/css/pygments.css" />
  11. <script src="http://opengamestudio.org/theme/js/custom.modernizr.js"></script>
  12. <!-- So Firefox can bookmark->"abo this site" -->
  13. <link href="feeds/all.atom.xml" rel="alternate" title="Opensource Game Studio" type="application/atom+xml">
  14. </head>
  15. <body>
  16. <!-- Nav Bar -->
  17. <nav>
  18. <!-- Show menu items and pages -->
  19. <div class="row">
  20. <div class="large-12 columns top-bar">
  21. <h1><a href="http://opengamestudio.org">Opensource Game Studio</a></h1>
  22. </div>
  23. </div>
  24. <div class="row top-menu">
  25. <div class="large-12 columns">
  26. <a href="/pages/projects.html" class="menu-button secondary">Projects</a>
  27. <a href="/pages/about.html" class="menu-button secondary">About</a>
  28. </div>
  29. </div>
  30. </nav>
  31. <!-- End Nav -->
  32. <!-- Main Page Content and Sidebar -->
  33. <div class="row">
  34. <!-- Main Blog Content -->
  35. <div class="large-9 columns">
  36. <article>
  37. <header>
  38. <h3 class="article-title"><a href="http://opengamestudio.org/openscenegraph-examples.html" rel="bookmark"
  39. title="Permalink to OpenSceneGraph cross-platform examples">OpenSceneGraph cross-platform examples</a></h3>
  40. </header>
  41. <h6 class="subheader" title="2018-04-20T00:00:00+03:00">Пт 20 Апрель 2018
  42. <a class="button secondary small translation-button" href="http://opengamestudio.org/openscenegraph-examples-ru.html">ru</a>
  43. </h6> <p><img alt="Screenshot" src="http://opengamestudio.org/2018-04-20-openscenegraph-examples.png" /></p>
  44. <p>This article summarizes the work we did to produce the first two
  45. cross-platform OpenSceneGraph examples.</p>
  46. <p>By the time <a href="http://opengamestudio.org/mahjong-techdemo1-gameplay.html">the first technology demonstration of OGS Mahjong 2</a>
  47. has been released, we've already had <a href="https://github.com/OGStudio/openscenegraph-cross-platform-guide/issues/4">issue request</a>
  48. (to explain how to load images with OpenSceneGraph on Android) hanging for some
  49. time. We considered creating a new tutorial for
  50. <a href="https://github.com/OGStudio/openscenegraph-cross-platform-guide">OpenSceneGraph cross-platform guide</a> at first. However, we realized
  51. that it's time-consuming and excessive for such a tiny topic (compared to
  52. what an average game has) as image loading. We decided to continue sharing our
  53. knowledge in the form of concrete examples. That's how
  54. <a href="https://github.com/OGStudio/openscenegraph-cross-platform-examples">OpenSceneGraph cross-platform examples</a> were born.</p>
  55. <p>Each example:</p>
  56. <ul>
  57. <li>explains crucial code necessary to perform a specific task</li>
  58. <li>accents platform-specific nuances</li>
  59. <li>provides implementations to cover desktop, mobile, and web platforms</li>
  60. <li>provides a web build to showcase results</li>
  61. </ul>
  62. <p>The first two examples cover the following topics:</p>
  63. <ul>
  64. <li>Embed resource into executable: this greatly simplifies resource handling across platforms</li>
  65. <li>Use PNG images with PNG plugins: this explains the requirements necessary to build and use PNG plugins</li>
  66. </ul>
  67. <p>We will be adding new examples as we proceed with OGS Mahjong 2 development.</p>
  68. <p>That's it for summarizing the work we did to produce the first two cross-platform OpenSceneGraph examples.</p>
  69. <p class="subheader">Category: <a href="http://opengamestudio.org/category/news.html">News</a>
  70. </p>
  71. </article>
  72. </div>
  73. <!-- End Main Content -->
  74. <!-- Sidebar -->
  75. <aside class="large-3 columns">
  76. <!--k
  77. <h5 class="sidebar-title">Site</h5>
  78. <ul class="side-nav">
  79. <li><a href="http://opengamestudio.org/archives.html">Archives</a>
  80. <li><a href="http://opengamestudio.org/tags.html">Tags</a>
  81. <li><a href="http://opengamestudio.org/feeds/all.atom.xml" rel="alternate">Atom feed</a></li>
  82. </ul>
  83. <h5 class="sidebar-title">Categories</h5>
  84. <ul class="side-nav">
  85. <li><a href="http://opengamestudio.org/category/news.html">News</a></li>
  86. </ul>
  87. -->
  88. <h5 class="sidebar-title">Ads</h5>
  89. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  90. <!-- ogs2 -->
  91. <ins class="adsbygoogle"
  92. style="display:block"
  93. data-ad-client="ca-pub-4473792248813084"
  94. data-ad-slot="9024247127"
  95. data-ad-format="auto"></ins>
  96. <script>
  97. (adsbygoogle = window.adsbygoogle || []).push({});
  98. </script>
  99. </aside> <!-- End Sidebar -->
  100. </div> <!-- End Main Content and Sidebar -->
  101. <!-- Footer -->
  102. <footer class="row">
  103. <div class="large-12 columns">
  104. <hr />
  105. <div class="row">
  106. <div class="large-7 columns">
  107. <p>Proudly powered by <a href="http://getpelican.com">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.</p>
  108. </div>
  109. </div>
  110. </div>
  111. <script type="text/javascript">
  112. var _gaq = _gaq || [];
  113. _gaq.push(['_setAccount', 'UA-3773114-1']);
  114. _gaq.push(['_trackPageview']);
  115. (function() {
  116. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  117. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  118. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  119. })();
  120. </script>
  121. </footer>