‘And God saw everything that he had made, and behold, it was very good. And there was evening and there was morning, the sixth day.‘
Second video about making game for Android. In this video we are going to rotate Earth!
Contact me if you have questions, or you want to add something interesting to video course.
This is Rajawali Basic Setup & Sphere (Maven) video tutorial for russian viewers, but also it have english subtitles. Original article link:
http://www.clintonmedbery.com/basic-rajawali3d-tutorial-for-android/
Rajawali Engine: https://github.com/Rajawali/Rajawali
Plan, commands, links:
1. Install VirtualBox Guest Additions
sudo apt-get install dkms sudo apt-get install linux-headers-$(uname -r)
2. Add Rajawali library to project
File build.gradle (Project: Demon’s Cave)
Add mavenCentral() into buildscript/repositories section
Add maven { url “https://oss.sonatype.org/content/repositories/snapshots/” } into allprojects/repositories section
File build.gradle (Module: app)
Add compile ‘org.rajawali3d:rajawali:1.0.306-SNAPSHOT@aar’ into dependencies section
3. Create Renderer class, setup scene, add sphere and rotate it!
Renderer.java source code:
https://github.com/clintonmedbery/RajawaliBasicProject/blob/master/app/src/main/java/com/clintonmedbery/rajawalibasicproject/Renderer.java
4. Integrate Renderer into MainActivity
MainActivity.java source code:
https://github.com/clintonmedbery/RajawaliBasicProject/blob/master/app/src/main/java/com/clintonmedbery/rajawalibasicproject/MainActivity.java
Earth texture:
http://www.clintonmedbery.com/wp-content/uploads/2015/04/earthtruecolor_nasa_big.jpg