Josh Posted March 3, 2013 Share Posted March 3, 2013 We have the Android build uploaded and are upgrading registration keys. Building apps for Android is difficult to set up the first time, but once you get it working it's fairly easy after that. There are two steps to installing Leadwerks 3 for Android. First, you need to install the Android Developer Tools for Leadwerks. You can find these by clicking on your name in the top-right corner of the website header, and selecting "Client Area" in the drop-down box. Select the Leadwerks 3 for Android item to view the information and get the download link. Run this installer, and it will install the Android SDK, NDK, and Eclipse in one convenient package. Once we email you confirming that your key has been upgraded, you can just run the Leadwerks Updater, and the files for Android will automatically be included. The instructions for publishing for Android are here: http://www.leadwerks...or-android-r625 Your biggest challenge will be to get your Android device communicating with Eclipse. Most devices require a USB driver so the device can communicate with your PC. You will know this is working when you see a lot of messages being printed out in the LogCat panel in Eclipse. I recommend Samsung devices. You just plug them in and they usually automatically install the needed driver after a few minutes. I have to warn you that the Darkness Awaits example game will run at a very low framerate on Android right now. It runs at 60 FPS on an iPad 3, and we have had reports of slow performance on some PCs, so this week I will focus on optimization. When we started running this on the iPad it was going at 1 FPS and after optimizing it, we got 60 FPS. I apologize for the performance right now, but we assumed it was the low-end devices we were testing on. When I tried on a Samsung Galaxy Tab 2, the performance was still bad, so there is something there for me to fix while we're still in beta phase. Simple examples like this will run perfectly fast, so I know I can have the performance up by next weekend. Just copy and paste this code into "App.cpp" to see it running: http://www.leadwerks...ationframe-r141 I think the problem is CPU-bound, not graphics, probably a mem leak in the physics or pathfinding routines. These are fairly easy to diagnose and fix so I will get right on it tomorrow. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Juggernaut Posted March 3, 2013 Share Posted March 3, 2013 Hello, Is it possible to create an android application or game using LE 3 without using a real android device physically ? I mean if it is just possible to create the game on Windows PC and then upload it to an application store for download on android devices ? Or having a physical android device is mandatory ? Is there a android simulator available ? Thanks, Quote LEADWERKS 2.5 Leadwerks Engine Documentation http://www.leadwerks.com/werkspace/page/Documentation/le2 Leadwerks Engine Wiki http://web.archive.org/web/20120728123827/http://www.leadwerks.com/wiki/index.php?title=Main_Page Leadwerks 2 wiki moving to Google Drive https://drive.google.com/folderview?id=0BxLsUYPSspxcfms3bmpvQlBSVjVYREljSElpQ3JfTmQydzg4anExZ2Fyb0I3NjZxSmkwd1E&usp=drive_web Link to comment Share on other sites More sharing options...
Admin Posted March 3, 2013 Share Posted March 3, 2013 Yeah, you actually can do that, because it creates the APK on your hard drive. You'd probably want to try it on an a device, but yes, it would work. As long as you stick to the Leadwerks command set you are safe for cross-platform compatibility...I never thought about that, but it would be interesting to see someone put an App in Google Play without ever having run it on an Android device! Quote Link to comment Share on other sites More sharing options...
Juggernaut Posted March 3, 2013 Share Posted March 3, 2013 NIce. Any chance of an android emulator or simulator being included so that the developer can be sure of how the game will look when running on an actual android device ? Or is Google's Android emulator included in Android Development Kit good enough to get an accurate feel of the game ? Quote LEADWERKS 2.5 Leadwerks Engine Documentation http://www.leadwerks.com/werkspace/page/Documentation/le2 Leadwerks Engine Wiki http://web.archive.org/web/20120728123827/http://www.leadwerks.com/wiki/index.php?title=Main_Page Leadwerks 2 wiki moving to Google Drive https://drive.google.com/folderview?id=0BxLsUYPSspxcfms3bmpvQlBSVjVYREljSElpQ3JfTmQydzg4anExZ2Fyb0I3NjZxSmkwd1E&usp=drive_web Link to comment Share on other sites More sharing options...
Josh Posted March 3, 2013 Author Share Posted March 3, 2013 Until recently, the Android emulator didn't even support OpenGL ES 2.0. It supposedly does now, but last time I tried to use it, it just hung for about 20 minutes with a black screen. Just running "Hello World" took about ten minutes to start up. I strongly recommend developing on PC or Mac, then just doing a final build on Android. You can just replace the calls to Window::TouchDown and Window::TouchHit with Window::MouseDown and Window::MouseHit while testing on PC, since they work the same. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Canardia Posted March 3, 2013 Share Posted March 3, 2013 You can just replace the calls to Window::TouchDown and Window::TouchHit with Window::MouseDown and Window::MouseHit while testing on PC, since they work the same. Can't those be chosen in runtime, like from the game options? Android devices have also mouse and keyboard, and some gamers might prefer those over touch functions. And vice versa, PCs have also touchscreens. if(GAME_TOUCHMODE==inputmode) { mousedown=Window::TouchDown(0); } else { mousedown=Window::MouseDown(); } Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Josh Posted March 3, 2013 Author Share Posted March 3, 2013 In player.lua I call System:GetPlatformName() to see what OS it's running on, and choose controls accordingly. I don't think it's worth worrying about rare exceptions. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted March 3, 2013 Author Share Posted March 3, 2013 I've already made a lot of progress. I think part of the problem is the Galaxy Tab S2 sucks, but I did fix that mem leak and found some things that can be improved. It's gone from completely unplayable to slow but playable so far. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Canardia Posted March 3, 2013 Share Posted March 3, 2013 Well, iPad3/iPad4 and iPhone5 have a faster GPU than any other fastest phone/tab on the market, so don't be surprised if it runs slow on some Galaxy Nexus or Tab. Galaxy S2/S3 are however the most sold Androids, so it should be OK if it runs decently on those. http://www.glbenchma...on=all&test=454 Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
YouGroove Posted March 3, 2013 Share Posted March 3, 2013 Nexus are not bad, i run some good graphic games on Nexus 7 and yes it's powerfull, not slow. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
YouGroove Posted March 3, 2013 Share Posted March 3, 2013 I had some JRE and JDK already installed. After installing LE 3 Android, it started Eclipse, but it said it dindn't found the JRE somewhere in the istallation directories of LE3 Android. Can i configure it somewhere ? in the properties of Eclipse.exe i think i can specify the JRE Cuas in Eclipse.ini there wasn't nothing. I have another eclipse installed and running perhaps i can use this one ? I'm gonna read the documentation finally. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Josh Posted March 3, 2013 Author Share Posted March 3, 2013 The Android rumble will begin tomorrow. I've gained a lot of performance just since I started working on it this afternoon. Must sleep now. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Flexman Posted March 3, 2013 Share Posted March 3, 2013 Really it shouldn't run slow at all, especially on those tabs, not for what it's doing. I'm still interested to see them all running side by side. Hope to see it soon. Quote 6600 2.4G / GTX 460 280.26 / 4GB Windows 7 Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT Tricubic Studios Ltd. ~ Combat Helo Link to comment Share on other sites More sharing options...
YouGroove Posted March 3, 2013 Share Posted March 3, 2013 I forgot , i think we must update LE 3 and not just download Android setup. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
YouGroove Posted March 3, 2013 Share Posted March 3, 2013 After update no Eclipse projects anywhere and re publish Android game ? what is going on ? In fact Andorid publishing only publish the ressources nothing else more. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.