Table of Contents

    Creating Interactive Animations with SOLIDWORKS Visualize

    Creating Interactive Animations with SOLIDWORKS Visualize thumbnail

    Written by: Richard Farries

    Published: Mar 11, 2019
    | View All Blogs

    Table of Contents

      Interactive Images are a great export option within SOLIDWORKS Visualize Professional, allowing you to view the model in a series of 360 orbital spins within a web browser. However, what happens if I want to use this interactive method to demonstrate a mechanism or interactive animation instead? By utilising this method, we can allow users to interactively play through their animation by simply scrolling across the screen, reversing and focusing upon any chosen element of the sequence.

      Blender Interactive Animation

      Click and drag left to right to play animation – This is a large file, it may not load immediately

      So how can we create this interactive and immersive content?

      It is by combining both the exports of an animation and an Interactive Image.
      First, let us focus upon creating the Interactive Image.

      Interactive Image

      An interactive image is a collection of rendered images that are viewed and controlled within a html file.

      In this instance, we simply want to create a placeholder for the stills from the animation. Choose Interactive Image under the Output Mode and select a single orbit. This will create only a single spin around the model, however the number of images will be the number of stills created in our animation.

      So for my example, I will be rendering out a 10 second long animation at 30 frames per second.

      This simply is 30 x 10, so simply 300 Images per Orbit needed.

      Render this at Preview mode, at the same resolution as the Animation. We will be removing the still images and replacing them with the animation images instead.

      outputsettings1

      Creating the Interactive Animation

      Export the animation as individual frames by unselecting the Create Movie checkbox. I would also recommend naming the file Frame, for ease of compiling both the animation and Interactive Image in the next step.

      outputsettings2

      Combining the Animation and the Interactive Image

      This is where the magic happens, we are going to replace the images within the Interactive Image with our animation instead!

      Find the Image sub-folder within the Interactive Image and you will see the individual still with a sequential naming sequence. Delete all of these images an instead paste in your rendered stills from your animation. You will notice that the files from the animation have a slightly different naming structure, Frame_0001 rather than Frame000001. We will need to change this behind the scenes.

      Find the JS folder inside data, to reveal the hidden away JavaScript controlling the Interactive Image. Right click upon threesixty.js and choose to edit within Notepad.

      You will see the naming structure Frame#####.webp listed.

      notepadchanges1

      Change this to Frame_####.webp

      This will change the naming structure to the files withinthe Images folder.

      If you didn’t save your animation still as Frame, we can easily tweak the name here. Simply remove Frame and change to the new filename – don’t forget to leave the Hash symbols (#) in to denote the numbers at the end.

      Open the Interactive Image backup from the Open.html file and view your work!

      Fine Tuning

      Want to fine tune your interaction with the model?

      Edit the vr.js file and edit the ‘InfiniteAxis’ to read false,false.

      This will prevent the animation looping and going back to the start.

      Change the ‘Grabbable’ values to alter how far you need to drag your mouse to play through the animation.

      The ‘ThrowDuration’ allows you alter the inertia and how long the effect continues after you have released your mouse.

      notepadchanges2

      Categorised as: |

      Get Expert SOLIDWORKS Training

      Get hands-on SOLIDWORKS training in-person or online, led by certified experts with real industry experience. With venues across the UK & Ireland, it’s easy to start learning today.

      Related Posts

      Series 1 Land Rover Pedal Car – Made Easy with Solidworks!

      The Series1 began production in 1948 designed to help get Britain farming after the war effort. It grew extremely popular and today enthusiasts are prepared to throw their life savings at restoring originals from that period.

      SOLIDWORKS Visualize. Why go pro? – 6 Post Processing

      In this blog we will be look at the post-processing options that can be found in SOLIDWORKS Visualize

      SOLIDWORKS Visualize. Why go pro? – 7 Lighting

      SOLIDWORKS Visualize uses a non-biased rendering engine, which allows for physically accurate lighting within a scene. It generates images with high amount of realism and correct set up can replicate photo studio lighting.

      How to Get Your Serial Number for SOLIDWORKS Visualize Standard

      Want to download Visualize to make photorealistic renders? Follow this guide for accessing your Visualize serial number that comes bundled in with SolidWorks Professional and Premium.

      How to Find & Activate SOLIDWORKS Xpress Products

      Find & activate SOLIDWORKS Xpress products in five simple steps. Xpress tools come with every seat of SOLIDWORKS and unlock additional functionality.

      How to Create 360VR Video using SOLIDWORKS Visualize

      Virtual Reality(VR) videos provide one of the most immersive methods of viewing a design concept and can be used to bring your product showcases to the next level. Recently VR has become a valuable tool for many companies when it comes to design reviews and interactive product training. Check out this short blog to learn how to export 360VR videos using SOLIDWORKS Visualize.

      Modelling an Archimedes’ Screw with SOLIDWORKS

      Archimedean screws are often referred to as “water screws” since they are commonly used to transport water between different heights. We often see some of our customers do screw feeders and we thought it may be beneficial to create a blog documenting an effective modelling workflow to create your very own Archimedean screw.

      How to come up with ideas for your design or engineering project – some helpful tips

      We know coming up with an interesting and creative design or engineering project can be…

      Creating a Kicking Tee for the Rugby Lions Series – Modelling Walkthrough

      As the Rugby Lions Series continues Solid Solutions and MECAD are continuing to compete off the pitch using SOLIDWORKS. Our second challenge was to create a Kicking Tee, a small yet key piece of equipment that is used almost every game. Various designs exist but we decided to model an adjustable kicking tee. Read on for some SOLIDWORKS tips and an overview of our modelling process.

      Connection Detailing in SOLIDWORKS 2022

      With SOLIDWORKS 2022 you can add connection detailing to your structural members. Learn how to create and add structural connections to your SOLIDWORKS models quickly and easily.