{"id":566,"date":"2016-05-02T09:20:22","date_gmt":"2016-05-02T09:20:22","guid":{"rendered":"http:\/\/demensdeum.com\/blog\/?p=566"},"modified":"2024-12-16T22:32:52","modified_gmt":"2024-12-16T19:32:52","slug":"tutorial-making-android-game-setup-rajawali-show-earth","status":"publish","type":"post","link":"https:\/\/demensdeum.com\/blog\/2016\/05\/02\/tutorial-making-android-game-setup-rajawali-show-earth\/","title":{"rendered":"Tutorial: Making a Game for Android. Spinning the Earth. Rajawali"},"content":{"rendered":"<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/ItfvKSpulEQ\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><em><span class=\"st\">\u2018<\/span>In the beginning God created the heaven and the earth.<span class=\"st\">\u2018<\/span><\/em><span class=\"p\"><br \/><\/span><\/p>\n<p>This is the second video in which we make a game for Android. Let&#8217;s spin the earth!<br \/>Please write to me if you have any questions or if you would like to add something to this course.<br \/>Video based on the article <a href=\"http:\/\/www.clintonmedbery.com\/basic-rajawali3d-tutorial-for-android\/\" target=\"_blank\">Rajawali Basic Setup &amp; Sphere (Maven)<\/a>:<br \/><a href=\"http:\/\/www.clintonmedbery.com\/basic-rajawali3d-tutorial-for-android\/\" target=\"_blank\">http:\/\/www.clintonmedbery.com\/basic-rajawali3d-tutorial-for-android\/<\/a><\/p>\n<p>Rajawali Engine: <a href=\"https:\/\/github.com\/Rajawali\/Rajawali\" target=\"_blank\">https:\/\/github.com\/Rajawali\/Rajawali<\/a><\/p>\n<p>Plan, commands, links:<br \/>1. Install <span class=\"st\"><em>VirtualBox<\/em> Guest <em>Additions<\/em><\/span><\/p>\n<pre style=\"color: #000000; background: #ffffff;\">sudo apt-get install dkmssudo apt-get install linux-headers-$(uname -r)<\/pre>\n<p>2. Add Rajawali library to the project<br \/>File<b>build.gradle (Project: Demon&#8217;s Cave)<br \/><\/b>Add <strong><span class=\"crayon-e\">mavenCentral<\/span><span class=\"crayon-sy\">(<\/span><span class=\"crayon-sy\">) < \/span><\/strong><span class=\"crayon-sy\">to the <strong>buildscript\/repositories<\/strong><br \/> sectionAdd <\/span><strong><span class=\"crayon-e\">maven<\/span> <span class=\"crayon-sy\">{<\/span> <span class=\"crayon-i\">url< \/span> <span class=\"crayon-s\">&#8220;https:\/\/oss.sonatype.org\/content\/repositories\/snapshots\/&#8221;<\/span> <span class=\"crayon-sy\">} <\/span><\/strong><span class=\"crayon-sy\">to the <strong>allprojects\/repositories section<\/strong><\/span><\/p>\n<p>File <strong>build.gradle (Module: app)<br \/><\/strong>Add <strong><span class=\"crayon-i\">compile<\/span> <span class=\"crayon-s\">&#8216;org.rajawali3d:rajawali:1.0.306-SNAPSHOT@aar&#038; #8217; <\/span><\/strong><span class=\"crayon-s\">to the <strong>dependencies<\/strong><br \/> section<\/span><\/p>\n<p>3. Create a <strong>Renderer<\/strong> class, initialize the scene, add a sphere and spin!<br \/>Source code of class Renderer.java:<br \/><a href=\"https:\/\/github.com\/clintonmedbery\/RajawaliBasicProject\/blob\/master\/app\/src\/main\/java\/com\/clintonmedbery\/rajawalibasicproject\/Renderer.java\" target=\"_blank\">https:\/\/github.com\/clintonmedbery\/RajawaliBasicProject\/blob\/master\/app\/src\/main\/java\/com\/clintonmedbery\/rajawalibasicproject\/Renderer.java<\/a><\/p>\n<p>4. Add <strong>Renderer<\/strong> class to <strong>MainActivity<\/strong><br \/>Source code of MainActivity.java:<br \/><a href=\"https:\/\/github.com\/clintonmedbery\/RajawaliBasicProject\/blob\/master\/app\/src\/main\/java\/com\/clintonmedbery\/rajawalibasicproject\/Renderer.java\" target=\"_blank\">https:\/\/github.com\/clintonmedbery\/RajawaliBasicProject\/blob\/master\/app\/src\/main\/java\/com\/clintonmedbery\/rajawalibasicproject\/MainActivity.java<\/a><\/p>\n<p>Ground texture:<br \/><a href=\"http:\/\/www.clintonmedbery.com\/wp-content\/uploads\/2015\/04\/earthtruecolor_nasa_big.jpg\" target=\"_blank\">http:\/\/www.clintonmedbery.com\/wp-content\/uploads\/2015\/04\/earthtruecolor_nasa_big.jpg<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u2018In the beginning God created the heaven and the earth.\u2018 This is the second video in which we make a game for Android. Let&#8217;s spin the earth!Please write to me if you have any questions or if you would like to add something to this course.Video based on the article Rajawali Basic Setup &amp; Sphere<a class=\"more-link\" href=\"https:\/\/demensdeum.com\/blog\/2016\/05\/02\/tutorial-making-android-game-setup-rajawali-show-earth\/\">Continue reading <span class=\"screen-reader-text\">&#8220;Tutorial: Making a Game for Android. Spinning the Earth. Rajawali&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[52],"tags":[37,36,41,40,38,35],"class_list":["post-566","post","type-post","status-publish","format-standard","hentry","category-tutorials","tag-android","tag-demonscave","tag-earth","tag-rajawali","tag-tutorial","tag-vblog","entry"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"en","enabled_languages":["en","ru","zh","de","fr","ja","pt","hi"],"languages":{"en":{"title":true,"content":true,"excerpt":false},"ru":{"title":true,"content":true,"excerpt":false},"zh":{"title":true,"content":true,"excerpt":false},"de":{"title":true,"content":true,"excerpt":false},"fr":{"title":true,"content":true,"excerpt":false},"ja":{"title":true,"content":true,"excerpt":false},"pt":{"title":true,"content":true,"excerpt":false},"hi":{"title":false,"content":false,"excerpt":false}}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/posts\/566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/comments?post=566"}],"version-history":[{"count":26,"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/posts\/566\/revisions"}],"predecessor-version":[{"id":4020,"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/posts\/566\/revisions\/4020"}],"wp:attachment":[{"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/media?parent=566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/categories?post=566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/wp-json\/wp\/v2\/tags?post=566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}