Start a new topic

Source Code

Hi Wikitude,


Thanks for creating wonderful examples video:

https://www.youtube.com/watch?v=-q_pW5bUhvg


Where can I get the source code for the example video above?


Regards,

Marvin



Hi Marvin,


We don't have the source code for this demo. The best way to start is to check out the sample app which comes with the SDK download package together with the respective documentation section.


There are several different sample showing the different features in detail.


Thx and greetings

Nicola

Hi Nicola,


Thanks for the prompt response.


I thank you for the recommendation, and even I have gone through it before making this prompt.

Cause actually I got that video, when I read through this link:

https://www.wikitude.com/blog-build-pokemon-go-app/


But since I couldn't find in the documentation regarding:

1. How to display absolute 3D Object on use screen (the pokeball in this case)?

2. How to animate the 3D Object to move away from the user when the use tap the screen (throwing animation in this case)?

3. The implementation (i.e collision detection) of when the pokeball hits the POI at geo location (the monsters in this case)?


And when I saw that video above, that probably will mimic what I regarding the questions above.

Probably did I miss out something on the Flutter documentation (I am using Flutter SDK)?

Or maybe you can refer me to a further documentation?


Thanks!


Kind Regards,

Marvin


Hi Marvin,


To display absolute 3D Object on the camera screen you could combine the our AR.GeoObject and the AR.Model:


new AR.GeoObject(markerLocation, {
    drawables: {
        cam: [this.markerDrawableIdle, this.markerDrawableSelected, this.titleLabel, this.descriptionLabel],
        indicator: this.directionIndicatorDrawable
    }
});


Here are the references: https://www.wikitude.com/external/doc/documentation/8.6/Reference/JavaScript%20API/classes/GeoObject.html#property_drawables.cam and  https://www.wikitude.com/external/doc/documentation/8.6/flutter/3dmodels.html#3d-model-on-image-target. You also could use our 09_ObtainPoiData_1_FromApplicationModel example.


Unfortunately, as we mention here: https://support.wikitude.com/support/discussions/topics/5000093223 collision between object is not something we are offering right now.


Regards,


Aitor.

Hi Aitor,


Thank you for the thorough reply and the code examples.

Will try to figure it out!


Kind Regards,

Marvin

Login or Signup to post a comment