HTML <model> Element
Earlier this year Apple introduced the new HTML <model> element. Time to revisit and check it out to see what it is and when it can be used.
In January 2023, Apple introduced a new HTML
Shortly after the announcement, I started playing around with it, setting up a quick demo page to see how it works. Quickly, I saw the potential benefits for the future. However, I kind of forgot about it as this feature is still too new and in development.
A few days later, I wanted to take a second look at this HTML element to see if it had been improved, mostly to write something about it for this blog. But the HTML
How to use the HTML element
To use the new HTML
<model width="400" height="300" interactive> <source src=“earth.usdz" type="model/vnd.usdz+zip"> </model>
Safari will display this 3D model as shown in the screenshot below. One thing I noticed on my MacBook Pro from 2017 is that my computer can’t handle it. It works, but the fans are blowing very loud. This might be better on newer machines.
I couldn’t test it with animated 3D models as I couldn’t find animated 3D models in the correct file format. But I assume that animations are working.
In which cases is this HTML element useful?
After testing the HTML
A second use case I can think of is as part of the cover. Show a 3D world on the cover that you can view from many angles. However, it can’t be interactive at this point in time. As there might be a need for a JavaScript API to script some parts of the animation.
Final word
I see great potential in this new HTML
I really hope you all liked this first blog post, and I hope to keep in touch with all of you. To finish this blog post, I will end with a wise quote from one of my favorite games Nier Automata:
「未来は与えられるものではない、自分で掴み取らなければならないもの - ポッド042」— A future is not given to you, it is something you must take for yourself - pod 042