Pfff...
It is really not easy to start... :rolleyes:
With QCAR SDK on Eclipse, animations are written in a cpp function which is updated every frame.
However, in Unity, I don't understand where I have to write the program for every frame? Do I have to write one script? Several scripts?
Do I have to attach it to one object?
And what if I want to change the object by pressing the screen, meaning that a script must be sharing by at least two different objects...
In the QCAR project's structure, some scripts are already located in Editor/QCAR/scripts and in QualcommAugmentedReality/Scripts. Are they all used?
And when I created one, it is automatically placed in Editor/QCAR.
Finally, I read the Getting started page about Virtual buttons, and it is written, for instance, that:
Quote:
You can create a new Virtual Button for a given Image Target at run-time by calling the CreateVirtualButton member function on the corresponding instance of your ImageTargetBehaviour.
But where (again) do I call this funtion?
THEN, I would like to change the starting animation of the app, the one with Unity's logo. But I don't know where (and again...) it is located in the project...
EDIT:
Well, at the moment, I have 2 different objects (called A and B). They exactly have the same shape and are located on the same place on the target. They just differ from their texture/colors.
I created and attached one script per object:
-for A: A is first visible, and becomes invisible when the screen is pressed, then re-becomes visible when the screen is re-pressed, etc...
-for B: B is first invisible, and becomes visible when the screen is pressed, then re-becomes invisible when the screen is re-pressed, etc...
...so that -for A: when the screen is pressed, we have the impression that the texture of the object changes.
Does somebody have an easiest method?
for this as well as a discussion here in the QCAR forums at http://ar.qualcomm.at/node/2000478
Thank you,
-Peter