Log in or register to post comments

AR portfolio app.

January 29, 2013 - 1:39pm #1

Hi,

I would like to know if there is possible to make an app with say 10-20 3D-models and export them to one app on a device.

Can i script the function and GUI in order to swipe between 3D-models so it acts like a picture preview only AR-style?

I know it is possible to make one marker (image) export it and its works just fine inside an app. So the 3D-model will show.

But how do i go from here to show say.. 10-20 3D-models with some animation and use the app like a portfolio preview?

Thanks in advance.

AR portfolio app.

January 31, 2013 - 1:13am #6

"Regarding the App with lots of 3D-models.. Will it affect the speed of the app since it have lots of 

3D-models inside?"

No it should not do - the only impact ought to be in memory on the device as this needs to be sufficient.  Unity should take care of most things for you and by enabling/disabling 3D models you are reducing the load on the GPU and therefor minimising the bottlenecks.

Best thing to do is try it out and then hunt around the Unity site if you need more help regarding optimisations.

N

AR portfolio app.

January 30, 2013 - 11:59pm #5

Thanks NalinS!

Appreciate you help.. will follow the forum thread with the link you gave me and see what i can do with it :) 

But.. One question.. Regarding the App with lots of 3D-models.. Will it affect the speed of the app since it have lots of 

3D-models inside?

 

Thanks!

AR portfolio app.

January 30, 2013 - 6:17am #4

Hi neliuz

You should be able to do everything in Unity.

The scripts are available within the "Qualcomm Augmented Reality \ Scripts" folder but you do need to be careful about the ones that you change.

This thread discusses modifying the DefaultTrackableEventHandler.cs script with particular reference to swapping models:

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/swapping-models

Basically you could make a start with this code and have a couple of GUI buttons on screen to change the models.  The scene would be structured with an Image Target containing multiple 3D models and pressing the buttons would change the "current" model, and then you would need to modify the DefaultTrackableEventHandler.cs to display just the "current" model by enabling it and disabling the rest.

Once you have this working you can think about something more polished such as gestures, for which there are a number of Unity libraries (do a web search).  In this case you would probably need a different strategy than above to get the current model into view.

HTH

N

 

AR portfolio app.

January 30, 2013 - 2:04am #3

Thank you for your time!

Can i just code it in c-sharp in Unity? Or do i have to do objective c for swiping between 3D-models?

And were can i find some info on coding for varying the models?

I can see a file named QCARRenderer.cs and a file named QCARRendererImpl.cs

Wich one of this is it :P ?

Thanks!

AR portfolio app.

January 30, 2013 - 1:28am #2

It is possible to have an app with multiple 3D models, and if you program it correctly there is no  reason you cannot swipe between the 3D models.

Basically you need to get into the code and where it augments the 3D model (RenderFrameQCAR) you need to need to code for varying the models.

You will find this much easier in Unity, particularly if you want to use some animation etc.

N

Log in or register to post comments