Links on integrating Unity and Android
I’m glad I’m not the only one trying to hook up Unity and Android. I’ve found the follow links helpful in our project: General Unity/Android documentation Comprehensive example of a custom Unity plugin How Unity handles custom resource IDs (another) How to overlay a custom view on the Unity player How to change the text size […]
Calling Unity Code from Android
Previously I integrated Android with Unity by having Unity poll methods I defined in Java. We used reflection to pull out the activity object and invoked my custom methods on it. Today I looked into going in reverse: can I call Unity methods from Android? It turns out to be pretty simple. I first made […]
Custom Resources in a Unity Android Project
The Unity documentation on building custom Android plugins is terse, but it does tell me how to package up my Java classes and manifest and bundled them in to my Unity project: The resulting .class file(s) should be compressed into a .jar file and placed in the Assets->Plugins->Android folder. Since the manifest dictates which activity to launch it is […]
Build Script for a Unity Android Project
Having learned how to integrate my Android code and resources with Unity, I went looking for a way to simplify the migration of my files to my Unity project. (I found repeatedly exporting a JAR and copying over the manifest and resource directories painful.) The result was this Ant script, which drops the class files, […]
OpenGL and Mouse Interaction on Raspberry Pi
Last time I was able to get a simple triangle up on my Raspberry Pi using Python bindings for OpenGL ES. My goal this week was to get mouse interaction going. My big question was, “Can I move the triangle?” Normally I’d use a windowing toolkit like wxWidgets or SDL to get mouse events. But […]
Raspberry Pi + OpenGL ES
OpenGL ES works on the Raspberry Pi! How did I do it? Well, I… Grabbed vim with sudo apt-get install vim. Grabbed my ~/.vimrc. Calmed down. Looked in /opt/vc/src and built and ran the examples there. Braced myself to plow through the EGL junk. Found pyopengles and downloaded it on my Raspberry Pi. Thanks, Mr. Divaz. […]
Simplifying PocketSphinx demo
Following the PocketSphinx Android instructions left me with a demo that did more than I wanted and I didn’t really understand. I pruned away it to simplify it and eliminate the step where I had to copy over the model files with adb. Now, I put the model in my project’s assets directory and mirror that […]
Copying assets out to storage on Android
PocketSphinx depends on some files to get its job done. The HOWTO assumes you push those files over manually. We’d rather bundle them with our app as resources or assets. Assets have the advantage of retaining their directory structure, so we prefer to use them. However, assets don’t have a path to their location on […]
Rejection from SIGCSE Special Projects
I submitted a proposal for a SIGCSE special projects grant to develop tools for producing text movies. They were gracious enough to express sorrow, a kind and noble move. Thank you for applying for a SIGCSE Special Projects grant. We have finished the May round of proposal reviews, but unfortunately we aren’t able to fund […]