Zappar Insights: All the latest industry innovations and news from the Zappar team

Mattercraft AI: Supercharging The Art Of Immersive 3D Content For The Web

Written by Connell Gauld | Jun 9, 2025 1:03:50 PM

You may have heard of AI.

We certainly have here at Zappar. In the last year, we’ve seen an explosion in the effectiveness and utilisation of AI technologies across industries. Software developer tooling, in particular, has seen great strides recently with jaw-dropping AI models from the likes of Anthropic and OpenAI powering the next-gen coding experiences of Copilot, Cursor, Windsurf, Claude Code, and others.

Mattercraft is our complete 3D development environment for the web. It enables creative developers to build rich, interactive 3D experiences that are delivered to end users in the browser. It ‘bridges the gap’ between the fantastic visual tooling we’ve come to expect from game engines (like Unity and Unreal), and the more code-oriented world that’s been the mainstay of frontend web development. As a result, Mattercraft is great for creatives with or without coding experience.

Meet Mattercraft AI Assistant

This month, we’re releasing AI Assistant - your helping hand for building next-gen 3D experiences for the web. It’s fully integrated into Mattercraft and provides several tools that take the creative process to the next level. From helping you learn and understand Mattercraft, all the way to vibe-crafting (creating content and code entirely through conversation with AI), the AI Assistant supercharges the intersection between visual and code development, just as Mattercraft itself does.


In this article, I'd like to tell you about AI Assistant - how to use it and what it’s capable of - but also to give some of the background around its implementation and why Mattercraft is such a great foundation for this technology.

Our AI ethos

An important note before we get started. As artists and developers ourselves, we see both the incredible opportunity of AI and feel the creative and economic threats that it represents. Our AI ethos is that AI works best when it superpowers your creative process. It’s about helping you to create amazing content efficiently, with confidence, and about removing barriers to the realisation of your creative vision. We believe that AI Assistant achieves just that - it works for you, not the other way around.

Three Powerful Modes

AI Assistant has three modes, each fully integrated into Mattercraft:

  • Ask mode can answer questions about Mattercraft and your project;
  • Edit mode can propose changes to your project, including your 3D scenes and scripts, for you to accept or reject; and,
  • Code Complete provides high-quality scripting suggestions as you’re typing.

Together, these modes can help new users get up to speed with Mattercraft and can dramatically improve efficiency in the creative process.

Let’s look at each in a bit more detail!

Ask Mode

We’ve provided AI Assistant with a bank of Mattercraft knowledge that allows it to answer your questions reliably and comprehensively. Ask Mode sits as a panel on the right of the Mattercraft user interface and provides a familiar chat interface. You can freely discuss Mattercraft and your project in this view, and Ask will respond promptly and accurately.

In addition to knowledge, we’ve given Ask mode the ability to direct you to parts of the Mattercraft user interface. It’s therefore able to let you know about features you may not have encountered before, where contextually relevant, and help you to find them.

👉 Our AI ethos in action: We could have given Ask the ability to simply open areas of the UI itself. Instead, we show you where to go so you can find it easily next time yourself.

Let’s take a look at an example.

Ask Example 1: Learning about Mattercraft

Given the prompt “How can I test my project on a phone?”, Ask mode directs the user to the Live Preview feature, describing how it can be used.

 

Ask Example 2: Understanding your Project

Ask mode is able to explore your project. It can analyse the contents of 3D scenes, animations, assets (including 3D models), available and installable add-ons, and any errors or issues that may be present - all so it can provide advice that’s directly relevant to your project.

In our second example, we ask, “What add-ons might help with my project?”. AI Assistant requests a list of recommended dependencies and describes relevant entries. It also helps the user find the Add-ons & Dependencies browser.

 

Edit Mode

It’s in Edit mode that AI Assistant can really transform how you build and iterate on content. In addition to everything that Ask mode is capable of, Edit mode can propose actual changes to your project, including:

  • Adding/removing objects in your Hierarchy, and changing properties
  • Creating and modifying behaviours
  • Working with the animation system, including creating timelines and animation states
  • Installing dependencies
  • Modifications to your scripts to add functionality or to fix issues
  • Writing complete custom components and scripts from scratch

AI Assistant is able to propose these changes across your project, working with multiple files at a time. In each case, Mattercraft gives you the opportunity to accept or reject the changes, either individually or as a complete set.

👉 Our AI ethos in action: With the ability to accept or reject each change the AI proposes, you’re in complete control of your project.

To demonstrate the power of Edit mode, let’s take a look at it in action.

Edit Example 1: Editing 3D scenes

Our first example shows how AI Assistant’s Edit mode can propose changes to the contents and structure of your 3D scenes. It features an augmented reality ‘face filter’ experience.

 

Responding to the prompt “Make an animation that spins the hat and play it when the user taps on the hat”, AI Assistant takes the following steps:

  1. It opens the file you’re looking at, in this case the 3D scene file, in order to understand the existing structure.
  2. It requests a list of components and behaviours that are available in your project.
  3. It asks Mattercraft for more information about the PlayLayerClip behavior, correctly concluding that it can be used to play an animation in response to a user ‘click’ event.
  4. It creates a new animation layer, and a timeline. It implements the rotation animation by adding two keyframes to the timeline for the hat object’s rotation property, correctly formatting the required values and setting an appropriate ‘easing’ function.
  5. Finally, it creates a new PlayLayerClip behaviour attached to our hat object, and sets properties such that it plays the new animation when the onClick event is fire.

As you can see, this example demonstrates that AI Assistant has an in-depth understanding of the concepts and structure of a 3D Mattercraft scene, and is able to propose useful and correct modifications in response to our requests.

Let’s take a look at another example.

Edit Example 2: Custom components and scripts

AI Assistant has a comprehensive understanding of scripting and is able to write complete custom components and propose changes to existing script files.

 

In response to the prompt “Create a custom component that’s a dancefloor”, AI Assistant performs the following actions:

  1. As before, it opens the existing 3D scene file
  2. It creates a new script file, starting with a basic ‘3D object’ component template
  3. It proposes a set of changes to that new script file that implement a full, procedurally generated, 3D animated dance floor. In this case the AI Assistant gets this code completely right first time, but, just like a human coder, it may make mistakes from time to time. Since scripts are written in TypeScript, Mattercraft is able to automatically detect errors and give AI Assistant the opportunity to fix them straight away.
  4. AI Assistant checks the list of components to make sure the new component is available.
  5. It adds the new dance floor component to the scene and we can see it instantly in the 3D editor.

Mattercraft’s 3D editor (and Live Preview) are powered by its built-in bundler. This is a piece of technology that runs continuously in the background, compiling code and assembling assets for the purposes of running it safely in your browser or on a remote device (like your phone). As a result changes will appear, in real-time in the 3D editor, as the AI Assistant proposes them. You can literally watch it work.

A second prompt asks the assistant to “Now make the robot dance”. AI assistant takes the following steps:

  1. It requests the metadata for the robot 3D model. This is a list of the animations, materials, blend shapes (morph targets) and other attributes of the model.
  2. It spots that the model includes a ‘Dance’ animation, and, remembering from earlier that an ‘Animation’ behaviour exists, requests more information from Mattercraft about it.
  3. It adds that behaviour to the scene and sets some properties to play and loop the chosen animation when the experience starts.

You can continue to discuss the modifications that AI Assistant proposes in the chat - requesting additional changes, for instance.

Let’s take a look at a final example that demonstrates how well AI Assistant can work directly with Mattercraft’s user interface.

Edit Example 3: Component Properties

In this example, we ask AI Assistant to “Make a custom shader that’s a cyberpunk vibe for this drink's can”. For brevity, we’ve snipped out the steps where the AI is writing the shader (it’s the same process as the previous example).

 

As before, the result of the assistant’s work can be seen directly in the 3D editor. In this case, the AI has added configurable properties to the custom component that it generated. These can be edited directly in the Mattercraft user interface, without having to modify the underlying shader code. The assistant understands how the code it writes translates to reusable, configurable components:

  • AI Assistant predicted the value to us of these properties and added them proactively, without our having to specifically request them.
  • It correctly annotated properties that represent colours and ranges so that Mattercraft could show an appropriate input for us.
  • If we find we’d like additional controls or properties, we can just ask for them - AI Assistant will make further modifications to the shader in response to our requests.

As you can see, Edit mode is an incredibly powerful tool for working with 3D interactive experiences. Whether you’re a die-hard three.js coder or prefer to work visually, Edit mode can improve your efficiency and can help you build functionality that was out of reach or time-consuming to achieve.

Code Complete

If you do want to delve into script, then the Code Complete mode is here to accelerate your productivity. It works just like auto-complete in a script editor - providing code suggestions for your current cursor location that can be accepted with the ‘tab’ key.

The suggestions, however, are generated by AI Assistant, including the broad context of the file you’re working in. They can comprise of anything from the remainder of your current line, through to entire functions or code blocks.

👉 Our AI ethos in action: each potential completion shown can be accepted or rejected with the tap of a button.

Code Complete Example 1: Comment prompting

This example shows Code Complete in action:

 

As you can see, it’s able to construct correct code from just comments and the contents of the file. This workflow - commenting as you go - gives Code Complete plenty of knowledge with which to suggest intelligent code, plus it makes it easier for future readers of your code (including Edit mode!) to understand your intention.

Code Complete Example 2: Other languages

AI Assistant’s code knowledge is broad and spans multiple languages. This example shows editing a CSS file in real time. The suggested styling for the button (inferred by the assistant from the ID of the button alone) is a great start from which you can tweak to get the exact look you want.

 

Models and Providers

Like most AI-powered tooling, AI Assistant leverages Large Language Models (LLMs) from some of the industry’s most innovative AI model providers, including Anthropic, OpenAI and Mistral.

Edit mode currently uses Claude 4 Sonnet - the brand new, powerful, while efficient, model from Anthropic.

At this time, Ask mode uses Claude Haiku 3.5 - it’s a smaller model that’s faster and more efficient than that used by Edit mode.

And finally, Code Complete uses Codestral - a model from Mistral that’s been specifically trained to be super fast and accurate at small-context code tasks.

As new models become available (from Anthropic and others) we’ll evaluate and update the default models used by each mode so they become better yet at helping you with your project.

Credits

Each Zapworks plan will come with an included allocation of AI credits. The credits can be used with whichever AI features you’re working with, meaning you won’t be wasting allowance on modes you don’t use.

Here’s how each of the modes stack up:

  • Ask mode uses 1 credit per AI response
  • Edit mode uses 3 credits per AI response
  • Code Completion uses 1 credit per 50 completions

If you run out of included allocation, you can buy top-up bundles to get you back up and running with the AI features again.

We’re planning on introducing new AI modes and features in the near future, and the same credits will work there too.

Why AI works great with Mattercraft

A founding goal for Mattercraft was to allow our users to leverage the fantastic ecosystem that surrounds web development, allowing content developers to bring their existing knowledge, to benefit from the wealth of online support material, and to integrate Mattercraft into their existing infrastructure and workflows. While you absolutely do not have to be a frontend web developer to use Mattercraft, if you are, then you’ll find its concepts map directly onto your experience and understanding.

This foundation is not only great for helping new and existing users in making great content - it also means that the AI models (which include all that ecosystem knowledge in their training data) already know how to work with the underlying concepts and technologies in Mattercraft.

Mattercraft is built on a component model - each of the elements of your creative experience (the 3D objects, groups, AR anchors, cameras, etc) are described in a simple structure with inputs (properties) and an output. Those structures (components) are then assembled into the hierarchical tree that is your scene.

The component model has many benefits:

  1. It makes Mattercraft super flexible - different technologies and libraries can be easily integrated, such as rendering engines, physics, particles, AR/VR, VPS, volumetric, etc, and distributed through a package manager (NPM)
  2. Components can be shared between projects, and can be reused many times within a single scene
  3. Complex code can be abstracted behind a set of simple, configurable properties, so coders and non-coders can work together directly on projects

It’s this last point - abstraction - that’s the biggest benefit to AI Assistant. Mattercraft’s component model means that we can provide AI Assistant with a concise representation of the context of your project. That makes the AI faster and more likely to provide accurate responses and to propose correct changes.

It also means that, when AI Assistant is writing components of its own, it’s able to provide you with easy-to-use functionality that can be configured in Mattercraft’s user interface without having to touch the code.

Sign up for the beta

While Mattercraft itself is generally available, we’re rolling AI Assistant out over the coming weeks in beta. During this time, we’d love to get your feedback on the assistant - we’re particularly interested in:

  • How each of the modes works for you, including which ones have been most useful to you.
  • Any issues you encounter, or things that don’t quite work as you expect.
  • Opportunities for further AI integration - how can we make AI Assistant even better?

Beneath every AI Assistant conversation are a pair of 👍 👎 buttons. These allow you to share your chat with us (should you wish to) so we can improve the service.

If all this sounds like something you’d like to try, you can register to join the beta here.

👉 Our AI ethos in action: AI in Mattercraft is opt-in (during beta and beyond) and won’t be turned on unless you’d like to use it


Wrapping up

We believe that AI Assistant can revolutionise the way interactive content for the web is built. These three powerful modes, Ask, Edit and Code Complete, work for you to supercharge your creative process. They’re there to help you learn, be more productive, and above all, enjoy the art of Mattercrafting. And this is just the beginning - we’re cooking up a ton more that we can’t wait to share with you.

Here’s to the vibe 🍻.