Skip to content

Commit

Permalink
initial commit, barebone AR project based on QCAR sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderversluys committed Feb 22, 2012
0 parents commit e674417
Show file tree
Hide file tree
Showing 41 changed files with 2,487 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .classpath
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="var" path="QCAR_SDK_ROOT/build/java/QCAR/QCAR.jar"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
.DS_Store
bin
gen
obj
33 changes: 33 additions & 0 deletions .project
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ARLoader</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
129 changes: 129 additions & 0 deletions AndroidManifest.xml
@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="be.niob.apps.ARLoader"
android:versionCode="1"
android:versionName="1.0">

<!--
NOTE 1: The setting 'android:launchMode="singleTask"' makes sure
that the activity can begin only one task and the device can hold only
one instance of the activity at a time. However, it allows other
activities to be part of its task (unlike the 'singleInstance' mode).
It's at the root of the activity stack, but other activities (necessarily
"standard" and "singleTop" activities) can be launched into the same task.
If this attribute is not set, the default value 'standard' is used, which
would allow the activity to be launched multiple times.
NOTE 2: The setting 'android:debuggable' means whether or not the
application can be debugged on a real device (on the emulator it seems
optional), i.e. it affects whether you can actually step through your
code in the debugger. It needs to be removed when the application is
released!
NOTE 3: The setting
'android:theme="@android:style/Theme.NoTitleBar.Fullscreen"' ensures
that the application starts in full screen mode without a title bar.
-->
<application
android:icon="@drawable/icon_qcar"
android:label="@string/app_name"
android:description="@string/app_description"
android:launchMode="singleTask"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:debuggable="true">

<!--
NOTE: The setting 'android:configChanges="orientation|keyboardHidden"'
makes sure that Android will not destroy and re-create the activity
when the user flips the keyboard or changes the orientation of the
device, but calls Activity.onConfigurationChanged() instead.
NOTE 2: in order to prevent automatic reactions to orientation
changes in addition to setting proper values for
'android:configChanges', you also must explicitly specify the screen
orientation used by the application, either by setting the attribute
'android:screenOrientation' or in code by calling
Activity.setRequestedOrientation()
-->
<activity android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden"
android:name="be.niob.apps.ARLoader.ARLoader">

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>

</activity>

</application>

<!--
android:minSdkVersion = application's required minimum API level to run
android:targetSdkVersion = application's targeted API level
NOTE: Native OpenGL ES 1.x is supported from API level 4 (1.6),
native OpenGL ES 2.0 is supported from API level 5 (2.0). API level 5
(Android SDK 2.0) and 6 (Android SDK 2.0.1) are no longer available for
download and testing, therefore we set the minimum SDK version to
API level 7 (Android 2.1). We don't set a target SDK version.
-->
<uses-sdk android:minSdkVersion="7" />

<!--
The OpenGL ES version required by the application.
NOTE 1: If you skip this tag, it will default to OpenGL ES 1.0.
NOTE 2: Use 0x00010001 for OpenGL ES 1.1, or 0x00020000 for
OpenGL ES 2.0.
NOTE 3: An application can assume that if a platform supports a given
OpenGL ES version, it also supports ALL numerically lower OpenGL ES
versions. Therefore, an application that requires both OpenGL ES 1.x
and OpenGL ES 2.0 must specify that it requires OpenGL ES 2.0.
-->
<uses-feature android:glEsVersion="0x00020000" />

<!--
The application requires a camera.
NOTE: Any application that requests the CAMERA permission but does not
declare any camera features with the <uses-feature> element will be
assumed to use all camera features (auto-focus and flash). Thus, the
application will not be compatible with devices that do not support
all camera features. Please use <uses-feature> to declare only the
camera features that your application does need. For instance, if you
request the CAMERA permission, but you do not need auto-focus or
flash, then declare only the android.hardware.camera feature. The
other camera features that you do not request will no longer be
assumed as required.
-->
<!-- <uses-feature android:name="android.hardware.camera" /> -->

<!--
Add this permission to get access to the camera
-->
<uses-permission android:name="android.permission.CAMERA" />

<!--
Add this permission to allow opening network sockets
-->
<uses-permission android:name="android.permission.INTERNET"/>

<!--
Add this permission to check which network access properties (e.g. active type: 3G/WiFi).
-->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<!--
Add this permission to access WLAN MAC address.
-->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

<!--
Add this permission to access HW ID.
-->
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>

</manifest>
Binary file added assets/TextureTeapotBlue.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/TextureTeapotBrass.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/banana.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions assets/config.xml
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<QCARConfig xsi:noNamespaceSchemaLocation="qcar_config.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Tracking>
<ImageTarget name="chips" size="247 172.899994"/>
<ImageTarget name="stones" size="247 172.899994"/>
</Tracking>
</QCARConfig>
Binary file added assets/qcar-resources.dat
Binary file not shown.

0 comments on commit e674417

Please sign in to comment.