Log in or register to post comments

List of models in Android app

June 25, 2013 - 7:38am #1

Hi everybody!

That's already a few days I try to find a way to what I want, but no really issue ...

I would like to create an Android app, where we could choose a specific model to show in the AR part of the app. I've tried to begin with unity, i've exported the app to eclipse and create a menu where we have a list of models ... A few problems come :

 - First, if I put many models in the scene of unity, how to interact with them in java part?

 - And if that's possible, I don't think we can load a model in runtime, because the AR part is already compile when we export to eclipse, and i don't think it can be modified.

So I decided to do my app without unity and use opengl to load models I want. Interaction can be possible, but there is some matters with my models, in fact they are very complex (buildings) and they have too many materials, so having a texture for each one is quite complicated.

The goal is to have different models on a server, and the app will search the one selected in a list. So even without there is some problem because we need to use 'ndk-build' when the opengl is modified.

I hope my english is understandable and I hope you will understand what I would like to do.

Don't hesitate to ask me if you want more details ...

Thank you for your answers!

List of models in Android app

June 26, 2013 - 2:55am #9

You're welcome

List of models in Android app

June 26, 2013 - 1:52am #8

Thank you very much that's exactly what I was looking for! =)

List of models in Android app

June 26, 2013 - 1:38am #7

It may be possible, but the best in my opinion would be to implement the model downloading logic in Unity, and just call some functions from Java to trigger/control the model downloading in Unity.

One useful feature you may want to consider is Asset Bundles, which serve exactly this purpose in Unity:

http://docs.unity3d.com/Documentation/Manual/AssetBundlesIntro.html

 

List of models in Android app

June 26, 2013 - 12:26am #6

Another question ^^ Do you think if it's possible to transfer a 3D model from the app (in Java part) to Unity, if my model is on a server... Or maybe models must be only in Unity?

Thank you again!

List of models in Android app

June 26, 2013 - 12:12am #5

Okay, thank you! I think I will invest in.

List of models in Android app

June 26, 2013 - 12:07am #4

Unity Pro has many additional features, the most important is the ability to test your application using PlayMode with a WebCam attached to your PC; this will save you a lot of time during development, because you won't need to deploy the app on the device to test every single code change..

 

List of models in Android app

June 26, 2013 - 12:04am #3

Thank you for your answer! I will try on this way.

Another question, is there a difference between Unity Trial and Unity Pro.

I'm currently on the trial version but there is no problem to buy pro version.

Thank you again!

List of models in Android app

June 25, 2013 - 8:30am #2

Hi, just my personal advice:

I would go with Unity. This would save you a lot of time, if you are planning to integrate complex models.

Then you should be able to call C# parts of your code from Java, by using UnityPlayer.UnitySendMessage()

If you search in the Unity forum you will find many discussions about UnityPlayer.UnitySendMessage().

I hope this can help.

 

Log in or register to post comments