The complete guide to 3D web embed and how to use it
The biggest feature of Vectary 3.0 is web AR embedding. Here's a detailed look at what 3D WebAR embedding is and how to use it to achieve your business goals
Update: June 4, 2019: Vectary WebAR embed now supports both ARkit and AR core for iPhone and Android. No extra app install is needed.
If you don't speak any programming language, web embedding might still be not a part of your vocabulary, but that's about to change. Web embed, or embedded file, is any type of media you can simply insert into your website by pasting a piece of HTML code or script.
Whether you want to make your blog post more interesting, add an interactive element to your website, make your customers experience products in AR, or highlight a part of an article with a design element from popular social media networks, it can bring a lot of value to your website and customers visiting it.
These days internet users come across web embeds every day. These come in the form of social media posts, on news and media websites and many others. YouTube is probably one of the most recognized embeds. If you want to include a video in your blog post, more often than not, it will be a piece of code, that can be found under any YouTube video, and has been simply copy and pasted. 3D projects are moving in this direction too.
A 3D and AR web embed example
The image below is an interactive Vectary 3D viewer - it's called WebAR because it supports both the 3D web element and Augmented Reality experience. Try to rotate it or open this blog on iPhone with Safari or on Android with Chrome to see it in AR:
How to prepare WebAR embed in Vectary
Step 1: Create a 3D object or 3D scene
To embed an object on a blog or website, you need to plan where you want the embedded object to appear. Based on that you can prepare the embed so it fits naturally into the surroundings of the website. There are several ways you can create a 3D project that is web-friendly.
1. Import your own 3D model
If you’re already experienced in 3D modeling you will probably have a few models and files to start your 3D web embed. Simply import them to Vectary and wait until they load. Currently, we support over 60 file formats including: .obj, .dae, .stl, .gltf, .glb, .jpg, .png, .svg, you check out the whole list of all the supported formats here.
2. Use the library and access 3D repositories or pre-made collections
For beginners in 3D modeling, we created a set of curated collections which consists of assets, materials, and environments. For non-commercial use, you can also use already existing models from popular 3D platforms like Google Poly, MyMiniFactory, Sketchfab, or The Noun Project. You can even search in these repositories if you’re looking for something specific. Once you’ve found it, drag & drop it onto the scene and continue with generating the embed.
3. Create a project from scratch
For advanced users, Vectary offers intuitive mesh-modeling in edit mode. Similar to importing projects, you can create it from scratch or edit an existing one you imported, or placed on the scene from the library. When you’re finished with 3D modeling, continue with generating your embed code.
Step 2: How to generate a 3D web embed code
Once you are ready and have your project and 3D object prepared, creating a WebAR embed code is really easy and straightforward. Our software does all the work for you with a simple click on the Generate embed button in the Viewer tab. You might have to wait a couple of minutes as we process the object in real-time, compress it, bake the textures and create the UV mapping to make it a web-friendly all-in-one package accessible via a simple line of code. Once this is finished an iframe code is generated and is ready to be used in your HTML code.
Vectary 3D web embed settings
You have the option to customize the outcome of your embed in the advanced menu:
- Texture quality
The most important parameter that affects embed is texture quality. More detailed textures take more time to generate as they are very detailed. They might also have a slower performance when implemented on the website. On the other hand, smaller resolution textures are faster to load.
- Ambient Occlusion
Defines the shades on the surface, it also enhances the realism of your embeds.
Defines light on the surface
- Augmented reality
Last but not least, your project can be viewed on devices with AR preview. iOS devices and Android devices can preview it because Vectary WebAR Viewer supports AR core technology for Androids. If you have an e-commerce business and you want visitors to experience the product in real proportions, or preview the product in their environment this is the way to go. By default, we keep this feature turned on. You can read more about it on our blog.
- Center camera view
"Center camera view" fits your scene into the camera so that the camera pivot point will be in the middle of your scene.
When the embed is generated you can also add more settings of the WebAR viewer behavior such as:
- Show preloader
- Show interaction prompt - mouse follow of the object
- Turntable - autorotation of the object
Step 3: Preview the WebAR embed
Sometimes it is good to preview your WebAR viewer before embedding, or you just want to share the Augmented Reality preview with your colleagues and clients. To do so, go to Format settings and choose Link. Open the generated link in a new tab.
How to edit the 3D web embed code
Users familiar with HTML code can edit the generated iframe code. For now, only the basic parameters such as width, height, and border frame can be changed. In the future, there will be more customization and editable options available in the embed code. These will be accessible without the need for any coding skills. So for example, if you want to resize and make your embed smaller so it fits nicely onto your website, change the attributes “width” and “height” to fit your needs. We recommend keeping framerborder at value “0” to make the object blend in nicely with the background.
Step 4: How to edit the 3D viewer on your website
Embedded objects on the website are the final results of 3D designs created in the Vectary editor. However, Vectary takes it one step further and allows you to edit already embedded WebAR projects and change them in real-time. Open the project in Vectary, make your changes and re-generate the code. All changes should be applied instantly.
Ready to start embedding a 3D/AR content with Vectary WebAR?
How much does it cost to use the Vectary 3D web embed?
WebAR testing is now a part of the free plan. That means that you should be able to embed it on your Wix, Squarespace and other pages that support iframes, but only you as the owner of the project will be able to see it on a free plan. If you want others to see the iframe you need to upgrade to a paid plan. Check our pricing to learn more.
How to put an interactive 3D or AR design on to a Weebly website
Vectary web embed is a great way to insert an interactive 3D element on to your Weebly website
How to put an interactive 3D or AR design on to a Shopify website
Vectary web embed is an easy way to input an interactive 3D element on your Shopify site.
How to put an interactive 3D or AR design on to a Squarespace website
Put an interactive 3D/AR element onto your Squarespace page. Vectary generates a piece of code that you paste into your Squarespace editor.
How to put an interactive 3D or AR design on to a Wix website
Vectary web embed is a great way to get an interactive 3D element on to your Wix website or blog.
Introducing Vectary 3.0: The future of the web is 3D and AR
Vectary is making the move to become the first 3D and Augmented reality CMS for the web. Vectary is closing the gap between web design and mixed reality.