In my application is now ready to add an augmented reality inside the function.
I hope to be here brainstorming. Well my friends are interested in it.
Done, wish you could share with you the experience, did not encounter any problems, you can say it, we are talking about, do not, want, you can come and look lively. Thank you join. Some sites I share this with you.
http://www.devx.com/wireless/Article/42482/1954
http://stackoverflow.com/questions/1939318/augmented-reality-framework
http://stackoverflow.com/questions/1870278/how-to-start-writing-an-augmented-reality-application
http://www.androidkit.com/developing-augmented-reality-applications-for-android
http://mobile.tutsplus.com/tutorials/android/android_augmented-reality/
https://github.com/haseman/Android-AR-Kit
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Reply:
Nobody is doing this project? I myself first Dingding.
Reply:
hi add my msn it
We study together. Zj_goodbad@hotmail.com
Reply:
Plus, send you mail. I generally use QQ or gmail
Reply:
Dingyiding
I found some useful information
For example, layer
Recently found an API called wikitude, mobile phone downloads a WIKITUDE the MODULE, then call a method in your class on it.
But the problem is it can only be used if you do not pay BETA version.
Now there is no good way to think of what else.
What is the school doing to achieve their follow.
Several point coordinates can be changed, I'm just added.
import java.util.ArrayList;
import java.util.Collection;
import org.openintents.intents.WikitudeARIntent;
import org.openintents.intents.WikitudePOI;
import android.app.Activity;
import android.app.Application;
import android.content.ActivityNotFoundException;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class RAugmente extends Activity {
/ ** Called when the activity is first created. * /
@ Override
public void onCreate (Bundle savedInstanceState) {
super.onCreate (savedInstanceState);
setContentView (R.layout.main);
Button b = (Button) findViewById (R.id.reality);
b.setOnClickListener (new View.OnClickListener () {
@ Override
public void onClick (View arg0) {
/ / TODO Auto-generated method stub
/ / Lance intent de realite augmente
startARViewBasic ();
}
/ *
* Vue réalité augmenté
* /
private void startARViewBasic () {
/ / TODO Auto-generated method stub
/ / Creation d'un intent basic AR
WikitudeARIntent intent = prepareIntent ();
/ / Titre de mon application
intent.addTitleText ("AR application");
/ / Lancement de RA
try {
/ / Lecontext.startActivity (intent);
startActivity (intent);
}
catch (ActivityNotFoundException e) {
/ / Toast.makeText (this, "Rien trouvé" + e.getMessage (), Toast.LENGTH_SHORT) show ();.
/ / Email.setText (e.getMessage () + "/" + intent.toString ());
}
}
private WikitudeARIntent prepareIntent () {
/ / TODO Auto-generated method stub
/ / Create the intent
WikitudeARIntent intent = new WikitudeARIntent (RAugmente.this.getApplication (), null, null);
/ / Add the POIs
this.addPoint (intent);
return intent;
}
/ / Ajouter les point ce qu'on va dessiner
private void addPoint (WikitudeARIntent intent) {
/ / Première point de la fac (maurienne)
WikitudePOI point1 = new WikitudePOI (45640910, 5869453);
/ / Deuxième point (belledonne)
WikitudePOI point2 = new WikitudePOI (45641997, 5869011);
/ / Troisième point (entremont)
WikitudePOI point3 = new WikitudePOI (45640421, 5870406);
/ / Quatrième point (4 canton)
WikitudePOI point4 = new WikitudePOI (45640523, 5870991);
/ / Cinquième point (Bauge)
WikitudePOI point5 = new WikitudePOI (45640155, 5870867);
/ / Ma collection de point
Collection
points.add (point1);
points.add (point2);
points.add (point3);
points.add (point4);
points.add (point5);
intent.addPOIs (points);
}
});
}
}
Reply:
Reply:
Plus one, as long as you can get registered wikitudekey, you can remove the above (beta) watermark. But if the business then you need to pay. The official website did not write clearly, do not know his last with the GPL or LGPL.
Access to watermark, in the phrase of the two null, the first one is sent to the key after you register on your account, and the second is the developer's name (preferably with Pinyin, Chinese characters do not know if there will be any compatibility issues)
WikitudeARIntent intent = new WikitudeARIntent (RAugmente.this.getApplication (), null, null)
I wish you all happily in the programming!
Reply:
qq: 27035210 study together
Reply:
There are questions about aspects of AR would like to ask you can add me under it? QQ: 123724119 msn: rock410@live.com
Reply:
Who can explain the above posted code is what is meant by
Reply:
public class BasicOpenARDemoActivity extends Activity {
/ ** The callback-intent after pressing any buttons * /
private static final String CALLBACK_INTENT = "wikitudeapi.mycallbackactivity";
/ ** The id of the dialog which will be created when the modelfile cannot be located * /
private static final int DIALOG_NO_MODEL_FILE_ON_SD = 1;
/ ** The model ile name * /
private static final String modelFileName = Environment.getExternalStorageDirectory () + "/ wtc_old_triang.obj";
/ ** The latitude of the origin (0/0/0) of the model * /
private static final float modelCenterLatitude = 47.822f;
/ ** The longitude of the origin (0/0/0) of the model * /
private static final float modelCenterLongitude = 13.045f;
/ ** The altitude of the origin (0/0/0) of the model * /
private static final float modelCenterAltitude = 470;
/ **
* {@ InheritDoc}
* /
@ Override
public void onCreate (Bundle savedInstanceState) {
super.onCreate (savedInstanceState);
setContentView (R.layout.main);
/ / We hook up 3 different buttons.
Button b = (Button) findViewById (R.id.button1);
b.setOnClickListener (new View.OnClickListener () {
public void onClick (View v) {
BasicOpenARDemoActivity.this.startARViewBasic ();
}
});
b = (Button) findViewById (R.id.button2);
b.setOnClickListener (new View.OnClickListener () {
public void onClick (View v) {
BasicOpenARDemoActivity.this.startARViewWithIcons ();
}
});
b = (Button) findViewById (R.id.button3);
b.setOnClickListener (new View.OnClickListener () {
public void onClick (View v) {
BasicOpenARDemoActivity.this.startARViewWithCustomTitle ();
}
});
b = (Button) findViewById (R.id.button4);
b.setOnClickListener (new View.OnClickListener () {
public void onClick (View v) {
BasicOpenARDemoActivity.this.start3dARView ();
}
});
}
/ **
* Starts the basic AR view
* /
private void startARViewBasic () {
/ / Create the basic intent
WikitudeARIntent intent = prepareIntent ();
/ / And launch the intent
try {
intent.startIntent (this);
} Catch (ActivityNotFoundException e) {
AbstractWikitudeARIntent.handleWikitudeNotFound (this);
}
}
/ **
* Does the same as the basic AR view above, but adds custom icons to the POIs
* /
void startARViewWithIcons () {
/ / Create the basic intent
WikitudeARIntent intent = prepareIntent ();
/ / Optionally add a title
intent.addTitleText ("AR app with custom icons");
intent.setPrintMarkerSubText (false);
/ / Optionally: Add icons
addIcons (intent);
/ / And launch the intent
try {
intent.startIntent (this);
} Catch (ActivityNotFoundException e) {
AbstractWikitudeARIntent.handleWikitudeNotFound (this);
}
}
/ **
* Does the same as the basic AR view above, but adds custom icons to the POIs and a graphical title image
* /
void startARViewWithCustomTitle () {
/ / Create the basic intent
WikitudeARIntent intent = prepareIntent ();
intent.setPrintMarkerSubText (false);
/ / Optionally: Add icons
addIcons (intent);
/ / Optionally: Put a custom graphical title:
intent.addTitleImageResource (this.getResources () getResourceName (R.drawable.custom_title_bar).);
/ / Optionally, one could set URIs:
/ / Use Android's content provider or create your own
/ / To host your custom images.
/ / Intent.addTitleImageUri ("content :/ / com.IconCP / ANY_ICON_PATH.jpeg");
/ / And launch the intent
try {
intent.startIntent (this);
} Catch (ActivityNotFoundException e) {
AbstractWikitudeARIntent.handleWikitudeNotFound (this);
}
}
/ **
* Starts the 3D AR view
* /
private void start3dARView () {
/ / Create the basic intent
Wikitude3dARIntent intent = new Wikitude3dARIntent (this.getApplication (), null, null);
File file = new File (modelFileName);
if (! file.exists ()) {
this.showDialog (BasicOpenARDemoActivity.DIALOG_NO_MODEL_FILE_ON_SD);
} Else {
intent.setModelPathFileSystem (modelFileName);
intent.setModelOrigin (modelCenterLatitude, modelCenterLongitude, modelCenterAltitude);
intent.setMetersWorth1000Points (1);
/ / And launch the intent
try {
intent.startIntent (this);
} Catch (ActivityNotFoundException e) {
AbstractWikitudeARIntent.handleWikitudeNotFound (this);
}
}
}
/ **
* Prepares a Wikitude AR Intent (eg adds the POIs to the view)
*
* @ Return the prepared intent
* /
private WikitudeARIntent prepareIntent () {
/ / Create the intent
WikitudeARIntent intent = new WikitudeARIntent (this.getApplication (), null, null);
/ / Add the POIs
this.addPois (intent);
/ / Add one menu item
intent.setMenuItem1 ("My menu item", BasicOpenARDemoActivity.CALLBACK_INTENT);
intent.setPrintMarkerSubText (true);
return intent;
}
/ **
* Adds hard-coded POIs to the intent
*
* @ Param intent
* The intent
* /
private void addPois (WikitudeARIntent intent) {
WikitudePOI poi1 = new WikitudePOI (35.683333, 139.766667, 36, "Tokyo", "Tokyo is the capital of Japan.");
poi1.setLink ("http://www.tourism.metro.tokyo.jp/");
poi1.setDetailAction (BasicOpenARDemoActivity.CALLBACK_INTENT);
WikitudePOI poi2 = new WikitudePOI (41.9, 12.5, 14, "Rome",
"Rome is the capital of Italy and the country's largest and most populous city, with over 2.7 million residents.");
poi2.setDetailAction (BasicOpenARDemoActivity.CALLBACK_INTENT);
WikitudePOI poi3 = new WikitudePOI (40.716667, -74, 1, "New York",
"New York is the most populous city in the United States, and the center of the New York metropolitan area.");
poi3.setDetailAction (BasicOpenARDemoActivity.CALLBACK_INTENT);
WikitudePOI poi4 = new WikitudePOI (48.208333, 16.373056, 220, "Vienna",
"Vienna is the capital of the Republic of Austria.");
poi4.setDetailAction (BasicOpenARDemoActivity.CALLBACK_INTENT);
List
pois.add (poi1);
pois.add (poi2);
pois.add (poi3);
pois.add (poi4);
intent.addPOIs (pois);
. ((BasicOpenARDemoApplication) this.getApplication ()) setPois (pois);
}
/ **
* Helper-method to add icons to the intent.
*
* @ Param intent
* The intent
* /
private void addIcons (WikitudeARIntent intent) {
ArrayList
Resources res = getResources ();
pois.get (0) setIconresource (res.getResourceName (R.drawable.flag_japan));.
pois.get (1) setIconresource (res.getResourceName (R.drawable.flag_italy));.
pois.get (2) setIconresource (res.getResourceName (R.drawable.flag_usa));.
pois.get (3) setIconresource (res.getResourceName (R.drawable.flag_austria));.
/ / To use this, make sure you have the file present on the sdcard
/ / Pois.get (3) setIconuri ("content :/ / com.IconCP / sdcard / flag_austria.png");.
}
/ **
* {@ InheritDoc}
* /
protected Dialog onCreateDialog (int dialogId) {
String message = this.getString (R.string.modelfile_not_found, modelFileName);
return new AlertDialog.Builder (this). setTitle (R.string.modelfile_not_found_title). setMessage (message)
. SetPositiveButton ("OK", new DialogInterface.OnClickListener () {
public void onClick (DialogInterface dialog, int whichButton) {
/ / Do nothing, just dismiss the dialog
}
.}) Create ();
}
}
Reply:
On the Windows platform, did it?
Reply:
Graduation have to do this, pointing or two it? qq807110084
Reply:
There are now some people do android augmented reality applications
Reply:
Hello, I recently also do this, would like to use GPS + Sensor to achieve similar google glasses exchanges with it, QQ: 1227540804
Reply:
QQ: 649186272 add me just do it together recent research applications ar
Reply:
QQ: 461267492 add me just do it together recent research applications ar
Reply:
Andrews recently in the company doing the project just to do this hope can study together AR QQ735085013 landlord can create a group thing we all add together the
Reply:
I also recently research in this area, QQ472947433, we can discuss!
Reply:
wikitudekey where registered, neighborhoods studied zaburo@gmail.com
Reply:
To my research with everyone, I need your study notes, Baidu AR Technology Network
Reply:
Ar program written in Java will not slowly? I am old tangled this?
Reply:
Dingyiding! Want to see!
Reply:
Seeking occupation, I also learned AR technology, QQ591018930
Reply:
Studying 116,097,968
Reply:
Add my QQ: 1016829303, we study together
No comments:
Post a Comment