1. Introduction
So if we go to
Using the markers above with this url running on your device (with
a camera enabled) it should add two new objects over the markers. you will need
a copy of these images printed out. If you have it I would suggest running it
in Firefox.
2. Getting Started
The guide for all this is https://aframe.io/blog/arjs/, with
this you have pretty much everything you need.
In the index.html deleted everything in there and
replace it with
Should have a white box over the Hiro marker when the web
camera/phone/tablet is shown the markers.
The code not in bold below just sets it up - to play with it
we don’t need to worry about what it does - we can just use it. The bit in bold
is the bit initially we change or add to – in this case it puts a default white
box over the marker.
It can be seen at https://decisive-cookie.glitch.me
3. Playing with other objects
Now if we replace
With
We get a blue ball in place of the box
Now for some fun
Go back to Glitch, and if we go to assets we can add the
image. Open up the folder that has the downloaded image and drag it into
the asset window.
When it stops downloading and shows the image, click on the image
to get the new web address we are going to need that next. so take a copy of
it.
If we replace
With the following by just adding in src="https://cdn.glitch.com/04b86bba-0978-4bf4-b3a7-2ece72336f90%2FBee-PNG.png"
as below
We get a blue ball with a bee stretched over it. But it doesn’t
look that great if we remove the color=”blue” we see the bee stuck at the bottom
of the ball still but the colours are back.
Now if we replace
With commands to rotate the sphere
We get a rotating sphere with the image on it.
If you want to find out how I felt about presenting go to https://dandy-custard.glitch.me/
Now let's try a GIF
Download the GIF and then copy (drag and drop) into the asset
folder of your project get the web address and put into src=”” in
place of the one that is there already
4. Issues and Thoughts
- Make sure all the markers have white space
surrounding them.
- Video is fun
- It is browser
dependent on Firefox https://thimbleprojects.org/scottturneruon/692403 would place a video on
Chrome and so others it is a static image.
- There are ways around
it https://cloudy-nation.glitch.me a play button is added
but it does involve more code https://glitch.com/~cloudy-nationWallace https://www.northampton.ac.uk/directories/people/roy-wallace/
- The QR code approach doesn’t always work with
all phones and tablets.
- If I am honest, the technology is cool and
useful for educational use, but I not sure where it all can go.
The question is what can others come up with to use it, I would
love to hear about it.
Related Links
- How to videos... Web based Augmented Reality https://robotsandphysicalcomputing.blogspot.com/2018/12/how-to-videos-web-based-augmented.html
- Basic guide and starting point https://aframe.io/blog/arjs/#move-the-camera-or-the-marker
- Example: White block (needs the Hiro marker) https://gregarious-fibre.glitch.me/
- Example: An image is added to block (needs the Hiro marker) https://glitch.com/~dandy-custard
- Further guidance on setting up AR through AR.js https://robotsandphysicalcomputing.blogspot.com/2018/07/webvr-3-playtime-augmented-reality.html
- Further guidance adding objects into AR https://robotsandphysicalcomputing.blogspot.com/2018/07/webvr-4-playtime-putting-objects-into.html
- Guide on adding video into AR https://robotsandphysicalcomputing.blogspot.com/2018/10/webvr5-playtime-augmented-reality-to.html
All views and opinions are the author's and do not necessarily reflected those of any organisation they are associated with. Twitter: @scottturneruon
Yeppar leads the global market in the augmented reality print media. We are one stop solution for all the augmented reality visiting and business cards. Visit us today to know more about AR...
ReplyDeleteGood post... Many companies plan to implement virtual reality technology in their business.
ReplyDeleteVirtual Reality Shopping
VR real estate
VR architecture
Hey, thanks a lot for the code snippets and the step by step guide. You've saved me so much hassle you wouldn't believe. AR articles
ReplyDeleteThanks for the great info,its very useful for me thanks for the sharing.
ReplyDeleteAugmented reality application development
Best augmented reality companies
Augmented reality app development company
Augmented reality developers
Augmented reality development companies
Augmented reality companies in india.
Augmented reality app development.
Augmented reality and virtual reality are increasingly used in technology so knowing the difference is important.Related, but different. To know the difference between augmented reality vs virtual reality.please follow my blog.
ReplyDeleteGreat blog. All posts have something to learn. Your work is very good and i appreciate you and hopping for some more informative posts.
ReplyDeletePersonalized Golf Ball Markers
Great post!
ReplyDeleteVirtual Reality
In the wake of examining your article I was shocked. I understand that you clear up it extraordinarily well. In addition, I assume that diverse perusers will in like manner experience how I feel in the wake of scrutinizing your article. Ecommerce professionale
ReplyDeleteAn interesting blog on Hiro Marker and its easiness on including white spaced augmented reality more accurately. It is widely compatible on a variety of phones and tablets present with digital cameras. This should allow sharing of ubiquitous number of augmented reality codes to the general mobile users and then induce them to go for buying things. Thanks for the Blog.
ReplyDeleteFarah Azhar from Way2Smile Solutions DMCC - Top Digital Transformation Company in Dubai.
Great points there, thanks. And here is the relevant article, maybe someone will find it useful too
ReplyDeletehttps://cgifurniture.com/3d-product-modeling-companies-furniture-marketing/
Much thanks to you for your article it is extremely fascinating, I took in a ton understanding it. Increased Reality (AR) is helping organizations improve their work process and procedures.
ReplyDeleteBest Regards - Vigneshwaran P ( Android App Development Services)
Great post loved reading your comment
ReplyDeleteVirtual Reality
Thanks for sharing the info about AR game development company. These information is the best info about AR game development. it is useful for the our AR game development company and teams.
ReplyDeleteAugmented reality is a new trend in the digital marketing space.
ReplyDeleteThanks for sharing the right information with our friends and followers which helps to grow their information for game development. we have an specialist in AR game development.
ReplyDelete