Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / ARCode AGK2 Help

Author
Message
darzon
14
Years of Service
User Offline
Joined: 23rd Oct 2010
Location: Italy
Posted: 16th Feb 2019 22:27
Hi, I'm interested to AR , I dont' find any example (in Tier 1 ) source code in foldet Project for using AR Command

where I can find examples of project ?

I want to do something of this:

I have 3 printed images image1 , image2 and image3
I want that when camera see image1 appear a 3d object (a sphere)
after i put image2 near the image1 and appear a 3d object (a cube)
after i put image3 near the image2 and appear a 3d object (for exmaple a pyramid)

so i see the 3 object (cube, sphere and pyramid)

and when I put away for example image2 disappear the cube and remain only the sphere and pyramid

anyone have a source example to do something of this ?

thank you to all



blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 16th Feb 2019 23:24
First make sure you have the latest version of AGK.
Then look in the C:\Program Files (x86)\The Game Creators\AGK2\Projects\Extras\ARDemo folder
darzon
14
Years of Service
User Offline
Joined: 23rd Oct 2010
Location: Italy
Posted: 17th Feb 2019 11:56 Edited at: 17th Feb 2019 11:57
thank you very much blik0k

I have seen the code
but I don't understand it

it understand only seeing the code that when tap on device display and a ray shot a plane, the object Knight show . did I get it right ? or not ?

but suppose I want to create an app with 6 button called:

button name what do
---------------------- --------------------------------
button1-show-sphere show 3d object sphere
button2-show-cube show 3d object cube
button2-show-pyramid show 3d object pyramid

button1-hide-sphere hide 3d object sphere
button2-hide-cube hide 3d object cube
button2-hide-pyramid hide 3d object pyramid


I want that on my desk hide/ show the object ( showing them side by side on my desk ) pressing button-show / button-hide

any idea how to do it ?

thank you
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 17th Feb 2019 19:22
Everything that you need is in the code there.
They have buttons, which you could change to suite your needs.
They also load the knight model, which you could modify to show your box, sphere, pyramid.

My suggestion is just start by changing the kight model to a box.
Then change their buttons to your button functionality
Then add the other objects

Just take it one step at a time
Rick Nasher
7
Years of Service
User Offline
Joined: 25th Jul 2017
Location: Amsterdam
Posted: 26th Feb 2019 11:52
Would be nice if the AR demo(the one with the dark knight) would allow showing shadows without the plane used to display them visible or an ability to make the color of that plane completely transparent.

Certainly would add to the realism having shadows on the floor, making it more of an emerging experience.

Login to post a reply

Server time is: 2024-11-23 04:51:10
Your offset time is: 2024-11-23 04:51:10