TL;DR
Before we move on to the Spline tutorial, here's the link to our joint project with Spline themselves: "10 Principles of good design by Dieter Rams" Spline-based Experience.
Before we move on to the Spline tutorial, here's the link to our joint project with Spline themselves: "10 Principles of good design by Dieter Rams" Spline-based Experience.
Spline, a 3D design tool, was launched towards the end of 2020. As you probably know, it’s not your typical 3D environment like Blender, 3D Max, or Cinema 4D. For instance, it doesn’t allow you to edit meshes. You could say Spline is more like three.js editor, but unlike this tool, Spline is codeless. It also feels more designer-friendly to me.
When I tried Spline for the first time, it felt like 3D Paint but with interactions. It seems that this is how the Spline team wants to position their product on the market. This impression is further supported by the eye candy aesthetic you will notice when browsing the library of projects.
For me, the biggest upside of Spline is its “magic-doing”—and yes, “doing magic” is the message you see when exporting your project to a browser. Spline’s speed, performance (web and mobile), and simplicity make it easy for 3D designers to showcase their work in a browser using just WebGL, not a built-in player, which is the case for Sketchfab.
You may also like: Augmented Reality in Healthcare
I really appreciate what other creators achieved with Spline and the general aesthetic emerging in the Spline community. Spline’s Twitter and Instagram accounts prove that many designers got on the bandwagon, and the published works can be truly breathtaking. Usually, these are the scenes where artists tried to enhance the content predominantly based on Spline’s native interactions: rotate, zoom, pan.
Working at Apptension, a software house where interaction is crucial, I decided to take a different route. I asked myself: how complex can Spline-based interactions be? Can I use them to tell a story? Can I have more than one rotating scene? Can I achieve, as Ryanne Fadel tweeted, a Prezi on steroids?
I tried to answer these questions with a project illustrating the 10 principles for good design by Dieter Rams, which you can look up here. Below there is also a Youtube video with the similar 3D web design Spline tutorial.
Let’s explain how I built it.
Our Design Director, Bartek, came up with an idea to use Dieter Ram’s principles in my project. As Bartek pointed out, the 10 design commandments have yet to be presented in a way that’s interesting, innovative, and tailored to the design master himself. I couldn’t disagree.
Together, we decided that the very items that Rams designed for Braun would be the best illustration of his design principles. The goal was to create 3D design models of these items and display them in a virtual, minimal gallery.
After my first attempts at creating everything, including objects, in Spline, I realized that I have to redefine my “all in Spline” approach. Granted, building models with primitives within Spline is possible.
However, I’d have to make some concessions when it comes to the accuracy of the objects and create simplified, low-fi interpretations of them. It didn’t feel right, and I certainly didn’t want to end up with a botched version of design classics. If history is any indication, art reconstruction should be done with due diligence.
Instead of diving into the time-consuming process of setting up cubes in Spline, I decided to use Cinema 4D, which I use as a native 3D app, and look for models of Ram’s designs there. After a lot of digging and hours of modeling, I’ve managed to prepare 3 objects.
This part of the process is not about Spline, so let’s quickly recap what I did. I prepared the full scene in Cinema, skipped the lighting, materials, and so on. I only focused on the objects themselves and setting them up in their space. I intended to work on the interaction in Spline.
Let’s start from scratch. Create a new project in Spline
Quick tip #1:
Now we can import the previously created scene to Spline. Click on the burger menu and pick open/import. Find the path or your scene’s file (I used an .fbx file) and click open. You should see your scene in Spline’s main window and the structure of objects on the left.
Quick tip #2:
You won’t be able to find the camera in the object explorer. It means that, at this time, Spline works in the default camera mode, and the scene is displayed from the front in the Orthographic view. It may remind you of pixel art, where you would design in an isometric view.
Orthographic
Perspective
I decided to go with the Perspective view as it felt more natural in this case. To set this view, you need to go to the top menu and pick Camera. A new object will appear on the list in the object explorer, and you’ll see the camera’s avatar in the main panel.
Choose the Perspective view from the window on the right side of the camera. Nothing will change in the main panel because you still see the default camera view. Change that by going to Global Settings > Camera and switch Default Camera to your Camera.
It’s time to pick the frames that will become the “slides” in our “presentation”. Save the chosen frames as Camera State. When you find the right frame, the one you want to begin with, make sure that the Camera object is selected in the explorer. Click on the plus icon next to the States option in the window on the right side.
Might be interesting: What Is a Hybrid App Development?
Spline will automatically create two states: the Base State and State 1. Let’s say that the Base State is our initial state, the one for which we have already picked a frame. Now click on State 1. When it’s active (highlighted), you can select the frame for the second slide in your presentation.
Quick tip #3- There are two ways to do it!
Now that you have set up two states: Base State and State 1 make sure that these frames are connected to States in the right fashion. You can do that by switching between states in the Camera’s States window. Add the next frames using the same steps.
Quick tip #4:
Let’s finally add some interactions! In Spline, you will add interactions using Events. Events belong to an object and allow you to control the object they’re assigned to but also other objects in the scene, changing their State.
It works the following way:
In our case, one object will control multiple other objects. To be precise, one object and its instances will.
The object in question is this button, and we will be adding events to it and its instances.
Let’s start with the simplest interaction: moving the camera from one slide to another. The first step is ensuring that you have selected the right object. In our case, it’s the button that should trigger the interaction upon clicking. You can add an event in the column to your right by clicking on the plus icon next to Events. Below, a new window will appear where you can describe the interaction.
Pick Mouse down from the drop-down menu. In the Object field, you should select Camera because that’s what we want to control. In the State field, you can choose the state you want to get to upon clicking. In our case, we will choose State 1 because initially the camera is in the Base State. The next two options you can configure are Cycle and Repeat, but let’s skip them for now. In Transition, select Spring from several available options.
We have now defined the type of animation that will accompany the change of state from the Base State to State 1. When it comes to parameters, type: Mass: 3, Stiffness: 20, Damping: 10, Velocity: 0, Delay: 0. These settings worked best for me but feel free to experiment on your own. You can read more about interactions here.
Let’s verify if our interaction works correctly. Click Play et voilà!
Now that we’ve figured out how to operate the camera, it’s time to move on to other interactions. In my project, as shown in the interaction scheme, I want to control a couple of objects: fading out the old titles and making new titles, numbers, and the button’s instances appear. On top of that, I want to change the location of an element I’d like to call the UI.
As it was the case with camerawork, we will use events to trigger these actions. To be more specific, we will add new actions to the existing on mouse down event. You can do that by clicking Add new object to event—the button is located below the camera’s event description.
Also read: No-code SaaS – guide on how to build products without coding
A new window will show up, just like the one you used to set up the camera’s event. You can utilize this event to manage the button. In our scenario, we want to make the currently used button disappear upon clicking. We won’t need it in the next slide.
To achieve this, you can introduce two states for this button. There’s no need to change the object’s position, just its material’s settings—Base state Texture 100% and State 1 Texture 0%. In the window where you can describe the second interaction, you should select the button’s name in the Object field. Set State to State 1, select Easy in Out in the Transition field and pick a low value for the Duration, for instance, 1.
Let’s see how it works—click Play. You should see an interaction for the camera’s movement as well as the disappearing button. All you have to do now is add more actions to Events to trigger all of the planned interactions upon clicking the button. Here’s where the scheme of interactions is particularly helpful.
At this point, you should have been able to add all of the actions to your event—in my case, we’re talking 8 actions. You’ve clicked Play and it works! Great, but you might be slightly disheartened when you realize that this is all just to make the transition between the first “slide” and the second one. When you have many slides (I have 10), it’s simply a lot of work.
Granted, you have to repeat this step for all of the slides, but you can do it the smart way. Unfortunately, Spline currently doesn’t allow you to copy events from one object to another. However, the workaround is to duplicate the object itself.
Worth checking: What is a boilerplate? Meaning, history and examples
In my case, the object is a button that should look the same on all slides—even better! You can duplicate the button X times and set it in the correct location on different slides. Having the scheme of interactions at hand, you can simply change the events’ parameters so that they work for each of the slides.
Quick tip #5:
To avoid mistakes when duplicating buttons, you should do it one by one. Button > duplicate > select the duplicated button > set it in an appropriate position in the scene > change parameters in Events > verify it in the presentation mode > export to the browser. If everything works fine, you can move on to the next button. If not, at least you know where to look for the bug.
When it comes to interactions, I’ve also managed to achieve an interesting parallax-like effect by picking a different type of Transition, e.g. Spring and Easy In Out, for the objects that move around the scene.
I didn’t dive into all of my projects’ details: designing the materials, lighting, etc. You can download the project and analyze the aspects that interest you the most (CC license).
Final thoughts and tips for creating web experiences with this Spline 3D tutorial:
Looking for more advanced design resources? Check out our DesignOps ebook.
Explore our collection of insightful blog posts.