Trying out 3DMLW … it’s damn easy
I recently stumbled upon this new 3D Markup Language for the Web. The getting started examples looked quite simple so I figured it was worth giving it a try.
3DMLW can load Blender (.blend) files so I first fired up Blender to create a simple model. Then I wrote the markup code (I used “Quantum Hog“, their editor) to add the object to the scene and make it rotate.
I ended up with only 21 lines of code to get this working! Check it out:
<?xml version='1.0'?>
<document stylesheet='{#default}' color='#5555ee'>
<stylesheet id='default'>
<default>
<lights>
<light x='150' y='150' />
</lights>
</default>
</stylesheet>
<content3d camera='{#camera1}'>
<camera id='camera1' x='0' y='5' z='-10' />
<object id='arrayObj' x='0' y='0' z='0' source='array_applied.blend' class='thing'>
<mesh name='Cube' />
</object>
</content3d>
<animation id='rotation'>
<key duration='90' yaw='0' />
<key yaw='360' />
</animation>
<animate id='animating_lid' loop="true" speed='7' animation='{#rotation}' target='{#arrayObj}' interpolation='linear' />
</document>


4 Comments
Jump to comment form | comments rss [?] | trackback uri [?]